diff options
author | a5ob7r <12132068+a5ob7r@users.noreply.github.com> | 2021-07-08 07:05:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 22:05:05 +0000 |
commit | 72675db3826ced63990fdede3dcaf07e76b1dde7 (patch) | |
tree | 6feec37157f281f43f2b7fd577beeb4be70f0ede /alacritty.yml | |
parent | 0486c7cb138564422a11d14ce002dd121327d700 (diff) | |
download | alacritty-72675db3826ced63990fdede3dcaf07e76b1dde7.tar.gz alacritty-72675db3826ced63990fdede3dcaf07e76b1dde7.zip |
Fix leaving vi mode with active selection
This bug comes from 530de00049c2afcc562d36ccdb3e6afa2fe396a5. The vi
cursor movement changes text selection range when it is on vi mode. On
the other hand the cursor movement doesn't change the range when it
isn't on vi mode. So preserve text selection range by toggling vi mode
early.
Diffstat (limited to 'alacritty.yml')
-rw-r--r-- | alacritty.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alacritty.yml b/alacritty.yml index 21f06fd0..a7628203 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -458,7 +458,7 @@ # Each hint must have a `regex` and either an `action` or a `command` field. # The fields `mouse`, `binding` and `post_processing` are optional. # - # The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and + # The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and # `mouse.mods` accept the same values as they do in the `key_bindings` section. # # The `mouse.enabled` field controls if the hint should be underlined while @@ -730,11 +730,11 @@ #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } # Vi Mode - #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom } #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode } + #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom } #- { key: Escape, mode: Vi|~Search, action: ClearSelection } - #- { key: I, mode: Vi|~Search, action: ScrollToBottom } #- { key: I, mode: Vi|~Search, action: ToggleViMode } + #- { key: I, mode: Vi|~Search, action: ScrollToBottom } #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode } #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp } #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown } |