diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-30 09:06:11 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-02 08:09:42 +1000 |
commit | ea307c8d94623bd0279297db2cf3990492998ab4 (patch) | |
tree | 8053c95e8a710656150b3eabd2e8d2cc658655cf /pkg/gui/keybindings.go | |
parent | 7b4a0f20b26d884cb756f09bc7514e57941709d4 (diff) |
add more submodule commands
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index b08f3df92..fcdbbb2c1 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1586,6 +1586,21 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.wrappedHandler(gui.handleCopySelectedSideContextItemToClipboard), Description: gui.Tr.SLocalize("copySubmoduleNameToClipboard"), }, + { + ViewName: "files", + Contexts: []string{SUBMODULES_CONTEXT_KEY}, + Key: gui.getKey("universal.remove"), + + Handler: gui.wrappedHandler(gui.handleRemoveSubmodule), + Description: gui.Tr.SLocalize("removeSubmodule"), + }, + { + ViewName: "files", + Contexts: []string{SUBMODULES_CONTEXT_KEY}, + Key: gui.getKey("u"), + Handler: gui.wrappedHandler(gui.handleResetSubmodule), + Description: gui.Tr.SLocalize("submoduleStashAndReset"), + }, } for _, viewName := range []string{"status", "branches", "files", "commits", "commitFiles", "stash", "menu"} { |