Commit Graph

88 Commits

Author SHA1 Message Date
30bc394d18 Fixed possible refcell borrow panic related to expanding variables in an array index 2026-02-27 02:14:40 -05:00
5f3610c298 Early implementation of bash-like completions with 'complete' and 'compgen' builtins 2026-02-27 01:10:52 -05:00
ccb1f43915 Implemented arrays and array indexing 2026-02-26 00:32:54 -05:00
ef64e22be5 Implemented a gutter with line numbers for multi-line editing 2026-02-25 19:55:48 -05:00
8c003f54e2 Fixed issue with pipeline I/O in command substitutions 2026-02-25 17:54:17 -05:00
28ce008234 Various line editor fixes and optimizations 2026-02-25 15:43:08 -05:00
2f0cb931d6 implemented builtins: readonly, unset, true, false, and : (no-op) 2026-02-24 17:57:09 -05:00
59b8925de3 Fixed functions not properly forking a new process when executed in a pipeline 2026-02-24 16:03:22 -05:00
b549880687 subshells now fork a new process 2026-02-24 15:15:30 -05:00
fc377f4716 Fixed 'command' builtin executing shell functions with same name as the command 2026-02-24 14:54:36 -05:00
478374814e fixed new crash caused by recent refactor 2026-02-24 14:18:36 -05:00
cd40760ea0 Refactored internals for builtins inside of pipelines 2026-02-24 10:54:24 -05:00
fa49e2ef70 Fixed command substitutions not expanding when used as a command name 2026-02-23 23:32:12 -05:00
9361c561b4 autocd will now prioritize running a command if a directory name is entered that matches the name of a command 2026-02-23 21:05:59 -05:00
46d6d5319f Added auto-indent to multi-line editing -m Added shopt for enabling/disabling auto-indent -m Fixed some multi-line editing render bugs -m Scrolling up in history now preserves undo/redo history in the pending command 2026-02-23 20:52:33 -05:00
fa3d376659 Fixed some hangs in the lexer 2026-02-23 19:21:57 -05:00
f8e02d31cd - fixed 'I' command in normal mode not moving to exact start of line
- Added disown builtin
- Fixed job table not hanging up child processes on exit
- Added target architecture and os to --version output
- Added local builtin for creating variables scoped to functions
2026-02-23 16:10:49 -05:00
129390c2da Implemented the exec builtin
Fixed readline and terminal interactions using stdin instead of /dev/tty
2026-02-20 12:17:48 -05:00
2184b9b361 implemented the pushd, popd, and dirs builtins 2026-02-20 01:29:40 -05:00
a18a0b622f command arguments are now underlined if they match an existing path -m ran rustfmt on the entire codebase 2026-02-19 21:32:03 -05:00
18e36622a0 handled some unwraps in cd
error reporting now blames the function call span instead of the errored command inside the function
2026-02-19 18:27:51 -05:00
982d11f21b implemented the trap builtin 2026-02-19 16:39:18 -05:00
9483477edd fixed the $0 parameter not being populated correctly 2026-02-19 14:24:55 -05:00
3b698628c6 Tab completion has been implemented
more small highlighter tune ups

2>&1 style redirections now work properly
2026-02-18 21:53:36 -05:00
43b171fab1 Implemented syntax highlighting 2026-02-18 02:00:45 -05:00
87d465034a properly implemented read builtin
fixed bugs related to redirections and compound commands

improved io routing logic
2026-02-17 17:30:21 -05:00
12f36283ca fixed empty arguments being filtered out during word splitting 2026-02-16 19:09:10 -05:00
8933153c2b Fixed conditional block parsing not handling command chains 2026-01-29 05:01:26 -05:00
0e28b7bf49 Various edge case fixes for prompt expansion and command substitution 2026-01-29 04:58:04 -05:00
a4f48abd49 Added prompt escape code expansion flag to echo, -p
Added non-formatted runtime to prompt escape codes

Added prompt escape code that expands to the output of a shell function

Reworked internal logic for termios control
2026-01-29 03:46:35 -05:00
7f3e1cfcee renamed fern.rs back to main.rs 2026-01-28 19:57:14 -05:00
ad0e4277cb Implemented proper variable scoping
Extracted business logic out of signal handler functions

Consolidated state variables into a single struct

Implemented var types
2026-01-28 19:30:48 -05:00
8ad53f09b3 Added rustfmt.toml, formatted codebase 2025-08-12 13:58:25 -04:00
09767c9682 work on implementing visual mode 2025-05-30 19:06:09 -04:00
8bdc21c8d5 implemented autosuggestions for the line editor 2025-05-30 01:12:18 -04:00
220f636ebd removed placeholder text in prompt
cd no longer panics if the given directory doesn't exist (wtf?)
2025-05-29 01:29:25 -04:00
4af31ba8ef Reduced the amount of time that file redirections stay open 2025-05-19 00:03:50 -04:00
94e22d68f3 about to implement readline myself 2025-05-15 00:53:39 -04:00
c9414c8ce3 properly implemented $(( )) substitution 2025-05-14 16:35:04 -04:00
6006244739 more unit tests, better highlighting 2025-05-13 20:22:25 -04:00
df17ecdfb8 added arithmetic substitution 2025-05-13 13:08:53 -04:00
25e85edab0 Added regex to [[ ]] tests 2025-05-13 00:48:19 -04:00
bbb8162201 implemented most variable parameter expansion builtins 2025-05-12 16:14:06 -04:00
cc8d384704 About to rework lexer and parser return types 2025-05-09 01:00:36 -04:00
18d0b669b3 Parser tweaks 2025-05-08 21:21:23 -04:00
7523944d63 Early implementation of syntax highlighting
Various bug fixes related to command substitution
2025-05-08 21:21:23 -04:00
3155db5565 implemented the 'builtin' and 'command' builtins 2025-05-08 21:21:23 -04:00
4d16ffa60f implemented for loops 2025-04-20 05:16:50 -04:00
b6be68b235 removed nix artifacts 2025-04-19 12:46:00 -04:00
80b6453597 Implemented subshells and improved error handling 2025-03-29 22:16:26 -04:00