aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorRohan Jain2022-03-31 07:51:11 +0000
committerGitHub2022-03-31 07:51:11 +0000
commit5d61631507143194594f1dff6af9f862ce79992e (patch)
tree74a7f8c111251950c59cddb4ec783c9b1a59b130 /helix-term/src/ui
parentef91b6500c208807cf71ab07f04bad27f0190a65 (diff)
Resolve conflicts between prompt/picker bindings (#1792)
Currently, the picker's re-using a few bindings which are also present in the prompt. This causes some editing behaviours to not function on the picker. **Ctrl + k** and **Ctrl + j** This should kill till the end of the line on prompt, but is overridden by the picker for scrolling. Since there are redundancies (`Ctrl + p`, `Ctrl + n`), we can remove it from picker. **Ctrl + f** and **Ctrl + b** This are used by the prompt for back/forward movement. We could modify it to be Ctrl + d and Ctrl + u, to match the `vim` behaviour.
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/picker.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index 42c42284..dec59c89 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -498,16 +498,16 @@ impl<T: 'static> Component for Picker<T> {
})));
match key_event.into() {
- shift!(Tab) | key!(Up) | ctrl!('p') | ctrl!('k') => {
+ shift!(Tab) | key!(Up) | ctrl!('p') => {
self.move_by(1, Direction::Backward);
}
- key!(Tab) | key!(Down) | ctrl!('n') | ctrl!('j') => {
+ key!(Tab) | key!(Down) | ctrl!('n') => {
self.move_by(1, Direction::Forward);
}
- key!(PageDown) | ctrl!('f') => {
+ key!(PageDown) | ctrl!('d') => {
self.page_down();
}
- key!(PageUp) | ctrl!('b') => {
+ key!(PageUp) | ctrl!('u') => {
self.page_up();
}
key!(Home) => {