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
This commit is contained in:
parent
1766bdb9d4
commit
67829976fa
2 changed files with 17 additions and 9 deletions
|
@ -242,12 +242,12 @@ commands (including goto) to extend the existing selection instead of replacing
|
|||
|
||||
Keys to use within picker. Remapping currently not supported.
|
||||
|
||||
| Key | Description |
|
||||
| ----- | ------------- |
|
||||
| `Up`, `Ctrl-p` | Previous entry |
|
||||
| `Down`, `Ctrl-n` | Next entry |
|
||||
| `Ctrl-space` | Filter options |
|
||||
| `Enter` | Open selected |
|
||||
| `Ctrl-h` | Open horizontally |
|
||||
| `Ctrl-v` | Open vertically |
|
||||
| `Escape`, `Ctrl-c` | Close picker |
|
||||
| Key | Description |
|
||||
| ----- | ------------- |
|
||||
| `Up`, `Ctrl-k`, `Ctrl-p` | Previous entry |
|
||||
| `Down`, `Ctrl-j`, `Ctrl-n` | Next entry |
|
||||
| `Ctrl-space` | Filter options |
|
||||
| `Enter` | Open selected |
|
||||
| `Ctrl-h` | Open horizontally |
|
||||
| `Ctrl-v` | Open vertically |
|
||||
| `Escape`, `Ctrl-c` | Close picker |
|
||||
|
|
|
@ -336,6 +336,10 @@ impl<T: 'static> Component for Picker<T> {
|
|||
code: KeyCode::BackTab,
|
||||
..
|
||||
}
|
||||
| KeyEvent {
|
||||
code: KeyCode::Char('k'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
}
|
||||
| KeyEvent {
|
||||
code: KeyCode::Char('p'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
|
@ -349,6 +353,10 @@ impl<T: 'static> Component for Picker<T> {
|
|||
| KeyEvent {
|
||||
code: KeyCode::Tab, ..
|
||||
}
|
||||
| KeyEvent {
|
||||
code: KeyCode::Char('j'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
}
|
||||
| KeyEvent {
|
||||
code: KeyCode::Char('n'),
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
|
|
Loading…
Add table
Reference in a new issue