From 68f5566fd0ea6c15806a2292c25ed86e1c88d11f Mon Sep 17 00:00:00 2001 From: Gustavo Andrioli Date: Mon, 10 Oct 2022 15:36:18 -0300 Subject: [PATCH] Add message that cheetsheets are auto-generated --- docs/keybindings/Keybindings_de.md | 17 +++++++++++++++-- docs/keybindings/Keybindings_en.md | 15 ++++++++++++++- docs/keybindings/Keybindings_nl.md | 15 ++++++++++++++- docs/keybindings/Keybindings_pl.md | 15 ++++++++++++++- docs/keybindings/Keybindings_tr.md | 15 ++++++++++++++- scripts/generate_cheatsheet.go | 10 ++++++++++ 6 files changed, 81 insertions(+), 6 deletions(-) diff --git a/docs/keybindings/Keybindings_de.md b/docs/keybindings/Keybindings_de.md index ea89147d..3258e52a 100644 --- a/docs/keybindings/Keybindings_de.md +++ b/docs/keybindings/Keybindings_de.md @@ -1,4 +1,6 @@ -# Lazydocker Menü +_This file is auto-generated. To update, make the changes in the pkg/i18n directory and then run `go run scripts/generate_cheatsheet.go` from the project root._ + +# Lazydocker menü ## Projekt @@ -17,7 +19,8 @@ [: vorheriges Tab ]: nächstes Tab d: entfernen - e: Hide/Show stopped containers + e: hide/show stopped containers + p: pause s: anhalten r: neustarten a: anbinden @@ -34,7 +37,9 @@
   d: entferne Container
   s: anhalten
+  p: pause
   r: neustarten
