mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Add tooltips for commit log menu
This commit is contained in:
@ -1180,6 +1180,7 @@ func (self *LocalCommitsController) handleOpenLogMenu() error {
|
||||
},
|
||||
{
|
||||
Label: self.c.Tr.ShowGitGraph,
|
||||
Tooltip: self.c.Tr.ShowGitGraphTooltip,
|
||||
OpensMenu: true,
|
||||
OnPress: func() error {
|
||||
currentValue := self.c.UserConfig().Git.Log.ShowGraph
|
||||
@ -1215,6 +1216,7 @@ func (self *LocalCommitsController) handleOpenLogMenu() error {
|
||||
},
|
||||
{
|
||||
Label: self.c.Tr.SortCommits,
|
||||
Tooltip: self.c.Tr.SortCommitsTooltip,
|
||||
OpensMenu: true,
|
||||
OnPress: func() error {
|
||||
currentValue := self.c.UserConfig().Git.Log.Order
|
||||
|
@ -758,12 +758,14 @@ type TranslationSet struct {
|
||||
LogMenuTitle string
|
||||
ToggleShowGitGraphAll string
|
||||
ShowGitGraph string
|
||||
ShowGitGraphTooltip string
|
||||
SortOrder string
|
||||
SortAlphabetical string
|
||||
SortByDate string
|
||||
SortByRecency string
|
||||
SortBasedOnReflog string
|
||||
SortCommits string
|
||||
SortCommitsTooltip string
|
||||
CantChangeContextSizeError string
|
||||
OpenCommitInBrowser string
|
||||
ViewBisectOptions string
|
||||
@ -1803,12 +1805,14 @@ func EnglishTranslationSet() *TranslationSet {
|
||||
LogMenuTitle: "Commit Log Options",
|
||||
ToggleShowGitGraphAll: "Toggle show whole git graph (pass the `--all` flag to `git log`)",
|
||||
ShowGitGraph: "Show git graph",
|
||||
ShowGitGraphTooltip: "Show or hide the git graph in the commit log.\n\nThe default can be changed in the config file with the key 'git.log.showGraph'.",
|
||||
SortOrder: "Sort order",
|
||||
SortAlphabetical: "Alphabetical",
|
||||
SortByDate: "Date",
|
||||
SortByRecency: "Recency",
|
||||
SortBasedOnReflog: "(based on reflog)",
|
||||
SortCommits: "Commit sort order",
|
||||
SortCommitsTooltip: "Change the sort order of the commits in the commit log.\n\nThe default can be changed in the config file with the key 'git.log.sortOrder'.",
|
||||
CantChangeContextSizeError: "Cannot change context while in patch building mode because we were too lazy to support it when releasing the feature. If you really want it, please let us know!",
|
||||
OpenCommitInBrowser: "Open commit in browser",
|
||||
ViewBisectOptions: "View bisect options",
|
||||
|
Reference in New Issue
Block a user