diff options
author | Liberatys <nick.flueckiger@renuo.ch> | 2021-06-20 16:55:50 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-08-25 20:13:50 +1000 |
commit | 2dc6f5f07971dc5a8ed6cc22151b81fe659ba326 (patch) | |
tree | 553341841998b81109da9f1d6bfa6cfffdd9193d /pkg/gui/keybindings.go | |
parent | bdea3b7dcfc6da36d8bb52fca0bc9dc32027320b (diff) |
Implement state filtering for commit files
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 4b20bab95..4d593dbd0 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -383,6 +383,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "files", + Key: gui.getKey("<c-b>"), + Handler: gui.handleStatusFilterPressed, + Description: gui.Tr.LcCommitFileFilter, + }, + { + ViewName: "files", Contexts: []string{string(FILES_CONTEXT_KEY)}, Key: gui.getKey(config.Files.CommitChanges), Handler: gui.handleCommitPress, |