1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-17 22:32:58 +02:00

add missing descriptions

This commit is contained in:
Dawid Dziurla 2018-09-01 14:03:43 +02:00
parent e376de6d1a
commit 90a4cada82
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
2 changed files with 52 additions and 9 deletions

View File

@ -76,35 +76,30 @@ func (gui *Gui) getKeybindings() []Binding {
Key: 'e', Key: 'e',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleEditConfig, Handler: gui.handleEditConfig,
KeyReadable: "e",
Description: gui.Tr.SLocalize("EditConfig"), Description: gui.Tr.SLocalize("EditConfig"),
}, { }, {
ViewName: "status", ViewName: "status",
Key: 'o', Key: 'o',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleOpenConfig, Handler: gui.handleOpenConfig,
KeyReadable: "o",
Description: gui.Tr.SLocalize("OpenConfig"), Description: gui.Tr.SLocalize("OpenConfig"),
}, { }, {
ViewName: "status", ViewName: "status",
Key: 'u', Key: 'u',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleCheckForUpdate, Handler: gui.handleCheckForUpdate,
KeyReadable: "u",
Description: gui.Tr.SLocalize("CheckForUpdate"), Description: gui.Tr.SLocalize("CheckForUpdate"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'c', Key: 'c',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleCommitPress, Handler: gui.handleCommitPress,
KeyReadable: "c",
Description: gui.Tr.SLocalize("CommitChanges"), Description: gui.Tr.SLocalize("CommitChanges"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'C', Key: 'C',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleCommitEditorPress, Handler: gui.handleCommitEditorPress,
KeyReadable: "C",
Description: gui.Tr.SLocalize("CommitChangesWithEditor"), Description: gui.Tr.SLocalize("CommitChangesWithEditor"),
}, { }, {
ViewName: "files", ViewName: "files",
@ -112,25 +107,29 @@ func (gui *Gui) getKeybindings() []Binding {
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleFilePress, Handler: gui.handleFilePress,
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'd', Key: 'd',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleFileRemove, Handler: gui.handleFileRemove,
Description: gui.Tr.SLocalize("removeFile"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'm', Key: 'm',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleSwitchToMerge, Handler: gui.handleSwitchToMerge,
Description: gui.Tr.SLocalize("resolveMergeConflicts"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'e', Key: 'e',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleFileEdit, Handler: gui.handleFileEdit,
Description: gui.Tr.SLocalize("editFile"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'o', Key: 'o',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleFileOpen, Handler: gui.handleFileOpen,
Description: gui.Tr.SLocalize("openFile"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 's', Key: 's',
@ -146,36 +145,43 @@ func (gui *Gui) getKeybindings() []Binding {
Key: 'i', Key: 'i',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleIgnoreFile, Handler: gui.handleIgnoreFile,
Description: gui.Tr.SLocalize("ignoreFile"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'r', Key: 'r',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleRefreshFiles, Handler: gui.handleRefreshFiles,
Description: gui.Tr.SLocalize("refreshFiles"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'S', Key: 'S',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleStashSave, Handler: gui.handleStashSave,
Description: gui.Tr.SLocalize("stashFiles"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'A', Key: 'A',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleAbortMerge, Handler: gui.handleAbortMerge,
Description: gui.Tr.SLocalize("abortMerge"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'a', Key: 'a',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleStageAll, Handler: gui.handleStageAll,
Description: gui.Tr.SLocalize("toggleStagedAll"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 't', Key: 't',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleAddPatch, Handler: gui.handleAddPatch,
Description: gui.Tr.SLocalize("addPatch"),
}, { }, {
ViewName: "files", ViewName: "files",
Key: 'D', Key: 'D',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleResetHard, Handler: gui.handleResetHard,
Description: gui.Tr.SLocalize("resetHard"),
}, { }, {
ViewName: "main", ViewName: "main",
Key: gocui.KeyEsc, Key: gocui.KeyEsc,
@ -246,66 +252,80 @@ func (gui *Gui) getKeybindings() []Binding {
Key: 'c', Key: 'c',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleCheckoutByName, Handler: gui.handleCheckoutByName,
Description: gui.Tr.SLocalize("checkoutByName"),
}, { }, {
ViewName: "branches", ViewName: "branches",
Key: 'F', Key: 'F',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleForceCheckout, Handler: gui.handleForceCheckout,
Description: gui.Tr.SLocalize("forceCheckout"),
}, { }, {
ViewName: "branches", ViewName: "branches",
Key: 'n', Key: 'n',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleNewBranch, Handler: gui.handleNewBranch,
Description: gui.Tr.SLocalize("newBranch"),
}, { }, {
ViewName: "branches", ViewName: "branches",
Key: 'd', Key: 'd',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleDeleteBranch, Handler: gui.handleDeleteBranch,
Description: gui.Tr.SLocalize("deleteBranch"),
}, { }, {
ViewName: "branches", ViewName: "branches",
Key: 'D', Key: 'D',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleForceDeleteBranch, Handler: gui.handleForceDeleteBranch,
Description: gui.Tr.SLocalize("forceDeleteBranch"),
}, { }, {
ViewName: "branches", ViewName: "branches",
Key: 'm', Key: 'm',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleMerge, Handler: gui.handleMerge,
Description: gui.Tr.SLocalize("mergeIntoCurrentBranch"),
}, { }, {
ViewName: "commits", ViewName: "commits",
Key: 's', Key: 's',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleCommitSquashDown, Handler: gui.handleCommitSquashDown,
Description: gui.Tr.SLocalize("squashDown"),
}, { }, {
ViewName: "commits", ViewName: "commits",
Key: 'r', Key: 'r',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleRenameCommit, Handler: gui.handleRenameCommit,
Description: gui.Tr.SLocalize("RenameCommit"),
}, { }, {
ViewName: "commits", ViewName: "commits",
Key: 'g', Key: 'g',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleResetToCommit, Handler: gui.handleResetToCommit,
Description: gui.Tr.SLocalize("resetToThisCommit"),
}, { }, {
ViewName: "commits", ViewName: "commits",
Key: 'f', Key: 'f',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleCommitFixup, Handler: gui.handleCommitFixup,
Description: gui.Tr.SLocalize("fixupCommit"),
}, { }, {
ViewName: "stash", ViewName: "stash",
Key: gocui.KeySpace, Key: gocui.KeySpace,
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleStashApply, Handler: gui.handleStashApply,
KeyReadable: "space",
Description: gui.Tr.SLocalize("apply"),
}, { }, {
ViewName: "stash", ViewName: "stash",
Key: 'g', Key: 'g',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleStashPop, Handler: gui.handleStashPop,
Description: gui.Tr.SLocalize("pop"),
}, { }, {
ViewName: "stash", ViewName: "stash",
Key: 'd', Key: 'd',
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleStashDrop, Handler: gui.handleStashDrop,
Description: gui.Tr.SLocalize("drop"),
}, { }, {
ViewName: "commitMessage", ViewName: "commitMessage",
Key: gocui.KeyEnter, Key: gocui.KeyEnter,

View File

@ -354,6 +354,29 @@ func addEnglish(i18nObject *i18n.Bundle) error {
}, &i18n.Message{ }, &i18n.Message{
ID: "GitconfigParseErr", ID: "GitconfigParseErr",
Other: `Gogit failed to parse your gitconfig file due to the presence of unquoted '\' characters. Removing these should fix the issue.`, Other: `Gogit failed to parse your gitconfig file due to the presence of unquoted '\' characters. Removing these should fix the issue.`,
// KEYBINDINGS DESCRIPTIONS
}, &i18n.Message{
ID: "removeFile",
Other: `delete if untracked checkout if tracked (aka go away)`,
}, &i18n.Message{
ID: "editFile",
Other: `edit file`,
}, &i18n.Message{
ID: "openFile",
Other: `open file`,
}, &i18n.Message{
ID: "ignoreFile",
Other: `add to .gitignore`,
}, &i18n.Message{
ID: "refreshFiles",
Other: `refresh files`,
}, &i18n.Message{
ID: "resetHard",
Other: `reset hard`,
}, &i18n.Message{
ID: "mergeIntoCurrentBranch",
Other: `merge into currently checked out branch`,
}, },
) )
} }