diff options
author | VuiMuich | 2021-10-19 09:37:38 +0000 |
---|---|---|
committer | GitHub | 2021-10-19 09:37:38 +0000 |
commit | 67829976faca1c2fdeb3964c25cb35bc41f0b8df (patch) | |
tree | a4212c54d47ef7f606a72e1f456e211217dd2642 /helix-term/src/ui | |
parent | 1766bdb9d4c3df24a010041cd014b6fecb7641fa (diff) |
Add `C-j` and `C-k` to keybinds for picker (#876)
* Add `C-j` and `C-k` for moving down/up in pickers
* Add new binds to keymap doc
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/picker.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 9be2a73e..6f584178 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -337,6 +337,10 @@ impl<T: 'static> Component for Picker<T> { .. } | KeyEvent { + code: KeyCode::Char('k'), + modifiers: KeyModifiers::CONTROL, + } + | KeyEvent { code: KeyCode::Char('p'), modifiers: KeyModifiers::CONTROL, } => { @@ -350,6 +354,10 @@ impl<T: 'static> Component for Picker<T> { code: KeyCode::Tab, .. } | KeyEvent { + code: KeyCode::Char('j'), + modifiers: KeyModifiers::CONTROL, + } + | KeyEvent { code: KeyCode::Char('n'), modifiers: KeyModifiers::CONTROL, } => { |