Skip to content

Commit 68f5566

Browse files
committed
Add message that cheetsheets are auto-generated
1 parent 080512d commit 68f5566

File tree

6 files changed

+81
-6
lines changed

6 files changed

+81
-6
lines changed

docs/keybindings/Keybindings_de.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Lazydocker Menü
1+
_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._
2+
3+
# Lazydocker menü
24

35
## Projekt
46

@@ -17,7 +19,8 @@
1719
<kbd>[</kbd>: vorheriges Tab
1820
<kbd>]</kbd>: nächstes Tab
1921
<kbd>d</kbd>: entfernen
20-
<kbd>e</kbd>: Hide/Show stopped containers
22+
<kbd>e</kbd>: hide/show stopped containers
23+
<kbd>p</kbd>: pause
2124
<kbd>s</kbd>: anhalten
2225
<kbd>r</kbd>: neustarten
2326
<kbd>a</kbd>: anbinden
@@ -34,14 +37,17 @@
3437
<pre>
3538
<kbd>d</kbd>: entferne Container
3639
<kbd>s</kbd>: anhalten
40+
<kbd>p</kbd>: pause
3741
<kbd>r</kbd>: neustarten
42+
<kbd>S</kbd>: start
3843
<kbd>a</kbd>: anbinden
3944
<kbd>m</kbd>: zeige Protokolle
4045
<kbd>[</kbd>: vorheriges Tab
4146
<kbd>]</kbd>: nächstes Tab
4247
<kbd>R</kbd>: zeige Neustartoptionen
4348
<kbd>c</kbd>: führe vordefinierten benutzerdefinierten Befehl aus
4449
<kbd>b</kbd>: view bulk commands
50+
<kbd>E</kbd>: exec shell
4551
<kbd>w</kbd>: open in browser (first port is http)
4652
<kbd>enter</kbd>: fokussieren aufs Hauptpanel
4753
</pre>
@@ -73,3 +79,10 @@
7379
<pre>
7480
<kbd>esc</kbd>: zurück
7581
</pre>
82+
83+
## Global
84+
85+
<pre>
86+
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
87+
<kbd>_</kbd>: prev screen mode
88+
</pre>

docs/keybindings/Keybindings_en.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
_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._
2+
13
# Lazydocker menu
24

35
## Project
@@ -17,7 +19,8 @@
1719
<kbd>[</kbd>: previous tab
1820
<kbd>]</kbd>: next tab
1921
<kbd>d</kbd>: remove
20-
<kbd>e</kbd>: Hide/Show stopped containers
22+
<kbd>e</kbd>: hide/show stopped containers
23+
<kbd>p</kbd>: pause
2124
<kbd>s</kbd>: stop
2225
<kbd>r</kbd>: restart
2326
<kbd>a</kbd>: attach
@@ -34,14 +37,17 @@
3437
<pre>
3538
<kbd>d</kbd>: remove containers
3639
<kbd>s</kbd>: stop
40+
<kbd>p</kbd>: pause
3741
<kbd>r</kbd>: restart
42+
<kbd>S</kbd>: start
3843
<kbd>a</kbd>: attach
3944
<kbd>m</kbd>: view logs
4045
<kbd>[</kbd>: previous tab
4146
<kbd>]</kbd>: next tab
4247
<kbd>R</kbd>: view restart options
4348
<kbd>c</kbd>: run predefined custom command
4449
<kbd>b</kbd>: view bulk commands
50+
<kbd>E</kbd>: exec shell
4551
<kbd>w</kbd>: open in browser (first port is http)
4652
<kbd>enter</kbd>: focus main panel
4753
</pre>
@@ -73,3 +79,10 @@
7379
<pre>
7480
<kbd>esc</kbd>: return
7581
</pre>
82+
83+
## Global
84+
85+
<pre>
86+
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
87+
<kbd>_</kbd>: prev screen mode
88+
</pre>

docs/keybindings/Keybindings_nl.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
_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._
2+
13
# Lazydocker menu
24

35
## Project
@@ -17,7 +19,8 @@
1719
<kbd>[</kbd>: vorige tab
1820
<kbd>]</kbd>: volgende tab
1921
<kbd>d</kbd>: verwijder
20-
<kbd>e</kbd>: Verberg gestopte containers
22+
<kbd>e</kbd>: verberg gestopte containers
23+
<kbd>p</kbd>: pause
2124
<kbd>s</kbd>: stop
2225
<kbd>r</kbd>: herstart
2326
<kbd>a</kbd>: verbinden
@@ -34,14 +37,17 @@
3437
<pre>
3538
<kbd>d</kbd>: verwijder containers
3639
<kbd>s</kbd>: stop
40+
<kbd>p</kbd>: pause
3741
<kbd>r</kbd>: herstart
42+
<kbd>S</kbd>: start
3843
<kbd>a</kbd>: verbinden
3944
<kbd>m</kbd>: bekijk logs
4045
<kbd>[</kbd>: vorige tab
4146
<kbd>]</kbd>: volgende tab
4247
<kbd>R</kbd>: bekijk herstart opties
4348
<kbd>c</kbd>: draai een vooraf bedacht aangepaste opdracht
4449
<kbd>b</kbd>: view bulk commands
50+
<kbd>E</kbd>: exec shell
4551
<kbd>w</kbd>: open in browser (first port is http)
4652
<kbd>enter</kbd>: focus hoofdpaneel
4753
</pre>
@@ -73,3 +79,10 @@
7379
<pre>
7480
<kbd>esc</kbd>: terug
7581
</pre>
82+
83+
## Globaal
84+
85+
<pre>
86+
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
87+
<kbd>_</kbd>: prev screen mode
88+
</pre>

