mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-06 03:53:59 +02:00
Be able to copy file name
This commit is contained in:
parent
307d051ec2
commit
1fd89b4f46
@ -452,6 +452,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
Handler: gui.handleGitFetch,
|
Handler: gui.handleGitFetch,
|
||||||
Description: gui.Tr.SLocalize("fetch"),
|
Description: gui.Tr.SLocalize("fetch"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ViewName: "files",
|
||||||
|
Key: gui.getKey("universal.copyToClipboard"),
|
||||||
|
Handler: gui.wrappedHandler(gui.handleCopySelectedSideContextItemToClipboard),
|
||||||
|
Description: gui.Tr.SLocalize("copyFileNameToClipboard"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ViewName: "",
|
ViewName: "",
|
||||||
Key: gui.getKey("universal.executeCustomCommand"),
|
Key: gui.getKey("universal.executeCustomCommand"),
|
||||||
@ -867,6 +873,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
Handler: gui.wrappedHandler(gui.handleCopySelectedSideContextItemToClipboard),
|
Handler: gui.wrappedHandler(gui.handleCopySelectedSideContextItemToClipboard),
|
||||||
Description: gui.Tr.SLocalize("copyCommitShaToClipboard"),
|
Description: gui.Tr.SLocalize("copyCommitShaToClipboard"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ViewName: "commitFiles",
|
||||||
|
Key: gui.getKey("universal.copyToClipboard"),
|
||||||
|
Handler: gui.wrappedHandler(gui.handleCopySelectedSideContextItemToClipboard),
|
||||||
|
Description: gui.Tr.SLocalize("copyCommitFileNameToClipboard"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ViewName: "branches",
|
ViewName: "branches",
|
||||||
Contexts: []string{SUB_COMMITS_CONTEXT_KEY},
|
Contexts: []string{SUB_COMMITS_CONTEXT_KEY},
|
||||||
|
@ -1144,6 +1144,12 @@ func addDutch(i18nObject *i18n.Bundle) error {
|
|||||||
}, &i18n.Message{
|
}, &i18n.Message{
|
||||||
ID: "copyBranchNameToClipboard",
|
ID: "copyBranchNameToClipboard",
|
||||||
Other: "copieer branch name naar clipboard",
|
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{
|
}, &i18n.Message{
|
||||||
ID: "commitPrefixPatternError",
|
ID: "commitPrefixPatternError",
|
||||||
Other: "Fout in commitPrefix patroon",
|
Other: "Fout in commitPrefix patroon",
|
||||||
|
@ -1149,6 +1149,12 @@ func addEnglish(i18nObject *i18n.Bundle) error {
|
|||||||
}, &i18n.Message{
|
}, &i18n.Message{
|
||||||
ID: "copyBranchNameToClipboard",
|
ID: "copyBranchNameToClipboard",
|
||||||
Other: "copy branch name to clipboard",
|
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{
|
}, &i18n.Message{
|
||||||
ID: "commitPrefixPatternError",
|
ID: "commitPrefixPatternError",
|
||||||
Other: "Error in commitPrefix pattern",
|
Other: "Error in commitPrefix pattern",
|
||||||
|
Loading…
Reference in New Issue
Block a user