diff options
author | Farzad Majidfayyaz <farzadmf@users.noreply.github.com> | 2020-11-10 14:57:50 -0500 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-19 09:43:51 +1100 |
commit | 79888d3bdeae57bad17db4b0716a5f59e7c2df31 (patch) | |
tree | c09b9598e7e36d56e82bb55fa49e7f8612dbf9bf /pkg/gui/keybindings.go | |
parent | 4e1d3e45a3bfb3b7df5badb551df45c39b9d5c9f (diff) |
Add mapping to copy a pull request URL to the clipboard
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -508,6 +508,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { { 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}, Key: gui.getKey(config.Branches.CheckoutBranchByName), Handler: gui.handleCheckoutByName, Description: gui.Tr.LcCheckoutByName, |