Skip to content

Commit

Permalink
Change quit key for vim mode in FuzzySelect
Browse files Browse the repository at this point in the history
Change the quit key to be 'q' instead of Escape.
  • Loading branch information
damymetzke committed May 21, 2023
1 parent 21c875f commit 4165fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompts/fuzzy_select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl FuzzySelect<'_> {
(Key::Escape, _, false) if self.enable_vim_mode => {
vim_mode = true;
}
(Key::Escape, _, _) if allow_quit => {
(Key::Escape, _, false) | (Key::Char('q'), _, true) if allow_quit => {
if self.clear {
render.clear()?;
term.flush()?;
Expand Down

0 comments on commit 4165fcb

Please sign in to comment.