diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-11-28 03:03:29 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 03:03:29 +0400 |
commit | 5adfc4fb00d1b523bd17bbd73515d30636de0a0e (patch) | |
tree | 30697aa8b7be9bea069f04788af191f1e9f6d4e9 | |
parent | b8f6a250e7caf38920a56a8389f317593ecb8fad (diff) | |
download | alacritty-5adfc4fb00d1b523bd17bbd73515d30636de0a0e.tar.gz alacritty-5adfc4fb00d1b523bd17bbd73515d30636de0a0e.zip |
Adjust default Vi's SearchBackwards binding
We have the same policy with Shift for numbers.
-rw-r--r-- | alacritty/src/config/bindings.rs | 2 | ||||
-rw-r--r-- | extra/man/alacritty-bindings.5.scd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 01e7e59c..90cedefd 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -509,7 +509,7 @@ pub fn default_key_bindings() -> Vec<KeyBinding> { "y", +BindingMode::VI, ~BindingMode::SEARCH; Action::Copy; "y", +BindingMode::VI, ~BindingMode::SEARCH; Action::ClearSelection; "/", +BindingMode::VI, ~BindingMode::SEARCH; Action::SearchForward; - "/", ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; Action::SearchBackward; + "?", ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; Action::SearchBackward; "v", +BindingMode::VI, ~BindingMode::SEARCH; ViAction::ToggleNormalSelection; "v", ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; ViAction::ToggleLineSelection; "v", ModifiersState::CONTROL, +BindingMode::VI, ~BindingMode::SEARCH; ViAction::ToggleBlockSelection; diff --git a/extra/man/alacritty-bindings.5.scd b/extra/man/alacritty-bindings.5.scd index 9bd51dbd..a1c63a09 100644 --- a/extra/man/alacritty-bindings.5.scd +++ b/extra/man/alacritty-bindings.5.scd @@ -273,7 +273,7 @@ configuration. See *alacritty*(5) for full configuration format documentation. :[ : _"Vi|~Search"_ : _"SearchForward"_ -| _"/"_ +| _"?"_ : _"Shift"_ : _"Vi|~Search"_ : _"SearchBackward"_ |