diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-12-31 05:33:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 05:33:58 +0000 |
commit | 0aa1df327bf5c3e7892ad13d949be7e598aafda9 (patch) | |
tree | 9720a7668255080fb078e3658eb852de1a800349 | |
parent | d0301ef655e7cb5631e4492039a386d28d0c49fb (diff) | |
download | alacritty-0aa1df327bf5c3e7892ad13d949be7e598aafda9.tar.gz alacritty-0aa1df327bf5c3e7892ad13d949be7e598aafda9.zip |
Add default binding to cancel search on Ctrl+C
Fixes #4612.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty.yml | 1 | ||||
-rw-r--r-- | alacritty/src/config/bindings.rs | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a0d36e9..78f74a8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Urgency support on Windows - Customizable keybindings for search - History for search mode, bound to ^P/^N/Up/Down by default +- Default binding to cancel search on Ctrl+C ### Changed diff --git a/alacritty.yml b/alacritty.yml index 89a1c65f..a24f478b 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -742,6 +742,7 @@ # Search Mode #- { key: Return, mode: Search|Vi, action: SearchConfirm } #- { key: Escape, mode: Search, action: SearchCancel } + #- { key: C, mods: Control, mode: Search, action: SearchCancel } #- { key: U, mods: Control, mode: Search, action: SearchClear } #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } #- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 9babd7f0..50923a37 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -507,6 +507,7 @@ pub fn default_key_bindings() -> Vec<KeyBinding> { Return, +BindingMode::SEARCH, +BindingMode::VI; SearchAction::SearchConfirm; Escape, +BindingMode::SEARCH; SearchAction::SearchCancel; + C, ModifiersState::CTRL, +BindingMode::SEARCH; SearchAction::SearchCancel; U, ModifiersState::CTRL, +BindingMode::SEARCH; SearchAction::SearchClear; W, ModifiersState::CTRL, +BindingMode::SEARCH; SearchAction::SearchDeleteWord; P, ModifiersState::CTRL, +BindingMode::SEARCH; SearchAction::SearchHistoryPrevious; |