Skip to content

Commit 6bfcb3d

Browse files
committed
Add tooltips for commit log menu
1 parent 9650753 commit 6bfcb3d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pkg/gui/controllers/local_commits_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,7 @@ func (self *LocalCommitsController) handleOpenLogMenu() error {
11801180
},
11811181
{
11821182
Label: self.c.Tr.ShowGitGraph,
1183+
Tooltip: self.c.Tr.ShowGitGraphTooltip,
11831184
OpensMenu: true,
11841185
OnPress: func() error {
11851186
currentValue := self.c.UserConfig().Git.Log.ShowGraph
@@ -1215,6 +1216,7 @@ func (self *LocalCommitsController) handleOpenLogMenu() error {
12151216
},
12161217
{
12171218
Label: self.c.Tr.SortCommits,
1219+
Tooltip: self.c.Tr.SortCommitsTooltip,
12181220
OpensMenu: true,
12191221
OnPress: func() error {
12201222
currentValue := self.c.UserConfig().Git.Log.Order

pkg/i18n/english.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,12 +758,14 @@ type TranslationSet struct {
758758
LogMenuTitle string
759759
ToggleShowGitGraphAll string
760760
ShowGitGraph string
761+
ShowGitGraphTooltip string
761762
SortOrder string
762763
SortAlphabetical string
763764
SortByDate string
764765
SortByRecency string
765766
SortBasedOnReflog string
766767
SortCommits string
768+
SortCommitsTooltip string
767769
CantChangeContextSizeError string
768770
OpenCommitInBrowser string
769771
ViewBisectOptions string
@@ -1803,12 +1805,14 @@ func EnglishTranslationSet() *TranslationSet {
18031805
LogMenuTitle: "Commit Log Options",
18041806
ToggleShowGitGraphAll: "Toggle show whole git graph (pass the `--all` flag to `git log`)",
18051807
ShowGitGraph: "Show git graph",
1808+
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'.",
18061809
SortOrder: "Sort order",
18071810
SortAlphabetical: "Alphabetical",
18081811
SortByDate: "Date",
18091812
SortByRecency: "Recency",
18101813
SortBasedOnReflog: "(based on reflog)",
18111814
SortCommits: "Commit sort order",
1815+
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'.",
18121816
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!",
18131817
OpenCommitInBrowser: "Open commit in browser",
18141818
ViewBisectOptions: "View bisect options",

0 commit comments

Comments
 (0)