on master help sign in
Match keybindings of menu
commit1bb9977fafc145448e4ea77f4cb3a132d1542bfa authorKevin Sjöberg <mail@kevinsjoberg.com> dateTue 8 Jun 2021, 20:50 (5 years ago) parent29962a5
1 file changed+13−2
helix-term/src/ui/picker.rs+13−2
helix-term/src/ui/picker.rs+13−2
@@ -151,7 +151,11 @@ impl<T: 'static> Component for Picker<T> {
151151 code: KeyCode::Up, ..
152152 }
153153 | KeyEvent {
154− code: KeyCode::Char('k'),
154+ code: KeyCode::BackTab,
155+ ..
156+ }
157+ | KeyEvent {
158+ code: KeyCode::Char('p'),
155159 modifiers: KeyModifiers::CONTROL,
156160 } => self.move_up(),
157161 KeyEvent {
@@ -159,11 +163,18 @@ impl<T: 'static> Component for Picker<T> {
159163 ..
160164 }
161165 | KeyEvent {
162− code: KeyCode::Char('j'),
166+ code: KeyCode::Tab, ..
167+ }
168+ | KeyEvent {
169+ code: KeyCode::Char('n'),
163170 modifiers: KeyModifiers::CONTROL,
164171 } => self.move_down(),
165172 KeyEvent {
166173 code: KeyCode::Esc, ..
174+ }
175+ | KeyEvent {
176+ code: KeyCode::Char('c'),
177+ modifiers: KeyModifiers::CONTROL,
167178 } => {
168179 return close_fn;
169180 }