summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDawid Dziurla <dawidd0811@gmail.com>2018-09-05 15:55:24 +0200
committerDawid Dziurla <dawidd0811@gmail.com>2018-09-05 15:55:24 +0200
commitdb2e2160a9578868d4c38d47ae61dc26c6965179 (patch)
tree616651780d75e474101b298ae4ec43b7972b6071 /scripts
parent08395ae76ca811f1d60d1af42ee1f29eaa269de5 (diff)
change menu keybinding from ? to x
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generate_cheatsheet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate_cheatsheet.go b/scripts/generate_cheatsheet.go
index 863089014..cfa6d92ad 100644
--- a/scripts/generate_cheatsheet.go
+++ b/scripts/generate_cheatsheet.go
@@ -30,7 +30,7 @@ func main() {
file.WriteString("# Lazygit " + a.Tr.SLocalize("menu"))
for _, binding := range bindings {
- if key := a.Gui.GetKey(binding); key != "" && (binding.Description != "" || key == "?") {
+ if key := a.Gui.GetKey(binding); key != "" && (binding.Description != "" || key == "x") {
if binding.ViewName != current {
current = binding.ViewName
if current == "" {
@@ -44,7 +44,7 @@ func main() {
// workaround to include menu keybinding in cheatsheet
// could not add this Description field directly to keybindings.go,
// because then menu key would be displayed in menu itself and that is undesirable
- if key == "?" {
+ if key == "x" {
binding.Description = a.Tr.SLocalize("menu")
}
content = fmt.Sprintf("\t<kbd>%s</kbd>%s %s\n", key, strings.TrimPrefix(utils.WithPadding(key, padWidth), key), binding.Description)