From c43416891eb328f9c5b07227839e741ed62be000 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 9 Feb 2021 20:23:20 +1100 Subject: [PATCH] update cheatsheet --- docs/keybindings/Keybindings_en.md | 13 ++++++++----- docs/keybindings/Keybindings_nl.md | 13 ++++++++----- docs/keybindings/Keybindings_pl.md | 13 ++++++++----- pkg/i18n/english.go | 2 ++ scripts/generate_cheatsheet.go | 1 + 5 files changed, 27 insertions(+), 15 deletions(-) diff --git a/docs/keybindings/Keybindings_en.md b/docs/keybindings/Keybindings_en.md index 93e16e306..265c96469 100644 --- a/docs/keybindings/Keybindings_en.md +++ b/docs/keybindings/Keybindings_en.md @@ -24,13 +24,13 @@ ## List Panel Navigation
+  .: next page
+  ,: previous page
+  <: scroll to top
+  >: scroll to bottom
+  /: start search
   ]: next tab
   [: previous tab
-  ,: previous page
-  .: next page
-  <: scroll to top
-  /: start search
-  >: scroll to bottom
 
## Branches Panel (Branches Tab) @@ -38,6 +38,7 @@
   space: checkout
   o: create pull request
+  ctrl+y: copy pull request URL to clipboard
   c: checkout by name
   F: force checkout
   n: new branch
@@ -137,6 +138,7 @@
   n: create new branch off of commit
   T: tag commit
   ctrl+r: reset cherry-picked (copied) commits selection
+  ctrl+y: copy commit message to clipboard
 
## Commits Panel (Reflog Tab) @@ -267,4 +269,5 @@ o: open config file u: check for update enter: switch to a recent repo + a: show all branch logs diff --git a/docs/keybindings/Keybindings_nl.md b/docs/keybindings/Keybindings_nl.md index f5d4cf0d9..b62508b1d 100644 --- a/docs/keybindings/Keybindings_nl.md +++ b/docs/keybindings/Keybindings_nl.md @@ -24,13 +24,13 @@ ## List Panel Navigation
+  .: volgende pagina
+  ,: vorige pagina
+  <: scroll naar boven
+  >: scroll naar beneden
+  /: start met zoekken
   ]: volgende tab
   [: vorige tab
-  ,: vorige pagina
-  .: volgende pagina
-  <: scroll naar boven
-  /: start met zoekken
-  >: scroll naar beneden
 
## Branches Paneel (Branches Tab) @@ -38,6 +38,7 @@
   space: uitchecken
   o: maak een pull-aanvraag
+  ctrl+y: kopieer de URL van het pull-verzoek naar het klembord
   c: uitchecken bij naam
   F: forceer checkout
   n: nieuwe branch
@@ -137,6 +138,7 @@
   n: create new branch off of commit
   T: tag commit
   ctrl+r: reset cherry-picked (gecopieerde) commits selectie
+  ctrl+y: copieer commit bericht naar clipboard
 
## Commits Paneel (Reflog Tab) @@ -267,4 +269,5 @@ o: open config bestand u: check voor updates enter: wissel naar een recente repo + a: alle takken van het houtblok laten zien diff --git a/docs/keybindings/Keybindings_pl.md b/docs/keybindings/Keybindings_pl.md index cf936c9f4..34ba20598 100644 --- a/docs/keybindings/Keybindings_pl.md +++ b/docs/keybindings/Keybindings_pl.md @@ -24,13 +24,13 @@ ## List Panel Navigation
+  .: next page
+  ,: previous page
+  <: scroll to top
+  >: scroll to bottom
+  /: start search
   ]: next tab
   [: previous tab
-  ,: previous page
-  .: next page
-  <: scroll to top
-  /: start search
-  >: scroll to bottom
 
## Gałęzie Panel (Branches Tab) @@ -38,6 +38,7 @@
   space: przełącz
   o: utwórz żądanie wyciągnięcia
+  ctrl+y: skopiuj adres URL żądania ściągnięcia do schowka
   c: przełącz używając nazwy
   F: wymuś przełączenie
   n: nowa gałąź
@@ -137,6 +138,7 @@
   n: create new branch off of commit
   T: tag commit
   ctrl+r: reset cherry-picked (copied) commits selection
+  ctrl+y: copy commit message to clipboard
 
## Commity Panel (Reflog Tab) @@ -267,4 +269,5 @@ o: otwórz plik konfiguracyjny u: sprawdź aktualizacje enter: switch to a recent repo + a: pokazywać wszystkie logi branżowe diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index b08df8d2e..729fa75ef 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -430,6 +430,7 @@ type TranslationSet struct { SubCommitsTitle string SubmodulesTitle string NavigationTitle string + SuggestionsTitle string PushingTagStatus string PullRequestURLCopiedToClipboard string CommitMessageCopiedToClipboard string @@ -960,6 +961,7 @@ func englishTranslationSet() TranslationSet { SubCommitsTitle: "Sub-commits", SubmodulesTitle: "Submodules", NavigationTitle: "List Panel Navigation", + SuggestionsTitle: "Suggestions", PushingTagStatus: "pushing tag", PullRequestURLCopiedToClipboard: "Pull request URL copied to clipboard", CommitMessageCopiedToClipboard: "Commit message copied to clipboard", diff --git a/scripts/generate_cheatsheet.go b/scripts/generate_cheatsheet.go index b90f93edf..14076a6ce 100644 --- a/scripts/generate_cheatsheet.go +++ b/scripts/generate_cheatsheet.go @@ -81,6 +81,7 @@ func localisedTitle(mApp *app.App, str string) string { "search": tr.SearchTitle, "secondary": tr.SecondaryTitle, "stash": tr.StashTitle, + "suggestions": tr.SuggestionsTitle, } title, ok := contextTitleMap[str]