diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-12-16 18:50:22 +0400 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2023-12-22 10:42:02 +0100 |
commit | 5d94e9ebee88c6542e2768f9bbdf252417039f99 (patch) | |
tree | 6f79ab46500899977c8a88d38831a7c2961d4d74 | |
parent | 53290c9e10a786e6a348dbdf94aef76d668387cd (diff) | |
download | alacritty-5d94e9ebee88c6542e2768f9bbdf252417039f99.tar.gz alacritty-5d94e9ebee88c6542e2768f9bbdf252417039f99.zip |
Fix the order of `ClearSelection` in Vi mode
Fixes #7438.
-rw-r--r-- | alacritty/src/config/bindings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 36f5f521..b75676a3 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -545,12 +545,12 @@ pub fn default_key_bindings() -> Vec<KeyBinding> { fn common_keybindings() -> Vec<KeyBinding> { bindings!( KeyBinding; - "c", ModifiersState::CONTROL | ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; Action::ClearSelection; "v", ModifiersState::CONTROL | ModifiersState::SHIFT, ~BindingMode::VI; Action::Paste; "f", ModifiersState::CONTROL | ModifiersState::SHIFT, ~BindingMode::SEARCH; Action::SearchForward; "b", ModifiersState::CONTROL | ModifiersState::SHIFT, ~BindingMode::SEARCH; Action::SearchBackward; Insert, ModifiersState::SHIFT, ~BindingMode::VI; Action::PasteSelection; "c", ModifiersState::CONTROL | ModifiersState::SHIFT; Action::Copy; + "c", ModifiersState::CONTROL | ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; Action::ClearSelection; "0", ModifiersState::CONTROL; Action::ResetFontSize; "=", ModifiersState::CONTROL; Action::IncreaseFontSize; "+", ModifiersState::CONTROL; Action::IncreaseFontSize; @@ -579,7 +579,6 @@ pub fn platform_key_bindings() -> Vec<KeyBinding> { pub fn platform_key_bindings() -> Vec<KeyBinding> { bindings!( KeyBinding; - "c", ModifiersState::SUPER, +BindingMode::VI, ~BindingMode::SEARCH; Action::ClearSelection; Insert, ModifiersState::SHIFT, ~BindingMode::VI, ~BindingMode::SEARCH; Action::Esc("\x1b[2;2~".into()); // Tabbing api. "t", ModifiersState::SUPER; Action::CreateNewTab; @@ -606,6 +605,7 @@ pub fn platform_key_bindings() -> Vec<KeyBinding> { "n", ModifiersState::SUPER; Action::CreateNewWindow; "f", ModifiersState::CONTROL | ModifiersState::SUPER; Action::ToggleFullscreen; "c", ModifiersState::SUPER; Action::Copy; + "c", ModifiersState::SUPER, +BindingMode::VI, ~BindingMode::SEARCH; Action::ClearSelection; "h", ModifiersState::SUPER; Action::Hide; "h", ModifiersState::SUPER | ModifiersState::ALT; Action::HideOtherApplications; "m", ModifiersState::SUPER; Action::Minimize; |