8c6de4f4ec
fixed heredocs using the same expansion pathway as regular strings
...
implemented backtick command subs
deferred heredoc expansion until redir time instead of parse time
implemented "$*" expansions
function defs like 'func () { }' not parse correctly
fixed conjunctions short circuiting instead of skipping
2026-03-15 00:01:33 -04:00
5173e1908d
heredocs and herestrings implemented
...
added more tests to the test suite
2026-03-14 13:40:00 -04:00
307386ffc6
tightened up some logic with indenting and joining lines
...
added more linebuf tests
extracted all verb match arms into private methods on LineBuf
2026-03-13 19:24:30 -04:00
5500b081fe
Strip escape markers from expanded patterns in parameter expansion operations
2026-03-12 09:20:07 -04:00
f279159873
tab completion and glob results are now properly escaped before being parsed
2026-03-11 18:48:07 -04:00
b137c38e92
completely rewrote test suite for top level src files and all builtin files
2026-03-06 23:42:14 -05:00
e07a853074
the second field of history entries in the hist file now contain command runtime in seconds, instead of an id
...
updated rustfmt.toml and formatted codebase
2026-03-05 10:29:54 -05:00
1b676db3a2
Changed '\!' prompt escape sequence to '\@' to avoid conflicting with escaping ! history expansion
2026-03-05 00:34:32 -05:00
0ec8c5cca1
implemented Ctrl+R command history searching and command history expansion with '\!'
2026-03-05 00:16:07 -05:00
7be79a3803
rustfmt'd the codebase
2026-03-04 19:52:29 -05:00
206c6cb64e
fixed issues with expansion of case arm patterns
2026-03-04 18:54:06 -05:00
b831bdf166
improvement on parsing accuracy for case patterns
2026-03-04 18:28:16 -05:00
3c70c9dace
work on improving parameter expansion logic
2026-03-04 18:05:48 -05:00
12267716be
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
c642a96da7
Added 'read_key' builtin that allows widget scripts to handle input
2026-03-03 20:39:09 -05:00
a300e54ee8
fixed default leader key ('\') not expanding properly
2026-03-03 03:33:53 -05:00
9d13565176
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
a2b8fc203f
Early implementation of fuzzy completion menu
2026-03-02 01:54:23 -05:00
5a62f72947
implemented 'getopts' builtin
2026-03-01 21:16:33 -05:00
2ea44c55e9
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
ef0f66efaa
Work on integrating error reporting using the ariadne crate
2026-02-28 20:30:12 -05:00
1b63eff783
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
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
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
e82f45f2ea
Extracted readline from the dead prompt module
2026-02-25 20:00:19 -05:00
28ce008234
Various line editor fixes and optimizations
2026-02-25 15:43:08 -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
cd40760ea0
Refactored internals for builtins inside of pipelines
2026-02-24 10:54:24 -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
129390c2da
Implemented the exec builtin
...
Fixed readline and terminal interactions using stdin instead of /dev/tty
2026-02-20 12:17:48 -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
9483477edd
fixed the $0 parameter not being populated correctly
2026-02-19 14:24:55 -05:00
0d200ba089
fixed backslashes not being stripped for special characters in double quotes
2026-02-19 00:33:02 -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
142194c100
migrated polling logic from virtterm branch to main
2026-02-16 18:28:57 -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
8bdc21c8d5
implemented autosuggestions for the line editor
2025-05-30 01:12:18 -04:00
94e22d68f3
about to implement readline myself
2025-05-15 00:53:39 -04:00