From bea80dbfe722c7bb13e19665ddbadea03b8b6293 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 17 May 2021 16:58:19 +0530 Subject: implement reverse cycle through completions --- src/app.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/app.rs') 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> { Keycode::Up => self.command_box.hist_prev(), Keycode::Down => self.command_box.hist_next(), Keycode::Return => self.eval_command(), - Keycode::Tab => self.command_box.complete_next(&self.lisp_env), + Keycode::Tab if keymod == Mod::LSHIFTMOD => { + self.command_box.complete(&self.lisp_env, true) + } + Keycode::Tab => self.command_box.complete(&self.lisp_env, false), Keycode::Escape => { self.command_box.clear(); self.message.text.clear(); -- cgit v1.2.3