1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-30 09:16:47 +02:00

fix up cheatsheet

This commit is contained in:
Jesse Duffield 2021-06-15 08:37:56 +10:00
parent b7b30191f1
commit 2b9df0ea06
5 changed files with 37 additions and 4 deletions

View File

@ -3,6 +3,7 @@
## Global Keybindings ## Global Keybindings
<pre> <pre>
<kbd>ctrl+r</kbd>: switch to a recent repo (<c-r>)
<kbd>pgup</kbd>: scroll up main panel (fn+up) <kbd>pgup</kbd>: scroll up main panel (fn+up)
<kbd>pgdown</kbd>: scroll down main panel (fn+down) <kbd>pgdown</kbd>: scroll down main panel (fn+down)
<kbd>m</kbd>: view merge/rebase options <kbd>m</kbd>: view merge/rebase options
@ -19,6 +20,7 @@
<kbd>|</kbd>: view filter-by-path options <kbd>|</kbd>: view filter-by-path options
<kbd>W</kbd>: open diff menu <kbd>W</kbd>: open diff menu
<kbd>ctrl+e</kbd>: open diff menu <kbd>ctrl+e</kbd>: open diff menu
<kbd>@</kbd>: open command log menu
</pre> </pre>
## List Panel Navigation ## List Panel Navigation
@ -122,7 +124,7 @@
<kbd>g</kbd>: reset to this commit <kbd>g</kbd>: reset to this commit
<kbd>f</kbd>: fixup commit <kbd>f</kbd>: fixup commit
<kbd>F</kbd>: create fixup commit for this commit <kbd>F</kbd>: create fixup commit for this commit
<kbd>S</kbd>: squash above commits <kbd>S</kbd>: squash all 'fixup!' commits above selected commit (autosquash)
<kbd>d</kbd>: delete commit <kbd>d</kbd>: delete commit
<kbd>ctrl+j</kbd>: move commit down one <kbd>ctrl+j</kbd>: move commit down one
<kbd>ctrl+k</kbd>: move commit up one <kbd>ctrl+k</kbd>: move commit up one
@ -154,6 +156,12 @@
<kbd>ctrl+o</kbd>: copy commit SHA to clipboard <kbd>ctrl+o</kbd>: copy commit SHA to clipboard
</pre> </pre>
## Extras Panel
<pre>
<kbd>@</kbd>: open command log menu
</pre>
## Files Panel (Files) ## Files Panel (Files)
<pre> <pre>
@ -176,6 +184,7 @@
<kbd>ctrl+o</kbd>: copy the file name to the clipboard <kbd>ctrl+o</kbd>: copy the file name to the clipboard
<kbd>g</kbd>: view upstream reset options <kbd>g</kbd>: view upstream reset options
<kbd>`</kbd>: toggle file tree view <kbd>`</kbd>: toggle file tree view
<kbd>M</kbd>: open external merge tool (git mergetool)
</pre> </pre>
## Files Panel (Submodules) ## Files Panel (Submodules)
@ -195,6 +204,7 @@
<pre> <pre>
<kbd>esc</kbd>: return to files panel <kbd>esc</kbd>: return to files panel
<kbd>M</kbd>: open external merge tool (git mergetool)
<kbd>space</kbd>: pick hunk <kbd>space</kbd>: pick hunk
<kbd>b</kbd>: pick both hunks <kbd>b</kbd>: pick both hunks
<kbd></kbd>: select previous conflict <kbd></kbd>: select previous conflict

View File

