Skip to content

Commit

Permalink
Revert "Resolve conflicts between prompt/picker bindings (helix-edito…
Browse files Browse the repository at this point in the history
…r#1792)"

This reverts commit 5d61631.
  • Loading branch information
farwyler committed Nov 29, 2022
1 parent 607c74e commit f1467fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions book/src/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,10 @@ Keys to use within picker. Remapping currently not supported.

| Key | Description |
| ----- | ------------- |
| `Shift-Tab`, `Up`, `Ctrl-p` | Previous entry |
| `Tab`, `Down`, `Ctrl-n` | Next entry |
| `PageUp`, `Ctrl-u` | Page up |
| `PageDown`, `Ctrl-d` | Page down |
| `Up`, `Ctrl-k`, `Ctrl-p` | Previous entry |
| `PageUp`, `Ctrl-b` | Page up |
| `Down`, `Ctrl-j`, `Ctrl-n` | Next entry |
| `PageDown`, `Ctrl-f` | Page down |
| `Home` | Go to first entry |
| `End` | Go to last entry |
| `Enter` | Open selected |
Expand Down
8 changes: 4 additions & 4 deletions helix-term/src/ui/picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,16 @@ impl<T: Item + 'static> Component for Picker<T> {
cx.editor.reset_idle_timer();

match key_event {
shift!(Tab) | key!(Up) | ctrl!('p') => {
shift!(Tab) | key!(Up) | ctrl!('p') | ctrl!('k') => {
self.move_by(1, Direction::Backward);
}
key!(Tab) | key!(Down) | ctrl!('n') => {
key!(Tab) | key!(Down) | ctrl!('n') | ctrl!('j') => {
self.move_by(1, Direction::Forward);
}
key!(PageDown) | ctrl!('d') => {
key!(PageDown) | ctrl!('f') => {
self.page_down();
}
key!(PageUp) | ctrl!('u') => {
key!(PageUp) | ctrl!('b') => {
self.page_up();
}
key!(Home) => {
Expand Down

0 comments on commit f1467fe

Please sign in to comment.