From 79888d3bdeae57bad17db4b0716a5f59e7c2df31 Mon Sep 17 00:00:00 2001 From: Farzad Majidfayyaz Date: Tue, 10 Nov 2020 14:57:50 -0500 Subject: Add mapping to copy a pull request URL to the clipboard --- pkg/gui/keybindings.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg/gui/keybindings.go') diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 2f005a442..db01c1455 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -505,6 +505,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleCreatePullRequestPress, Description: gui.Tr.LcCreatePullRequest, }, + { + ViewName: "branches", + Contexts: []string{LOCAL_BRANCHES_CONTEXT_KEY}, + Key: gui.getKey(config.Branches.CopyPullRequestURL), + Handler: gui.handleCopyPullRequestURLPress, + Description: gui.Tr.LcCopyPullRequestURL, + }, { ViewName: "branches", Contexts: []string{LOCAL_BRANCHES_CONTEXT_KEY}, -- cgit v1.2.3