diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2024-02-08 01:52:53 +0400 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2024-03-19 02:20:53 +0100 |
commit | 4e052be4a40ff35aaca76a1eb8e0e62bcfebbd81 (patch) | |
tree | 353c6f18ff2f334960678d99c04058ceccd1c3f8 | |
parent | 1d43964bc66346a6e2fc07b1074e63bfcb3b2a3a (diff) | |
download | alacritty-4e052be4a40ff35aaca76a1eb8e0e62bcfebbd81.tar.gz alacritty-4e052be4a40ff35aaca76a1eb8e0e62bcfebbd81.zip |
Add default `Home`/`End` bindings for Vi mode
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | alacritty/src/config/bindings.rs | 2 | ||||
-rw-r--r-- | extra/man/alacritty-bindings.5.scd | 8 |
3 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e3e207b..e2771d76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## 0.13.2-dev +### Added + +- Default `Home`/`End` bindings in Vi mode mapped to `First`/`Last` respectively + ### Fixed - CLI env variables clearing configuration file variables diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 57225e26..62ca03a0 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -497,6 +497,8 @@ pub fn default_key_bindings() -> Vec<KeyBinding> { ArrowRight, +BindingMode::VI, ~BindingMode::SEARCH; ViMotion::Right; "0", +BindingMode::VI, ~BindingMode::SEARCH; ViMotion::First; "$", ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; ViMotion::Last; + Home, +BindingMode::VI, ~BindingMode::SEARCH; ViMotion::First; + End, +BindingMode::VI, ~BindingMode::SEARCH; ViMotion::Last; "^", ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; ViMotion::FirstOccupied; "h", ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; ViMotion::High; "m", ModifiersState::SHIFT, +BindingMode::VI, ~BindingMode::SEARCH; ViMotion::Middle; diff --git a/extra/man/alacritty-bindings.5.scd b/extra/man/alacritty-bindings.5.scd index 36dd69a9..3de2986e 100644 --- a/extra/man/alacritty-bindings.5.scd +++ b/extra/man/alacritty-bindings.5.scd @@ -229,6 +229,14 @@ configuration. See *alacritty*(5) for full configuration format documentation. : _"Shift"_ : _"Vi|~Search"_ : _"Last"_ +| _"Home"_ +:[ +: _"Vi|~Search"_ +: _"First"_ +| _"End"_ +:[ +: _"Vi|~Search"_ +: _"Last"_ | _"^"_ : _"Shift"_ : _"Vi|~Search"_ |