Skip to content

Commit 70ce3f8

Browse files
authored
add gg/G to vim config (#1041)
see #1039
1 parent 661e429 commit 70ce3f8

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Keep commit message when pre-commit hook fails ([#1035](https://github.com/extrawurst/gitui/issues/1035))
1212
- honor `pushurl` when checking whether we need username and password for pushing ([#953](https://github.com/extrawurst/gitui/issues/953))
1313

14+
### Key binding notes
15+
- added `gg`/`G` vim bindings to `vim_style_key_config.ron` ([#1039](https://github.com/extrawurst/gitui/issues/1039))
16+
1417
## [0.19] - 2021-12-08 - Bare Repo Support
1518

1619
**finder highlighting matches**
@@ -19,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1922

2023
### Breaking Change
2124
Have you used `key_config.ron` for custom key bindings before?
22-
The way this works got changed and simplified ([See docs](https://github.com/extrawurst/gitui/blob/master/KEY_CONFIG.md) for more info):
25+
The way this works got changed and simplified ([See docs](https://github.com/extrawurst/gitui/blob/master/KEY_CONFIG.md) for more info):
2326
* You only define the keys that should differ from the default.
2427
* The file is renamed to `key_bindings.ron`
2528
* Future addition of new keys will not break anymore
@@ -153,7 +156,7 @@ see `vim_style_key_config.ron` for their default vim binding
153156
- indicator for longer commit message than displayed ([#773](https://github.com/extrawurst/gitui/issues/773))
154157

155158
![msg-len](assets/long-msg-indicator.gif)
156-
159+
157160
### Fixed
158161
- wrong file with same name shown in file tree ([#748](https://github.com/extrawurst/gitui/issues/748))
159162
- filetree collapsing broken on windows ([#761](https://github.com/extrawurst/gitui/issues/761))
@@ -189,7 +192,7 @@ see `vim_style_key_config.ron` for their default vim binding
189192
- `--bugreport` cmd line arg to help diagnostics [[@zcorniere](https://github.com/zcorniere)] ([#695](https://github.com/extrawurst/gitui/issues/695))
190193

191194
### Changed
192-
- smarter log timestamps ([#682](https://github.com/extrawurst/gitui/issues/682))
195+
- smarter log timestamps ([#682](https://github.com/extrawurst/gitui/issues/682))
193196
- create-branch popup aligned with rename-branch [[@bruceCoelho](https://github.com/bruceCoelho)] ([#679](https://github.com/extrawurst/gitui/issues/679))
194197
- smart focus change after staging all files ([#706](https://github.com/extrawurst/gitui/issues/706))
195198
- do not allow to commit when `gpgsign` enabled ([#740](https://github.com/extrawurst/gitui/issues/740))
@@ -276,13 +279,13 @@ Thanks for your interest and support over this year! Read more about the 1 year
276279
![chars-branch-name](assets/chars_and_branchname.gif)
277280

278281
### Breaking Change
279-
- MacOS config directory now uses `~/.config/gitui` [[@remique](https://github.com/remique)] ([#317](https://github.com/extrawurst/gitui/issues/317))
282+
- MacOS config directory now uses `~/.config/gitui` [[@remique](https://github.com/remique)] ([#317](https://github.com/extrawurst/gitui/issues/317))
280283

281284
### Added
282285
- support for pull (fetch + simple merging) ([#319](https://github.com/extrawurst/gitui/issues/319))
283286
- show used char count in input texts ([#466](https://github.com/extrawurst/gitui/issues/466))
284287
- support smoother left/right toggle/keys for commit details ([#418](https://github.com/extrawurst/gitui/issues/418))
285-
- support *force push* command [[@WizardOhio24](https://github.com/WizardOhio24)] ([#274](https://github.com/extrawurst/gitui/issues/274))
288+
- support *force push* command [[@WizardOhio24](https://github.com/WizardOhio24)] ([#274](https://github.com/extrawurst/gitui/issues/274))
286289

287290
### Fixed
288291
- don't close branchlist every time ([#550](https://github.com/extrawurst/gitui/issues/550))

vim_style_key_config.ron

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
popup_down: Some(( code: Char('n'), modifiers: ( bits: 2,),)),
2929
page_up: Some(( code: Char('b'), modifiers: ( bits: 2,),)),
3030
page_down: Some(( code: Char('f'), modifiers: ( bits: 2,),)),
31+
home: Some(( code: Char('g'), modifiers: ( bits: 0,),)),
32+
end: Some(( code: Char('G'), modifiers: ( bits: 1,),)),
3133
shift_up: Some(( code: Char('K'), modifiers: ( bits: 1,),)),
3234
shift_down: Some(( code: Char('J'), modifiers: ( bits: 1,),)),
3335

0 commit comments

Comments
 (0)