+  S: start
   a: anbinden
   m: zeige Protokolle
   [: vorheriges Tab
@@ -42,6 +47,7 @@
   R: zeige Neustartoptionen
   c: führe vordefinierten benutzerdefinierten Befehl aus
   b: view bulk commands
+  E: exec shell
   w: open in browser (first port is http)
   enter: fokussieren aufs Hauptpanel
 
@@ -73,3 +79,10 @@
   esc: zurück
 
+ +## Global + +
+  +: next screen mode (normal/half/fullscreen)
+  _: prev screen mode
+
diff --git a/docs/keybindings/Keybindings_en.md b/docs/keybindings/Keybindings_en.md index 85e67026..db306cda 100644 --- a/docs/keybindings/Keybindings_en.md +++ b/docs/keybindings/Keybindings_en.md @@ -1,3 +1,5 @@ +_This file is auto-generated. To update, make the changes in the pkg/i18n directory and then run `go run scripts/generate_cheatsheet.go` from the project root._ + # Lazydocker menu ## Project @@ -17,7 +19,8 @@ [: previous tab ]: next tab d: remove - e: Hide/Show stopped containers + e: hide/show stopped containers + p: pause s: stop r: restart a: attach @@ -34,7 +37,9 @@
   d: remove containers
   s: stop
+  p: pause
   r: restart
+  S: start
   a: attach
   m: view logs
   [: previous tab
@@ -42,6 +47,7 @@
   R: view restart options
   c: run predefined custom command
   b: view bulk commands
+  E: exec shell
   w: open in browser (first port is http)
   enter: focus main panel
 
@@ -73,3 +79,10 @@
   esc: return
 
+ +## Global + +
+  +: next screen mode (normal/half/fullscreen)
+  _: prev screen mode
+
diff --git a/docs/keybindings/Keybindings_nl.md b/docs/keybindings/Keybindings_nl.md index f0f50dbc..6f86660b 100644 --- a/docs/keybindings/Keybindings_nl.md +++ b/docs/keybindings/Keybindings_nl.md @@ -1,3 +1,5 @@ +_This file is auto-generated. To update, make the changes in the pkg/i18n directory and then run `go run scripts/generate_cheatsheet.go` from the project root._ + # Lazydocker menu ## Project @@ -17,7 +19,8 @@ [: vorige tab ]: volgende tab d: verwijder - e: Verberg gestopte containers + e: verberg gestopte containers + p: pause s: stop r: herstart a: verbinden @@ -34,7 +37,9 @@
   d: verwijder containers
   s: stop
+  p: pause
   r: herstart
+  S: start
   a: verbinden
   m: bekijk logs
   [: vorige tab
@@ -42,6 +47,7 @@
   R: bekijk herstart opties
   c: draai een vooraf bedacht aangepaste opdracht
   b: view bulk commands
+  E: exec shell
   w: open in browser (first port is http)
   enter: focus hoofdpaneel
 
@@ -73,3 +79,10 @@
   esc: terug
 
+ +## Globaal + +
+  +: next screen mode (normal/half/fullscreen)
+  _: prev screen mode
+
diff --git a/docs/keybindings/Keybindings_pl.md b/docs/keybindings/Keybindings_pl.md index a902386f..921b3db8 100644 --- a/docs/keybindings/Keybindings_pl.md +++ b/docs/keybindings/Keybindings_pl.md @@ -1,3 +1,5 @@ +_This file is auto-generated. To update, make the changes in the pkg/i18n directory and then run `go run scripts/generate_cheatsheet.go` from the project root._ + # Lazydocker menu ## Projekt @@ -17,7 +19,8 @@ [: poprzednia zakładka ]: następna zakładka d: usuń - e: Hide/Show stopped containers + e: hide/show stopped containers + p: pause s: zatrzymaj r: restartuj a: przyczep @@ -34,7 +37,9 @@
   d: usuń kontenery
   s: zatrzymaj
+  p: pause
   r: restartuj
+  S: start
   a: przyczep
   m: pokaż logi
   [: poprzednia zakładka
@@ -42,6 +47,7 @@
   R: pokaż opcje restartu
   c: wykonaj predefiniowaną własną komende
   b: view bulk commands
+  E: exec shell
   w: open in browser (first port is http)
   enter: skup na głównym panelu
 
@@ -73,3 +79,10 @@
   esc: powrót
 
+ +## Globalne + +
+  +: next screen mode (normal/half/fullscreen)
+  _: prev screen mode
+
diff --git a/docs/keybindings/Keybindings_tr.md b/docs/keybindings/Keybindings_tr.md index 85b43165..4c16e232 100644 --- a/docs/keybindings/Keybindings_tr.md +++ b/docs/keybindings/Keybindings_tr.md @@ -1,3 +1,5 @@ +_This file is auto-generated. To update, make the changes in the pkg/i18n directory and then run `go run scripts/generate_cheatsheet.go` from the project root._ + # Lazydocker menü ## Proje @@ -17,7 +19,8 @@ [: önceki sekme ]: sonraki sekme d: kaldır - e: Hide/Show stopped containers + e: hide/show stopped containers + p: pause s: durdur r: yeniden başlat a: bağlan/iliştir @@ -34,7 +37,9 @@
   d: konteynerleri kaldır
   s: durdur
+  p: pause
   r: yeniden başlat
+  S: start
   a: bağlan/iliştir
   m: kayıt defterini görüntüle
   [: önceki sekme
@@ -42,6 +47,7 @@
   R: yeniden başlatma seçeneklerini görüntüle
   c: önceden tanımlanmış özel komutu çalıştır
   b: view bulk commands
+  E: exec shell
   w: open in browser (first port is http)
   enter: ana panele odaklan
 
@@ -73,3 +79,10 @@
   esc: dönüş
 
+ +## Global + +
+  +: next screen mode (normal/half/fullscreen)
+  _: prev screen mode
+
diff --git a/scripts/generate_cheatsheet.go b/scripts/generate_cheatsheet.go index c1237701..79893b74 100644 --- a/scripts/generate_cheatsheet.go +++ b/scripts/generate_cheatsheet.go @@ -40,6 +40,12 @@ func main() { bindingSections := getBindingSections(mApp) content := formatSections(mApp, bindingSections) + content = fmt.Sprintf( + "_This file is auto-generated. To update, make the changes in the "+ + "pkg/i18n directory and then run `%s` from the project root._\n\n%s", + commandToRun(), + content, + ) writeString(file, content) } } @@ -134,3 +140,7 @@ func formatSections(mApp *app.App, bindingSections []*bindingSection) string { return content } + +func commandToRun() string { + return "go run scripts/generate_cheatsheet.go" +}