diff options
author | Akshay <[email protected]> | 2021-05-17 12:28:19 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-05-17 12:28:19 +0100 |
commit | bea80dbfe722c7bb13e19665ddbadea03b8b6293 (patch) | |
tree | c7685af23965cfaeb19969291d1d883bffc83039 /src/app.rs | |
parent | d2cc31ee49d673f343ce5089071ef3628c3cdc97 (diff) |
implement reverse cycle through completions
Diffstat (limited to 'src/app.rs')
-rw-r--r-- | src/app.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1042,7 +1042,10 @@ impl<'ctx> AppState<'ctx> { | |||
1042 | Keycode::Up => self.command_box.hist_prev(), | 1042 | Keycode::Up => self.command_box.hist_prev(), |
1043 | Keycode::Down => self.command_box.hist_next(), | 1043 | Keycode::Down => self.command_box.hist_next(), |
1044 | Keycode::Return => self.eval_command(), | 1044 | Keycode::Return => self.eval_command(), |
1045 | Keycode::Tab => self.command_box.complete_next(&self.lisp_env), | 1045 | Keycode::Tab if keymod == Mod::LSHIFTMOD => { |
1046 | self.command_box.complete(&self.lisp_env, true) | ||
1047 | } | ||
1048 | Keycode::Tab => self.command_box.complete(&self.lisp_env, false), | ||
1046 | Keycode::Escape => { | 1049 | Keycode::Escape => { |
1047 | self.command_box.clear(); | 1050 | self.command_box.clear(); |
1048 | self.message.text.clear(); | 1051 | self.message.text.clear(); |