diff options
| author | Jonas Maier <> | 2026-05-03 14:31:05 +0200 |
|---|---|---|
| committer | Jonas Maier <> | 2026-05-03 14:31:05 +0200 |
| commit | 4f1dfb90ba2a859875c2cee9990e9c94fb789ef3 (patch) | |
| tree | cc7b31649183f670f69b6fceda46010624882c5d /src/run | |
| parent | d8eee55eda8f1b083367c8cb8c2956612847ce5f (diff) | |
| download | pish-4f1dfb90ba2a859875c2cee9990e9c94fb789ef3.tar.gz | |
keybinds
Diffstat (limited to 'src/run')
| -rw-r--r-- | src/run/builtin.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/run/builtin.rs b/src/run/builtin.rs index 56dda97..4a7e332 100644 --- a/src/run/builtin.rs +++ b/src/run/builtin.rs @@ -810,15 +810,21 @@ impl Builtin for ct { b"cursor_left_word" => se.cursor_left_word(), b"prompt_clear" => se.prompt_clear(), b"screen_clear" => se.screen_clear(), - b"complete" => { - drop(se); - Session::complete(session) - } b"history_previous" => se.history_up(), b"history_next" => se.history_down(), b"prompt_del_left" => se.del_left(), b"prompt_del_right" => se.del_right(), + b"prompt_del_left_word" => se.del_left_word(), + b"prompt_del_right_word" => se.del_right_word(), b"prompt_del_left_or_previous" => se.del_left_or_previous(), + b"complete" => { + drop(se); + Session::complete(session) + } + b"try_submit_command" => { + drop(se); + Session::try_submit_command(session); + } _ => return Err(Error::Exit(-2)), } |