docs/keybindings/Keybindings_pl.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
_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._
2+
13
# Lazydocker menu
24

35
## Projekt
@@ -17,7 +19,8 @@
1719
<kbd>[</kbd>: poprzednia zakładka
1820
<kbd>]</kbd>: następna zakładka
1921
<kbd>d</kbd>: usuń
20-
<kbd>e</kbd>: Hide/Show stopped containers
22+
<kbd>e</kbd>: hide/show stopped containers
23+
<kbd>p</kbd>: pause
2124
<kbd>s</kbd>: zatrzymaj
2225
<kbd>r</kbd>: restartuj
2326
<kbd>a</kbd>: przyczep
@@ -34,14 +37,17 @@
3437
<pre>
3538
<kbd>d</kbd>: usuń kontenery
3639
<kbd>s</kbd>: zatrzymaj
40+
<kbd>p</kbd>: pause
3741
<kbd>r</kbd>: restartuj
42+
<kbd>S</kbd>: start
3843
<kbd>a</kbd>: przyczep
3944
<kbd>m</kbd>: pokaż logi
4045
<kbd>[</kbd>: poprzednia zakładka
4146
<kbd>]</kbd>: następna zakładka
4247
<kbd>R</kbd>: pokaż opcje restartu
4348
<kbd>c</kbd>: wykonaj predefiniowaną własną komende
4449
<kbd>b</kbd>: view bulk commands
50+
<kbd>E</kbd>: exec shell
4551
<kbd>w</kbd>: open in browser (first port is http)
4652
<kbd>enter</kbd>: skup na głównym panelu
4753
</pre>
@@ -73,3 +79,10 @@
7379
<pre>
7480
<kbd>esc</kbd>: powrót
7581
</pre>
82+
83+
## Globalne
84+
85+
<pre>
86+
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
87+
<kbd>_</kbd>: prev screen mode
88+
</pre>

docs/keybindings/Keybindings_tr.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
_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._
2+
13
# Lazydocker menü
24

35
## Proje
@@ -17,7 +19,8 @@
1719
<kbd>[</kbd>: önceki sekme
1820
<kbd>]</kbd>: sonraki sekme
1921
<kbd>d</kbd>: kaldır
20-
<kbd>e</kbd>: Hide/Show stopped containers
22+
<kbd>e</kbd>: hide/show stopped containers
23+
<kbd>p</kbd>: pause
2124
<kbd>s</kbd>: durdur
2225
<kbd>r</kbd>: yeniden başlat
2326
<kbd>a</kbd>: bağlan/iliştir
@@ -34,14 +37,17 @@
3437
<pre>
3538
<kbd>d</kbd>: konteynerleri kaldır
3639
<kbd>s</kbd>: durdur
40+
<kbd>p</kbd>: pause
3741
<kbd>r</kbd>: yeniden başlat
42+
<kbd>S</kbd>: start
3843
<kbd>a</kbd>: bağlan/iliştir
3944
<kbd>m</kbd>: kayıt defterini görüntüle
4045
<kbd>[</kbd>: önceki sekme
4146
<kbd>]</kbd>: sonraki sekme
4247
<kbd>R</kbd>: yeniden başlatma seçeneklerini görüntüle
4348
<kbd>c</kbd>: önceden tanımlanmış özel komutu çalıştır
4449
<kbd>b</kbd>: view bulk commands
50+
<kbd>E</kbd>: exec shell
4551
<kbd>w</kbd>: open in browser (first port is http)
4652
<kbd>enter</kbd>: ana panele odaklan
4753
</pre>
@@ -73,3 +79,10 @@
7379
<pre>
7480
<kbd>esc</kbd>: dönüş
7581
</pre>
82+
83+
## Global
84+
85+
<pre>
86+
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
87+
<kbd>_</kbd>: prev screen mode
88+
</pre>

scripts/generate_cheatsheet.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ func main() {
4040

4141
bindingSections := getBindingSections(mApp)
4242
content := formatSections(mApp, bindingSections)
43+
content = fmt.Sprintf(
44+
"_This file is auto-generated. To update, make the changes in the "+
45+
"pkg/i18n directory and then run `%s` from the project root._\n\n%s",
46+
commandToRun(),
47+
content,
48+
)
4349
writeString(file, content)
4450
}
4551
}
@@ -134,3 +140,7 @@ func formatSections(mApp *app.App, bindingSections []*bindingSection) string {
134140

135141
return content
136142
}
143+
144+
func commandToRun() string {
145+
return "go run scripts/generate_cheatsheet.go"
146+
}

0 commit comments

Comments
 (0)