summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2024-01-02 14:00:36 +1100
committerJesse Duffield <jessedduffield@gmail.com>2024-01-28 08:12:01 +1100
commit7bddf532235cc67d847fd70d8f709b6401737936 (patch)
treec248ea926268ecd1e844d924fac438c6f1701edd /pkg/gui/keybindings.go
parent0aa6109d4d767cf77d4fb3eeefd0ac477d718ccf (diff)
Improve keybinding descriptions
This adds a bunch of tooltips to keybindings and updates some keybinding descriptions (i.e. labels). It's in preparation for displaying more keybindings on-screen (in the bottom right of the screen), and so due in part to laziness it shortens some descriptions so that we don't need to manage both a short and long description (for on-screen vs in-menu). Nonetheless I've added a ShortDescription field for when we do want to have both a short and long description. You'll notice that some keybindings I deemed unworthy of the options view have longer descriptions, because I could get away with it.
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 90f27ac43..319576cd6 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -89,14 +89,14 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Key: opts.GetKey(opts.Config.Universal.ScrollUpMain),
Handler: self.scrollUpMain,
Alternative: "fn+up/shift+k",
- Description: self.c.Tr.ScrollUpMainPanel,
+ Description: self.c.Tr.ScrollUpMainWindow,
},
{
ViewName: "",
Key: opts.GetKey(opts.Config.Universal.ScrollDownMain),
Handler: self.scrollDownMain,
Alternative: "fn+down/shift+j",
- Description: self.c.Tr.ScrollDownMainPanel,
+ Description: self.c.Tr.ScrollDownMainWindow,
},
{
ViewName: "",
@@ -127,7 +127,7 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Key: opts.GetKey(opts.Config.Universal.CopyToClipboard),
Handler: self.handleCopySelectedSideContextItemToClipboard,
GetDisabledReason: self.getCopySelectedSideContextItemToClipboardDisabledReason,
- Description: self.c.Tr.CopyFileNameToClipboard,
+ Description: self.c.Tr.CopyPathToClipboard,
},
{
ViewName: "localBranches",
@@ -181,13 +181,14 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Key: opts.GetKey(opts.Config.Universal.CopyToClipboard),
Handler: self.handleCopySelectedSideContextItemToClipboard,
GetDisabledReason: self.getCopySelectedSideContextItemToClipboardDisabledReason,
- Description: self.c.Tr.CopyCommitFileNameToClipboard,
+ Description: self.c.Tr.CopyPathToClipboard,
},
{
ViewName: "",
Key: opts.GetKey(opts.Config.Universal.ExtrasMenu),
Handler: self.handleCreateExtrasMenuPanel,
- Description: self.c.Tr.OpenExtrasMenu,
+ Description: self.c.Tr.OpenCommandLogMenu,
+ Tooltip: self.c.Tr.OpenCommandLogMenuTooltip,
OpensMenu: true,
},
{