Commit Graph

199 Commits

Author SHA1 Message Date
d78de4ccf0 fixed PS1 and PSR variables being unresponsibe to changes inbetween prompt redraws 2026-03-05 00:39:16 -05:00
041f3612b8 Changed '\!' prompt escape sequence to '\@' to avoid conflicting with escaping ! history expansion 2026-03-05 00:34:32 -05:00
9223e4848d implemented Ctrl+R command history searching and command history expansion with '\!' 2026-03-05 00:16:07 -05:00
0e3f2afe99 rustfmt'd the codebase 2026-03-04 19:52:29 -05:00
79cb34246b panics now also write a log to ~/.local/shed/log/panic.log 2026-03-04 19:39:53 -05:00
39a33e5759 fixed issues with expansion of case arm patterns 2026-03-04 18:54:06 -05:00
b05c780774 improvement on parsing accuracy for case patterns 2026-03-04 18:28:16 -05:00
7b5337367b work on improving parameter expansion logic 2026-03-04 18:05:48 -05:00
77a1dc740f Early implementation of Verbatim mode 2026-03-04 15:26:54 -05:00
532e225199 Added an on-exit hook for autocmd
improved mode-switching autocmd hook logic

fixed escaping logic in single quote expansion
2026-03-04 14:29:44 -05:00
83f1988299 Implemented the autocmd builtin, which allows you to register hooks for certain shell events. 2026-03-04 14:12:10 -05:00
b16f3a9ea3 work on fixing login shell i/o issues 2026-03-03 23:02:15 -05:00
1795995b98 fixed parser bug introduced in recent commit 2026-03-03 22:34:17 -05:00
1f2077af1d Added 'read_key' builtin that allows widget scripts to handle input 2026-03-03 20:39:09 -05:00
7912f747fd fixed default leader key ('\') not expanding properly 2026-03-03 03:33:53 -05:00
ad8d4db4ef Added ex mode to line editor, a 'keymap' builtin, and a zsh-like widget system using ':!<shellcmd>' ex mode commands 2026-03-03 03:19:02 -05:00
91f5824f1e fuzzy completion now looks good and works good 2026-03-02 12:38:14 -05:00
362be13b5b Early implementation of fuzzy completion menu 2026-03-02 01:54:23 -05:00
f5513c4be5 implemented 'getopts' builtin 2026-03-01 21:16:33 -05:00
f75501ed3d implemented 'type' and 'wait' builtins
fixed some tcsetpgrp() misbehavior

fixed not being able to redirect stderr from builtins
2026-03-01 17:14:48 -05:00
0371025109 completion now prefers completing variable names before trying comp specs
improved color picking for error messages
2026-03-01 11:02:13 -05:00
303e85ad29 Fixed 'C' and 'D' verbs deleting the newline character 2026-03-01 02:39:22 -05:00
dff87fd5c2 More progress on integrating ariadne's error reporting 2026-03-01 02:20:58 -05:00
792b0c21d0 Work on integrating error reporting using the ariadne crate 2026-02-28 20:30:12 -05:00
9d8d8901d7 Add array support for local/export/readonly builtins
Add array length syntax ${arr[#]}

Map read path now expands variables before splitting on ., fixing map "$node" with dotted paths

Map assignment path uses quote-aware token splitting, enabling quoted keys like "--type="

Completion errors now display above prompt instead of being overwritten

Fix nested if/fi parser bug when closing keywords appear on separate lines

Add QuoteState enum, replacing ad-hoc quote tracking booleans across lexer, highlighter, and expansion

Add split_tk_at/split_tk for quote-aware token splitting with span preservation

Refactor setup_builtin to accept optional argv for deferred expansion

Add ariadne dependency (not yet wired up)
2026-02-28 15:54:53 -05:00
4cda68e635 Stuff stored in maps can be eval'd on access by storing with the -F flag 2026-02-28 01:41:16 -05:00
f0a000343b double bracket tests now do regex on '==' between two strings
fixed line wrapping causing weird cursor issues
2026-02-27 21:25:01 -05:00
0c40f17b60 added 'map', 'pop', 'push', 'fpop', 'fpush', and 'rotate' builtins 2026-02-27 20:37:58 -05:00
076c94df3c Added alias (-a) and signal (-S) flags for 'complete' and 'compgen' 2026-02-27 13:10:24 -05:00
faae6b82be cleaned up all compiler warnings 2026-02-27 11:08:42 -05:00
6f408b3c21 ran clippy fix 2026-02-27 11:05:08 -05:00
3d47e4edd9 Added -j flag to 'complete' for completing job names/pids 2026-02-27 11:03:56 -05:00
a581f5161f shopt now prints current values if no args are given 2026-02-27 10:07:45 -05:00
105cf7c275 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
f7e3d18502 Fixed possible refcell borrow panic related to expanding variables in an array index 2026-02-27 02:14:40 -05:00
edc29595b8 Fixed regressions in completion system caused by previous commit
Removed a lot of old debug logs
2026-02-27 01:34:43 -05:00
96ea2d0ac9 Early implementation of bash-like completions with 'complete' and 'compgen' builtins 2026-02-27 01:10:52 -05:00
1e9c54caea switched to DEC cursor save/reload sequences from SCO sequences for better terminal compatibility 2026-02-26 08:37:03 -05:00
f9312885bd Implemented arrays and array indexing 2026-02-26 00:32:54 -05:00
fae2a9eeca Implemented visual line mode 2026-02-25 21:15:44 -05:00
e7e9bfbcb6 Extracted readline from the dead prompt module 2026-02-25 20:00:19 -05:00
b013a9513d Implemented a gutter with line numbers for multi-line editing 2026-02-25 19:55:48 -05:00
85951c4acc Fixed prompt not automatically getting PSR value 2026-02-25 17:58:39 -05:00
56264731c4 Fixed issue with pipeline I/O in command substitutions 2026-02-25 17:54:17 -05:00
66e1f63d41 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
6651f86ce3 fixed commands not getting hashed through symlinks 2026-02-25 16:03:42 -05:00
86c9fe281a Implemented proper behavior for deleting/yanking lines into registers and putting them 2026-02-25 15:54:31 -05:00
22adbce9e4 Various line editor fixes and optimizations 2026-02-25 15:43:08 -05:00
8d694d8281 Fixed system messages printing an extra line for no reason 2026-02-25 02:10:57 -05:00
953b387b44 Added job count prompt escape code, '\j' 2026-02-25 01:56:24 -05:00