Commit Graph

169 Commits

Author SHA1 Message Date
c559d1cc75 ran clippy fix 2026-02-27 11:05:08 -05:00
c508180228 Added -j flag to 'complete' for completing job names/pids 2026-02-27 11:03:56 -05:00
e141e39c7e shopt now prints current values if no args are given 2026-02-27 10:07:45 -05:00
3d3693e2c3 Implemented -o opt for complete/compgen builtins
Completion candidates now come with a space by default, unless it's a directory
2026-02-27 09:44:33 -05:00
30bc394d18 Fixed possible refcell borrow panic related to expanding variables in an array index 2026-02-27 02:14:40 -05:00
4ecfb28535 Fixed regressions in completion system caused by previous commit
Removed a lot of old debug logs
2026-02-27 01:34:43 -05:00
5f3610c298 Early implementation of bash-like completions with 'complete' and 'compgen' builtins 2026-02-27 01:10:52 -05:00
4fbc25090d switched to DEC cursor save/reload sequences from SCO sequences for better terminal compatibility 2026-02-26 08:37:03 -05:00
ccb1f43915 Implemented arrays and array indexing 2026-02-26 00:32:54 -05:00
37cf9625b3 Implemented visual line mode 2026-02-25 21:15:44 -05:00
e82f45f2ea Extracted readline from the dead prompt module 2026-02-25 20:00:19 -05:00
ef64e22be5 Implemented a gutter with line numbers for multi-line editing 2026-02-25 19:55:48 -05:00
e214f8b6b5 Fixed prompt not automatically getting PSR value 2026-02-25 17:58:39 -05:00
8c003f54e2 Fixed issue with pipeline I/O in command substitutions 2026-02-25 17:54:17 -05:00
2d0d919e66 Prompt now only redraws on completed jobs and new commands
Tab completion now finds env var names as well as internally set names
2026-02-25 16:48:49 -05:00
df5f1d5778 fixed commands not getting hashed through symlinks 2026-02-25 16:03:42 -05:00
e80dfbd328 Implemented proper behavior for deleting/yanking lines into registers and putting them 2026-02-25 15:54:31 -05:00
28ce008234 Various line editor fixes and optimizations 2026-02-25 15:43:08 -05:00
415c9b4a53 Fixed system messages printing an extra line for no reason 2026-02-25 02:10:57 -05:00
45a1c7c75d Added job count prompt escape code, '\j' 2026-02-25 01:56:24 -05:00
854e127545 Added PSR environment variable for drawing a string on the right side of the prompt
Pending normal mode sequences are now shown in the top right of the prompt
2026-02-25 01:13:12 -05:00
90e69f96d2 changed package name from 'fern' to 'shed' 2026-02-24 18:02:13 -05:00
2f0cb931d6 implemented builtins: readonly, unset, true, false, and : (no-op) 2026-02-24 17:57:09 -05:00
fee45145c8 flow control keywords are now highlighted purple 2026-02-24 16:22:59 -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
cf46303659 Ran the codebase through rustfmt 2026-02-23 23:32:46 -05:00
fa49e2ef70 Fixed command substitutions not expanding when used as a command name 2026-02-23 23:32:12 -05:00
06a55734c9 Fixed hint-related regression caused by recent history logic changes 2026-02-23 21:25:27 -05:00
39893b3a1f Added more accurate logic for @ expansion 2026-02-23 21:16:29 -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
a683d4ac4c Added new scopestack tests 2026-02-23 19:11:59 -05:00
d9ff02b7a5 Fixed mutation of variables created by the local command 2026-02-23 19:04:31 -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
723bfd8413 - fixed 'I' command in normal mode not moving to exact start of line 2026-02-23 14:42:53 -05:00
d817aed056 fixed error messages in shopt.rs 2026-02-23 14:15:55 -05:00
5a8b7831a8 changed bell style option to a simple boolean 2026-02-23 14:11:41 -05:00
6f334395f7 line editor now sends bell on no-op edits 2026-02-20 14:15:25 -05:00
5721cdb7ca Highlighter now handles highlighting visual mode selections instead of LineBuf 2026-02-20 14:03:42 -05:00
a0cf2a7edd Cursor now moved to end of the line while scrolling history, original position in pending command still remembered -m Undo now moves the cursor to it's original position in normal mode 2026-02-20 12:33:18 -05:00
f0e1e6e2b5 visual mode deletions now properly yank deleted text into the selected register 2026-02-20 12:18:34 -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
e8473e82a1 arg underlining now only affects the last argument 2026-02-19 21:52:29 -05:00
886d348d53 fixed highlighting for double globs like 'dir/**/*.rs' 2026-02-19 21:43:49 -05:00