Commit Graph

17 Commits

Author SHA1 Message Date
11ff256815 Implemented the autocmd builtin, which allows you to register hooks for certain shell events. 2026-03-04 12:55:50 -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
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
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
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
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
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
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