@ -3,6 +3,7 @@
## Globale Sneltoetsen ## Globale Sneltoetsen
<pre> <pre>
<kbd>ctrl+r</kbd>: wissel naar een recente repo (<c-r>)
<kbd>pgup</kbd>: scroll naar beneden vanaf hoofdpaneel (fn+up) <kbd>pgup</kbd>: scroll naar beneden vanaf hoofdpaneel (fn+up)
<kbd>pgdown</kbd>: scroll naar beneden vanaf hoofdpaneel (fn+down) <kbd>pgdown</kbd>: scroll naar beneden vanaf hoofdpaneel (fn+down)
<kbd>m</kbd>: bekijk merge/rebase opties <kbd>m</kbd>: bekijk merge/rebase opties
@ -19,6 +20,7 @@
<kbd>|</kbd>: bekijk scoping opties <kbd>|</kbd>: bekijk scoping opties
<kbd>W</kbd>: open diff menu <kbd>W</kbd>: open diff menu
<kbd>ctrl+e</kbd>: open diff menu <kbd>ctrl+e</kbd>: open diff menu
<kbd>@</kbd>: open command log menu
</pre> </pre>
## Lijstpaneel Navigatie ## Lijstpaneel Navigatie
@ -109,8 +111,8 @@
<kbd>o</kbd>: open bestand <kbd>o</kbd>: open bestand
<kbd>e</kbd>: verander bestand <kbd>e</kbd>: verander bestand
<kbd>space</kbd>: toggle bestand inbegrepen in patch <kbd>space</kbd>: toggle bestand inbegrepen in patch
<kbd>enter</kbd>: enter bestand to add selecteered lines to the patch <kbd>enter</kbd>: enter bestand om geselecteerde regels toe te voegen aan de patch
<kbd>`</kbd>: toggle file tree view <kbd>`</kbd>: toggle bestandsboom weergave
</pre> </pre>
## Commits Paneel (Commits) ## Commits Paneel (Commits)
@ -154,6 +156,12 @@
<kbd>ctrl+o</kbd>: kopieer commit SHA naar klembord <kbd>ctrl+o</kbd>: kopieer commit SHA naar klembord
</pre> </pre>
## Extras Paneel
<pre>
<kbd>@</kbd>: open command log menu
</pre>
## Bestanden Paneel (Bestanden) ## Bestanden Paneel (Bestanden)
<pre> <pre>
@ -176,6 +184,7 @@
<kbd>ctrl+o</kbd>: kopieer de bestandsnaam naar het klembord <kbd>ctrl+o</kbd>: kopieer de bestandsnaam naar het klembord
<kbd>g</kbd>: bekijk upstream reset opties <kbd>g</kbd>: bekijk upstream reset opties
<kbd>`</kbd>: toggle bestandsboom weergave <kbd>`</kbd>: toggle bestandsboom weergave
<kbd>M</kbd>: open external merge tool (git mergetool)
</pre> </pre>
## Bestanden Paneel (Submodules) ## Bestanden Paneel (Submodules)
@ -195,6 +204,7 @@
<pre> <pre>
<kbd>esc</kbd>: ga terug naar het bestanden paneel <kbd>esc</kbd>: ga terug naar het bestanden paneel
<kbd>M</kbd>: open external merge tool (git mergetool)
<kbd>space</kbd>: kies hunk <kbd>space</kbd>: kies hunk
<kbd>b</kbd>: kies bijde hunks <kbd>b</kbd>: kies bijde hunks
<kbd></kbd>: selecteer voorgaand conflict <kbd></kbd>: selecteer voorgaand conflict

View File

