From 74a6ea85c825b3adbea260918ba05bcd798c52be Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 30 Apr 2026 18:48:21 +0200 Subject: [PATCH] Remove the keybindings legend in the cheatsheets With the new longer syntax that we are about to make the default in the next commit it is no longer needed. --- docs-master/keybindings/Keybindings_en.md | 2 -- docs-master/keybindings/Keybindings_ja.md | 2 -- docs-master/keybindings/Keybindings_ko.md | 2 -- docs-master/keybindings/Keybindings_nl.md | 2 -- docs-master/keybindings/Keybindings_pl.md | 2 -- docs-master/keybindings/Keybindings_pt.md | 2 -- docs-master/keybindings/Keybindings_ru.md | 2 -- docs-master/keybindings/Keybindings_zh-CN.md | 2 -- docs-master/keybindings/Keybindings_zh-TW.md | 2 -- pkg/cheatsheet/generate.go | 6 ------ pkg/i18n/english.go | 1 - 11 files changed, 25 deletions(-) diff --git a/docs-master/keybindings/Keybindings_en.md b/docs-master/keybindings/Keybindings_en.md index a8b81cdf4..233a00c4c 100644 --- a/docs-master/keybindings/Keybindings_en.md +++ b/docs-master/keybindings/Keybindings_en.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit Keybindings -_Legend: `` means ctrl+b, `` means alt+b, `B` means shift+b_ - ## Global keybindings | Key | Action | Info | diff --git a/docs-master/keybindings/Keybindings_ja.md b/docs-master/keybindings/Keybindings_ja.md index 6be4f8d0a..3aea66d03 100644 --- a/docs-master/keybindings/Keybindings_ja.md +++ b/docs-master/keybindings/Keybindings_ja.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit キーバインディング -_凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味します_ - ## グローバルキーバインド | Key | Action | Info | diff --git a/docs-master/keybindings/Keybindings_ko.md b/docs-master/keybindings/Keybindings_ko.md index 359dc6cb0..1ac6bad81 100644 --- a/docs-master/keybindings/Keybindings_ko.md +++ b/docs-master/keybindings/Keybindings_ko.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit 키 바인딩 -_Legend: `` means ctrl+b, `` means alt+b, `B` means shift+b_ - ## 글로벌 키 바인딩 | Key | Action | Info | diff --git a/docs-master/keybindings/Keybindings_nl.md b/docs-master/keybindings/Keybindings_nl.md index 73e929f73..f4978e2b9 100644 --- a/docs-master/keybindings/Keybindings_nl.md +++ b/docs-master/keybindings/Keybindings_nl.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit Sneltoetsen -_Legend: `` means ctrl+b, `` means alt+b, `B` means shift+b_ - ## Globale sneltoetsen | Key | Action | Info | diff --git a/docs-master/keybindings/Keybindings_pl.md b/docs-master/keybindings/Keybindings_pl.md index 23cd3b21f..b1a4faf52 100644 --- a/docs-master/keybindings/Keybindings_pl.md +++ b/docs-master/keybindings/Keybindings_pl.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit Skróty klawiszowe -_Legenda: `` oznacza ctrl+b, `` oznacza alt+b, `B` oznacza shift+b_ - ## Globalne skróty klawiszowe | Key | Action | Info | diff --git a/docs-master/keybindings/Keybindings_pt.md b/docs-master/keybindings/Keybindings_pt.md index 7cf840ef8..35297196d 100644 --- a/docs-master/keybindings/Keybindings_pt.md +++ b/docs-master/keybindings/Keybindings_pt.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit Atalhos do teclado -_Legend: `` means ctrl+b, `` means alt+b, `B` means shift+b_ - ## Combinações globais de teclas | Key | Action | Info | diff --git a/docs-master/keybindings/Keybindings_ru.md b/docs-master/keybindings/Keybindings_ru.md index b1d9c88ab..bd52cb176 100644 --- a/docs-master/keybindings/Keybindings_ru.md +++ b/docs-master/keybindings/Keybindings_ru.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit Связки клавиш -_Связки клавиш_ - ## Глобальные сочетания клавиш | Key | Action | Info | diff --git a/docs-master/keybindings/Keybindings_zh-CN.md b/docs-master/keybindings/Keybindings_zh-CN.md index 239015dbb..2fd321962 100644 --- a/docs-master/keybindings/Keybindings_zh-CN.md +++ b/docs-master/keybindings/Keybindings_zh-CN.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit 按键绑定 -_图例:`` 意味着ctrl+b, `意味着Alt+b, `B` 意味着shift+b_ - ## 全局键绑定 | Key | Action | Info | diff --git a/docs-master/keybindings/Keybindings_zh-TW.md b/docs-master/keybindings/Keybindings_zh-TW.md index 88d2b94f3..336dc5f7c 100644 --- a/docs-master/keybindings/Keybindings_zh-TW.md +++ b/docs-master/keybindings/Keybindings_zh-TW.md @@ -2,8 +2,6 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct # Lazygit 鍵盤快捷鍵 -_說明:`` 表示 Ctrl+B、`` 表示 Alt+B,`B`表示 Shift+B_ - ## 全域快捷鍵 | Key | Action | Info | diff --git a/pkg/cheatsheet/generate.go b/pkg/cheatsheet/generate.go index f2f42b13c..3b5c490b8 100644 --- a/pkg/cheatsheet/generate.go +++ b/pkg/cheatsheet/generate.go @@ -197,8 +197,6 @@ func formatSections(tr *i18n.TranslationSet, bindingSections []*bindingSection) var content strings.Builder content.WriteString(fmt.Sprintf("# Lazygit %s\n", tr.Keybindings)) - content.WriteString(fmt.Sprintf("\n%s\n", italicize(tr.KeybindingsLegend))) - for _, section := range bindingSections { content.WriteString(formatTitle(section.title)) content.WriteString("| Key | Action | Info |\n") @@ -234,7 +232,3 @@ func formatBinding(binding *types.Binding) string { // to escape a key that is itself a backtick. return fmt.Sprintf("| `` %s `` | %s | %s |\n", action, description, tooltip) } - -func italicize(str string) string { - return fmt.Sprintf("_%s_", str) -} diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 479cfe2f9..896a9200d 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -1741,7 +1741,6 @@ func EnglishTranslationSet() *TranslationSet { StartFilter: "Filter the current view by text", SelectRemoteRepository: "Select base repository for pull requests", FetchingPullRequests: "Fetching pull requests", - KeybindingsLegend: "Legend: `` means ctrl+b, `` means alt+b, `B` means shift+b", RenameBranch: "Rename branch", BranchUpstreamOptionsTitle: "Upstream options", ViewBranchUpstreamOptions: "View upstream options",