Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* support rewording non-HEAD commits when `commit.gpgsign` is enabled (gpg format only) [[@guerinoni](https://github.com/guerinoni)] ([#2959](https://github.com/gitui-org/gitui/pull/2959))

### Fixes
* use `Alt+u` to undo a commit in the Vim keybindings so it has a distinct key from file reset (`Shift+U`) ([#2704](https://github.com/gitui-org/gitui/issues/2704))
* crash when opening submodule ([#2895](https://github.com/gitui-org/gitui/issues/2895))
* when staging the last file in a directory, the first item after the directory is no longer skipped [[@Tillerino](https://github.com/Tillerino)] ([#2748](https://github.com/gitui-org/gitui/issues/2748))
* index-out-of-bounds panic when unstaging lines near the end of a diff ([#2953](https://github.com/gitui-org/gitui/issues/2953))
Expand Down
1 change: 1 addition & 0 deletions KEY_CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Create a `key_bindings.ron` file like this:
open_help: Some(( code: F(1), modifiers: "")),

status_reset_item: Some(( code: Char('U'), modifiers: "SHIFT")),
undo_commit: Some(( code: Char('u'), modifiers: "ALT")),
)
```

Expand Down
4 changes: 4 additions & 0 deletions src/keys/key_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ mod tests {
let patch = ron::de::from_reader(f)
.expect("vim style config format incorrect");
keys_list.apply(patch);
assert_ne!(
keys_list.status_reset_item,
keys_list.undo_commit
);
}

#[test]
Expand Down
1 change: 1 addition & 0 deletions vim_style_key_config.ron
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
edit_file: Some(( code: Char('I'), modifiers: "SHIFT")),

status_reset_item: Some(( code: Char('U'), modifiers: "SHIFT")),
undo_commit: Some(( code: Char('u'), modifiers: "ALT")),

diff_reset_lines: Some(( code: Char('u'), modifiers: "")),
diff_stage_lines: Some(( code: Char('s'), modifiers: "")),
Expand Down