diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 833381207..382046fb3 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -452,6 +452,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleGitFetch, Description: gui.Tr.SLocalize("fetch"), }, + { + ViewName: "files", + Key: gui.getKey("universal.copyToClipboard"), + Handler: gui.wrappedHandler(gui.handleCopySelectedSideContextItemToClipboard), + Description: gui.Tr.SLocalize("copyFileNameToClipboard"), + }, { ViewName: "", Key: gui.getKey("universal.executeCustomCommand"), @@ -867,6 +873,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.wrappedHandler(gui.handleCopySelectedSideContextItemToClipboard), Description: gui.Tr.SLocalize("copyCommitShaToClipboard"), }, + { + ViewName: "commitFiles", + Key: gui.getKey("universal.copyToClipboard"), + Handler: gui.wrappedHandler(gui.handleCopySelectedSideContextItemToClipboard), + Description: gui.Tr.SLocalize("copyCommitFileNameToClipboard"), + }, { ViewName: "branches", Contexts: []string{SUB_COMMITS_CONTEXT_KEY}, diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index 989d78982..c2b71112d 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -1144,6 +1144,12 @@ func addDutch(i18nObject *i18n.Bundle) error { }, &i18n.Message{ ID: "copyBranchNameToClipboard", Other: "copieer branch name naar clipboard", + }, &i18n.Message{ + ID: "copyFileNameToClipboard", + Other: "Kopieer de bestandsnaam naar het klembord", + }, &i18n.Message{ + ID: "copyCommitFileNameToClipboard", + Other: "Kopieer de vastgelegde bestandsnaam naar het klembord", }, &i18n.Message{ ID: "commitPrefixPatternError", Other: "Fout in commitPrefix patroon", diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 52dc57564..8f604c794 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -1149,6 +1149,12 @@ func addEnglish(i18nObject *i18n.Bundle) error { }, &i18n.Message{ ID: "copyBranchNameToClipboard", Other: "copy branch name to clipboard", + }, &i18n.Message{ + ID: "copyFileNameToClipboard", + Other: "Copy the file name to the clipboard", + }, &i18n.Message{ + ID: "copyCommitFileNameToClipboard", + Other: "Copy the committed file name to the clipboard", }, &i18n.Message{ ID: "commitPrefixPatternError", Other: "Error in commitPrefix pattern",