@ -3,6 +3,7 @@
## Globalne ## Globalne
<pre> <pre>
<kbd>ctrl+r</kbd>: switch to a recent repo (<c-r>)
<kbd>pgup</kbd>: scroll up main panel (fn+up) <kbd>pgup</kbd>: scroll up main panel (fn+up)
<kbd>pgdown</kbd>: scroll down main panel (fn+down) <kbd>pgdown</kbd>: scroll down main panel (fn+down)
<kbd>m</kbd>: view merge/rebase options <kbd>m</kbd>: view merge/rebase options
@ -19,6 +20,7 @@
<kbd>|</kbd>: view filter-by-path options <kbd>|</kbd>: view filter-by-path options
<kbd>W</kbd>: open diff menu <kbd>W</kbd>: open diff menu
<kbd>ctrl+e</kbd>: open diff menu <kbd>ctrl+e</kbd>: open diff menu
<kbd>@</kbd>: open command log menu
</pre> </pre>
## List Panel Navigation ## List Panel Navigation
@ -122,7 +124,7 @@
<kbd>g</kbd>: zresetuj do tego commita <kbd>g</kbd>: zresetuj do tego commita
<kbd>f</kbd>: napraw commit <kbd>f</kbd>: napraw commit
<kbd>F</kbd>: create fixup commit for this commit <kbd>F</kbd>: create fixup commit for this commit
<kbd>S</kbd>: squash above commits <kbd>S</kbd>: squash all 'fixup!' commits above selected commits (autosquash)
<kbd>d</kbd>: delete commit <kbd>d</kbd>: delete commit
<kbd>ctrl+j</kbd>: move commit down one <kbd>ctrl+j</kbd>: move commit down one
<kbd>ctrl+k</kbd>: move commit up one <kbd>ctrl+k</kbd>: move commit up one
@ -154,6 +156,12 @@
<kbd>ctrl+o</kbd>: copy commit SHA to clipboard <kbd>ctrl+o</kbd>: copy commit SHA to clipboard
</pre> </pre>
## Extras Panel
<pre>
<kbd>@</kbd>: open command log menu
</pre>
## Pliki Panel (Pliki) ## Pliki Panel (Pliki)
<pre> <pre>
@ -176,6 +184,7 @@
<kbd>ctrl+o</kbd>: copy the file name to the clipboard <kbd>ctrl+o</kbd>: copy the file name to the clipboard
<kbd>g</kbd>: view upstream reset options <kbd>g</kbd>: view upstream reset options
<kbd>`</kbd>: toggle file tree view <kbd>`</kbd>: toggle file tree view
<kbd>M</kbd>: open external merge tool (git mergetool)
</pre> </pre>
## Pliki Panel (Submodules) ## Pliki Panel (Submodules)
@ -195,6 +204,7 @@
<pre> <pre>
<kbd>esc</kbd>: wróć do panelu plików <kbd>esc</kbd>: wróć do panelu plików
<kbd>M</kbd>: open external merge tool (git mergetool)
<kbd>space</kbd>: pick hunk <kbd>space</kbd>: pick hunk
<kbd>b</kbd>: pick both hunks <kbd>b</kbd>: pick both hunks
<kbd></kbd>: select previous conflict <kbd></kbd>: select previous conflict

View File

@ -437,6 +437,7 @@ type TranslationSet struct {
SubmodulesTitle string SubmodulesTitle string
NavigationTitle string NavigationTitle string
SuggestionsTitle string SuggestionsTitle string
ExtrasTitle string
PushingTagStatus string PushingTagStatus string
PullRequestURLCopiedToClipboard string PullRequestURLCopiedToClipboard string
CommitMessageCopiedToClipboard string CommitMessageCopiedToClipboard string
@ -980,6 +981,7 @@ func englishTranslationSet() TranslationSet {
SubmodulesTitle: "Submodules", SubmodulesTitle: "Submodules",
NavigationTitle: "List Panel Navigation", NavigationTitle: "List Panel Navigation",
SuggestionsTitle: "Suggestions", SuggestionsTitle: "Suggestions",
ExtrasTitle: "Extras",
PushingTagStatus: "pushing tag", PushingTagStatus: "pushing tag",
PullRequestURLCopiedToClipboard: "Pull request URL copied to clipboard", PullRequestURLCopiedToClipboard: "Pull request URL copied to clipboard",
CommitMessageCopiedToClipboard: "Commit message copied to clipboard", CommitMessageCopiedToClipboard: "Commit message copied to clipboard",

View File

@ -82,6 +82,7 @@ func localisedTitle(mApp *app.App, str string) string {
"secondary": tr.SecondaryTitle, "secondary": tr.SecondaryTitle,
"stash": tr.StashTitle, "stash": tr.StashTitle,
"suggestions": tr.SuggestionsTitle, "suggestions": tr.SuggestionsTitle,
"extras": tr.ExtrasTitle,
} }
title, ok := contextTitleMap[str] title, ok := contextTitleMap[str]