diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-22 20:13:11 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | ecaff7fc6cc3d2e510a88e336abcb74567de3f12 (patch) | |
tree | 4c896b81f194659708062a9fa5979f54e7a2ed3e /pkg/gui/keybindings.go | |
parent | 85f23198971de56195a4a1790d70e9d3b4ea1908 (diff) |
add commit files controller
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index dfff8c9e1..fa0e893e0 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -473,48 +473,6 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi Description: self.c.Tr.LcCopyCommitFileNameToClipboard, }, { - ViewName: "commitFiles", - Key: opts.GetKey(opts.Config.CommitFiles.CheckoutCommitFile), - Handler: self.handleCheckoutCommitFile, - Description: self.c.Tr.LcCheckoutCommitFile, - }, - { - ViewName: "commitFiles", - Key: opts.GetKey(opts.Config.Universal.Remove), - Handler: self.handleDiscardOldFileChange, - Description: self.c.Tr.LcDiscardOldFileChange, - }, - { - ViewName: "commitFiles", - Key: opts.GetKey(opts.Config.Universal.OpenFile), - Handler: self.handleOpenOldCommitFile, - Description: self.c.Tr.LcOpenFile, - }, - { - ViewName: "commitFiles", - Key: opts.GetKey(opts.Config.Universal.Edit), - Handler: self.handleEditCommitFile, - Description: self.c.Tr.LcEditFile, - }, - { - ViewName: "commitFiles", - Key: opts.GetKey(opts.Config.Universal.Select), - Handler: self.handleToggleFileForPatch, - Description: self.c.Tr.LcToggleAddToPatch, - }, - { - ViewName: "commitFiles", - Key: opts.GetKey(opts.Config.Universal.GoInto), - Handler: self.handleEnterCommitFile, - Description: self.c.Tr.LcEnterFile, - }, - { - ViewName: "commitFiles", - Key: opts.GetKey(opts.Config.Files.ToggleTreeView), - Handler: self.handleToggleCommitFileTreeView, - Description: self.c.Tr.LcToggleTreeView, - }, - { ViewName: "", Key: opts.GetKey(opts.Config.Universal.FilteringMenu), Handler: self.handleCreateFilteringMenuPanel, @@ -571,13 +529,6 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi Alternative: "fn+down", }, { - ViewName: "main", - Contexts: []string{string(context.MAIN_NORMAL_CONTEXT_KEY)}, - Key: gocui.MouseLeft, - Modifier: gocui.ModNone, - Handler: self.handleMouseDownMain, - }, - { ViewName: "secondary", Contexts: []string{string(context.MAIN_STAGING_CONTEXT_KEY)}, Key: gocui.MouseLeft, |