aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-05-17 12:28:19 +0100
committerAkshay <[email protected]>2021-05-17 12:28:19 +0100
commitbea80dbfe722c7bb13e19665ddbadea03b8b6293 (patch)
treec7685af23965cfaeb19969291d1d883bffc83039 /src/app.rs
parentd2cc31ee49d673f343ce5089071ef3628c3cdc97 (diff)
implement reverse cycle through completions
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app.rs b/src/app.rs
index aba71f8..266c28b 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -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();