Commit Graph

57 Commits

Author SHA1 Message Date
fbadbebf8c Implemented the autocmd builtin, which allows you to register hooks for certain shell events. 2026-03-04 14:12:10 -05:00
c642a96da7 Added 'read_key' builtin that allows widget scripts to handle input 2026-03-03 20:39:09 -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
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
84aed128d6 completion now prefers completing variable names before trying comp specs
improved color picking for error messages
2026-03-01 11:02:13 -05:00
ffe78620a9 Fixed 'C' and 'D' verbs deleting the newline character 2026-03-01 02:39:22 -05:00
4a0cefee32 More progress on integrating ariadne's error reporting 2026-03-01 02:20:58 -05:00
ef0f66efaa Work on integrating error reporting using the ariadne crate 2026-02-28 20:30:12 -05:00
ee4eb86ca5 cleaned up all compiler warnings 2026-02-27 11:08:42 -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
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
5f3610c298 Early implementation of bash-like completions with 'complete' and 'compgen' builtins 2026-02-27 01:10:52 -05:00
90e69f96d2 changed package name from 'fern' to 'shed' 2026-02-24 18:02:13 -05:00
fee45145c8 flow control keywords are now highlighted purple 2026-02-24 16:22:59 -05:00
cf46303659 Ran the codebase through rustfmt 2026-02-23 23:32:46 -05:00
5721cdb7ca Highlighter now handles highlighting visual mode selections instead of LineBuf 2026-02-20 14:03:42 -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
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
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
70f0e849ba Fixed logic for EINTR propagation 2026-01-28 20:48:29 -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
8cacbfdbdd implemented history for the line editor 2025-05-28 20:24:09 -04:00
b30de3232b Fully implemented vi-style editor commands 2025-05-19 16:08:21 -04:00
14f9b6dca4 initial commit for fern's readline impl 2025-05-15 03:35:41 -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
1eb19092cc implemented globbing and tilde expansions 2025-03-28 12:02:34 -04:00
1854578d49 Improved error reporting and fully implemented the shopt command 2025-03-26 23:41:19 -04:00
70d114254d Implemented a new builtin and improved error handling 2025-03-24 17:53:32 -04:00
26fc4669f0 Implemented command substitution 2025-03-19 16:46:45 -04:00
255a4586b4 added another test for the parser 2025-03-19 15:16:43 -04:00
19dee4bcd6 Re-implemented aliases 2025-03-18 21:50:53 -04:00
0d286ba006 Implemented prompt expansion, and display for errors 2025-03-18 15:54:06 -04:00
da51be27a7 Implemented logic for loops and if statements 2025-03-16 14:28:49 -04:00
92d7766765 Early work on scripting features 2025-03-16 02:56:29 -04:00
505b968c60 Various additions and improvements 2025-03-15 21:04:45 -04:00
d4f8f023af re-imported job/signal code from old implementation 2025-03-15 17:14:52 -04:00
2acf70ef96 Implemented assignments, working on job control 2025-03-15 16:57:34 -04:00
97b4b1835d Progress 2025-03-15 00:02:05 -04:00
e81c4903b9 Implemented brace expansion 2025-03-10 01:50:12 -04:00
363e4805b7 Early work on tab completion 2025-03-09 21:59:12 -04:00
58abe3bc3d Implemented prompt expansion 2025-03-09 03:30:03 -04:00
90a188d4b2 Implemented heredocs and herestrings 2025-03-09 00:34:49 -05:00
cdcfb23edb Implemented scoping for expansions 2025-03-08 01:38:42 -05:00