summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-26 19:06:22 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commitee1337b93190d7354b64ce84bf5c9bccba48fe4e (patch)
tree0b7a8b96ffa0417d0a9356ea0d2ed836f292250f /pkg/gui/keybindings.go
parentd543e767d4b856e975de67a4c10e64e0a656b329 (diff)
add remote branches controller
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go58
1 files changed, 0 insertions, 58 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 7c5e0be25..4b0fcd99a 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -388,21 +388,6 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Description: self.c.Tr.LcCopyBranchNameToClipboard,
},
{
- ViewName: "branches",
- Contexts: []string{string(context.REMOTE_BRANCHES_CONTEXT_KEY)},
- Key: opts.GetKey(opts.Config.Universal.Return),
- Handler: self.handleRemoteBranchesEscape,
- Description: self.c.Tr.ReturnToRemotesList,
- },
- {
- ViewName: "branches",
- Contexts: []string{string(context.REMOTE_BRANCHES_CONTEXT_KEY)},
- Key: opts.GetKey(opts.Config.Commits.ViewResetOptions),
- Handler: self.handleCreateResetToRemoteBranchMenu,
- Description: self.c.Tr.LcViewResetOptions,
- OpensMenu: true,
- },
- {
ViewName: "commits",
Contexts: []string{string(context.LOCAL_COMMITS_CONTEXT_KEY)},
Key: opts.GetKey(opts.Config.Universal.CopyToClipboard),
@@ -873,49 +858,6 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Description: self.c.Tr.LcUndo,
},
{
- ViewName: "branches",
- Contexts: []string{string(context.REMOTE_BRANCHES_CONTEXT_KEY)},
- Key: opts.GetKey(opts.Config.Universal.Select),
- // gonna use the exact same handler as the 'n' keybinding because everybody wants this to happen when they checkout a remote branch
- Handler: self.handleNewBranchOffRemoteBranch,
- Description: self.c.Tr.LcCheckout,
- },
- {
- ViewName: "branches",
- Contexts: []string{string(context.REMOTE_BRANCHES_CONTEXT_KEY)},
- Key: opts.GetKey(opts.Config.Universal.New),
- Handler: self.handleNewBranchOffRemoteBranch,
- Description: self.c.Tr.LcNewBranch,
- },
- {
- ViewName: "branches",
- Contexts: []string{string(context.REMOTE_BRANCHES_CONTEXT_KEY)},
- Key: opts.GetKey(opts.Config.Branches.MergeIntoCurrentBranch),
- Handler: opts.Guards.OutsideFilterMode(self.handleMergeRemoteBranch),
- Description: self.c.Tr.LcMergeIntoCurrentBranch,
- },
- {
- ViewName: "branches",
- Contexts: []string{string(context.REMOTE_BRANCHES_CONTEXT_KEY)},
- Key: opts.GetKey(opts.Config.Universal.Remove),
- Handler: self.handleDeleteRemoteBranch,
- Description: self.c.Tr.LcDeleteBranch,
- },
- {
- ViewName: "branches",
- Contexts: []string{string(context.REMOTE_BRANCHES_CONTEXT_KEY)},
- Key: opts.GetKey(opts.Config.Branches.RebaseBranch),
- Handler: opts.Guards.OutsideFilterMode(self.handleRebaseOntoRemoteBranch),
- Description: self.c.Tr.LcRebaseBranch,
- },
- {
- ViewName: "branches",
- Contexts: []string{string(context.REMOTE_BRANCHES_CONTEXT_KEY)},
- Key: opts.GetKey(opts.Config.Branches.SetUpstream),
- Handler: self.handleSetBranchUpstream,
- Description: self.c.Tr.LcSetUpstream,
- },
- {
ViewName: "status",
Key: gocui.MouseLeft,
Modifier: gocui.ModNone,