mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Add default Home
/End
bindings for Vi mode
This commit is contained in:
parent
6484ab84db
commit
63bcc1ea88
3 changed files with 14 additions and 0 deletions
|
@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
|
||||
## 0.14.0-dev
|
||||
|
||||
### Added
|
||||
|
||||
- Default `Home`/`End` bindings in Vi mode mapped to `First`/`Last` respectively
|
||||
|
||||
### Fixed
|
||||
|
||||
- CLI env variables clearing configuration file variables
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"_
|
||||
|
|
Loading…
Reference in a new issue