1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-23 12:18:51 +02:00

update cheatsheet

This commit is contained in:
Jesse Duffield 2020-03-28 14:08:54 +11:00 committed by github-actions[bot]
parent fbb767893e
commit 52f41ab0d5
5 changed files with 151 additions and 11 deletions

View File

@ -40,7 +40,11 @@
<kbd>f</kbd>: fast-forward this branch from its upstream <kbd>f</kbd>: fast-forward this branch from its upstream
<kbd>g</kbd>: view reset options <kbd>g</kbd>: view reset options
<kbd>R</kbd>: rename branch <kbd>R</kbd>: rename branch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Branches Panel (Remote Branches (in Remotes tab)) ## Branches Panel (Remote Branches (in Remotes tab))
@ -53,7 +57,11 @@
<kbd>d</kbd>: delete branch <kbd>d</kbd>: delete branch
<kbd>r</kbd>: rebase checked-out branch onto this branch <kbd>r</kbd>: rebase checked-out branch onto this branch
<kbd>u</kbd>: set as upstream of checked-out branch <kbd>u</kbd>: set as upstream of checked-out branch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Branches Panel (Remotes Tab) ## Branches Panel (Remotes Tab)
@ -63,7 +71,11 @@
<kbd>n</kbd>: add new remote <kbd>n</kbd>: add new remote
<kbd>d</kbd>: remove remote <kbd>d</kbd>: remove remote
<kbd>e</kbd>: edit remote <kbd>e</kbd>: edit remote
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Branches Panel (Tags Tab) ## Branches Panel (Tags Tab)
@ -74,7 +86,11 @@
<kbd>P</kbd>: push tag <kbd>P</kbd>: push tag
<kbd>n</kbd>: create tag <kbd>n</kbd>: create tag
<kbd>g</kbd>: view reset options <kbd>g</kbd>: view reset options
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commit Files Panel ## Commit Files Panel
@ -86,7 +102,11 @@
<kbd>o</kbd>: open file <kbd>o</kbd>: open file
<kbd>space</kbd>: toggle file included in patch <kbd>space</kbd>: toggle file included in patch
<kbd>enter</kbd>: enter file to add selected lines to the patch <kbd>enter</kbd>: enter file to add selected lines to the patch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commits Panel ## Commits Panel
@ -94,7 +114,6 @@
<pre> <pre>
<kbd>]</kbd>: next tab <kbd>]</kbd>: next tab
<kbd>[</kbd>: previous tab <kbd>[</kbd>: previous tab
<kbd>/</kbd>: start search
</pre> </pre>
## Commits Panel (Commits Tab) ## Commits Panel (Commits Tab)
@ -122,6 +141,11 @@
<kbd>i</kbd>: select commit to diff with another commit <kbd>i</kbd>: select commit to diff with another commit
<kbd>T</kbd>: tag commit <kbd>T</kbd>: tag commit
<kbd>ctrl+r</kbd>: reset cherry-picked (copied) commits selection <kbd>ctrl+r</kbd>: reset cherry-picked (copied) commits selection
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commits Panel (Reflog Tab) ## Commits Panel (Reflog Tab)
@ -129,6 +153,11 @@
<pre> <pre>
<kbd>space</kbd>: checkout commit <kbd>space</kbd>: checkout commit
<kbd>g</kbd>: view reset options <kbd>g</kbd>: view reset options
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Files Panel ## Files Panel
@ -151,7 +180,11 @@
<kbd>enter</kbd>: stage individual hunks/lines <kbd>enter</kbd>: stage individual hunks/lines
<kbd>f</kbd>: fetch <kbd>f</kbd>: fetch
<kbd>g</kbd>: view upstream reset options <kbd>g</kbd>: view upstream reset options
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Main Panel (Merging) ## Main Panel (Merging)
@ -214,7 +247,11 @@
<pre> <pre>
<kbd>esc</kbd>: close menu <kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu <kbd>q</kbd>: close menu
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Stash Panel ## Stash Panel
@ -223,7 +260,11 @@
<kbd>space</kbd>: apply <kbd>space</kbd>: apply
<kbd>g</kbd>: pop <kbd>g</kbd>: pop
<kbd>d</kbd>: drop <kbd>d</kbd>: drop
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Status Panel ## Status Panel

View File

@ -40,7 +40,11 @@
<kbd>f</kbd>: fast-forward this branch from its upstream <kbd>f</kbd>: fast-forward this branch from its upstream
<kbd>g</kbd>: bekijk reset opties <kbd>g</kbd>: bekijk reset opties
<kbd>R</kbd>: rename branch <kbd>R</kbd>: rename branch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Branches Panel (Remote Branches (in Remotes tab)) ## Branches Panel (Remote Branches (in Remotes tab))
@ -53,7 +57,11 @@
<kbd>d</kbd>: verwijder branch <kbd>d</kbd>: verwijder branch
<kbd>r</kbd>: rebase branch <kbd>r</kbd>: rebase branch
<kbd>u</kbd>: set as upstream of checked-out branch <kbd>u</kbd>: set as upstream of checked-out branch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Branches Panel (Remotes Tab) ## Branches Panel (Remotes Tab)
@ -63,7 +71,11 @@
<kbd>n</kbd>: add new remote <kbd>n</kbd>: add new remote
<kbd>d</kbd>: remove remote <kbd>d</kbd>: remove remote
<kbd>e</kbd>: edit remote <kbd>e</kbd>: edit remote
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Branches Panel (Tags Tab) ## Branches Panel (Tags Tab)
@ -74,7 +86,11 @@
<kbd>P</kbd>: push tag <kbd>P</kbd>: push tag
<kbd>n</kbd>: create tag <kbd>n</kbd>: create tag
<kbd>g</kbd>: bekijk reset opties <kbd>g</kbd>: bekijk reset opties
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commit bestanden Panel ## Commit bestanden Panel
@ -86,7 +102,11 @@
<kbd>o</kbd>: open bestand <kbd>o</kbd>: open bestand
<kbd>space</kbd>: toggle file included in patch <kbd>space</kbd>: toggle file included in patch
<kbd>enter</kbd>: enter file to add selected lines to the patch <kbd>enter</kbd>: enter file to add selected lines to the patch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commits Panel ## Commits Panel
@ -94,7 +114,6 @@
<pre> <pre>
<kbd>]</kbd>: next tab <kbd>]</kbd>: next tab
<kbd>[</kbd>: previous tab <kbd>[</kbd>: previous tab
<kbd>/</kbd>: start search
</pre> </pre>
## Commits Panel (Commits Tab) ## Commits Panel (Commits Tab)
@ -122,6 +141,11 @@
<kbd>i</kbd>: select commit to diff with another commit <kbd>i</kbd>: select commit to diff with another commit
<kbd>T</kbd>: tag commit <kbd>T</kbd>: tag commit
<kbd>ctrl+r</kbd>: reset cherry-picked (copied) commits selection <kbd>ctrl+r</kbd>: reset cherry-picked (copied) commits selection
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commits Panel (Reflog Tab) ## Commits Panel (Reflog Tab)
@ -129,6 +153,11 @@
<pre> <pre>
<kbd>space</kbd>: checkout commit <kbd>space</kbd>: checkout commit
<kbd>g</kbd>: bekijk reset opties <kbd>g</kbd>: bekijk reset opties
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Bestanden Panel ## Bestanden Panel
@ -151,7 +180,11 @@
<kbd>enter</kbd>: stage individuele hunks/lijnen <kbd>enter</kbd>: stage individuele hunks/lijnen
<kbd>f</kbd>: fetch <kbd>f</kbd>: fetch
<kbd>g</kbd>: view upstream reset options <kbd>g</kbd>: view upstream reset options
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Hoofd Panel (Merging) ## Hoofd Panel (Merging)
@ -214,7 +247,11 @@
<pre> <pre>
<kbd>esc</kbd>: close menu <kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu <kbd>q</kbd>: close menu
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Stash Panel ## Stash Panel
@ -223,7 +260,11 @@
<kbd>space</kbd>: toepassen <kbd>space</kbd>: toepassen
<kbd>g</kbd>: pop <kbd>g</kbd>: pop
<kbd>d</kbd>: drop <kbd>d</kbd>: drop
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Status Panel ## Status Panel

View File

@ -40,7 +40,11 @@
<kbd>f</kbd>: fast-forward this branch from its upstream <kbd>f</kbd>: fast-forward this branch from its upstream
<kbd>g</kbd>: view reset options <kbd>g</kbd>: view reset options
<kbd>R</kbd>: rename branch <kbd>R</kbd>: rename branch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Gałęzie Panel (Remote Branches (in Remotes tab)) ## Gałęzie Panel (Remote Branches (in Remotes tab))
@ -53,7 +57,11 @@
<kbd>d</kbd>: usuń gałąź <kbd>d</kbd>: usuń gałąź
<kbd>r</kbd>: rebase branch <kbd>r</kbd>: rebase branch
<kbd>u</kbd>: set as upstream of checked-out branch <kbd>u</kbd>: set as upstream of checked-out branch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Gałęzie Panel (Remotes Tab) ## Gałęzie Panel (Remotes Tab)
@ -63,7 +71,11 @@
<kbd>n</kbd>: add new remote <kbd>n</kbd>: add new remote
<kbd>d</kbd>: remove remote <kbd>d</kbd>: remove remote
<kbd>e</kbd>: edit remote <kbd>e</kbd>: edit remote
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Gałęzie Panel (Tags Tab) ## Gałęzie Panel (Tags Tab)
@ -74,7 +86,11 @@
<kbd>P</kbd>: push tag <kbd>P</kbd>: push tag
<kbd>n</kbd>: create tag <kbd>n</kbd>: create tag
<kbd>g</kbd>: view reset options <kbd>g</kbd>: view reset options
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commit files Panel ## Commit files Panel
@ -86,7 +102,11 @@
<kbd>o</kbd>: otwórz plik <kbd>o</kbd>: otwórz plik
<kbd>space</kbd>: toggle file included in patch <kbd>space</kbd>: toggle file included in patch
<kbd>enter</kbd>: enter file to add selected lines to the patch <kbd>enter</kbd>: enter file to add selected lines to the patch
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commity Panel ## Commity Panel
@ -94,7 +114,6 @@
<pre> <pre>
<kbd>]</kbd>: next tab <kbd>]</kbd>: next tab
<kbd>[</kbd>: previous tab <kbd>[</kbd>: previous tab
<kbd>/</kbd>: start search
</pre> </pre>
## Commity Panel (Commits Tab) ## Commity Panel (Commits Tab)
@ -122,6 +141,11 @@
<kbd>i</kbd>: select commit to diff with another commit <kbd>i</kbd>: select commit to diff with another commit
<kbd>T</kbd>: tag commit <kbd>T</kbd>: tag commit
<kbd>ctrl+r</kbd>: reset cherry-picked (copied) commits selection <kbd>ctrl+r</kbd>: reset cherry-picked (copied) commits selection
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Commity Panel (Reflog Tab) ## Commity Panel (Reflog Tab)
@ -129,6 +153,11 @@
<pre> <pre>
<kbd>space</kbd>: checkout commit <kbd>space</kbd>: checkout commit
<kbd>g</kbd>: view reset options <kbd>g</kbd>: view reset options
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Pliki Panel ## Pliki Panel
@ -151,7 +180,11 @@
<kbd>enter</kbd>: zatwierdź pojedyncze linie <kbd>enter</kbd>: zatwierdź pojedyncze linie
<kbd>f</kbd>: fetch <kbd>f</kbd>: fetch
<kbd>g</kbd>: view upstream reset options <kbd>g</kbd>: view upstream reset options
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Main Panel (Merging) ## Main Panel (Merging)
@ -214,7 +247,11 @@
<pre> <pre>
<kbd>esc</kbd>: close menu <kbd>esc</kbd>: close menu
<kbd>q</kbd>: close menu <kbd>q</kbd>: close menu
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Schowek Panel ## Schowek Panel
@ -223,7 +260,11 @@
<kbd>space</kbd>: zastosuj <kbd>space</kbd>: zastosuj
<kbd>g</kbd>: wyciągnij <kbd>g</kbd>: wyciągnij
<kbd>d</kbd>: porzuć <kbd>d</kbd>: porzuć
<kbd>,</kbd>: previous page
<kbd>.</kbd>: next page
<kbd><</kbd>: scroll to top
<kbd>/</kbd>: start search <kbd>/</kbd>: start search
<kbd>></kbd>: scroll to bottom
</pre> </pre>
## Status Panel ## Status Panel

View File

@ -1503,9 +1503,9 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gocui.MouseWheelUp, Modifier: gocui.ModNone, Handler: listView.handlePrevLine}, {ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gocui.MouseWheelUp, Modifier: gocui.ModNone, Handler: listView.handlePrevLine},
{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.nextItem-alt"), Modifier: gocui.ModNone, Handler: listView.handleNextLine}, {ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.nextItem-alt"), Modifier: gocui.ModNone, Handler: listView.handleNextLine},
{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.nextItem"), Modifier: gocui.ModNone, Handler: listView.handleNextLine}, {ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.nextItem"), Modifier: gocui.ModNone, Handler: listView.handleNextLine},
{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.prevPage"), Modifier: gocui.ModNone, Handler: listView.handlePrevPage}, {ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.prevPage"), Modifier: gocui.ModNone, Handler: listView.handlePrevPage, Description: gui.Tr.SLocalize("prevPage")},
{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.nextPage"), Modifier: gocui.ModNone, Handler: listView.handleNextPage}, {ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.nextPage"), Modifier: gocui.ModNone, Handler: listView.handleNextPage, Description: gui.Tr.SLocalize("nextPage")},
{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.gotoTop"), Modifier: gocui.ModNone, Handler: listView.handleGotoTop}, {ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.gotoTop"), Modifier: gocui.ModNone, Handler: listView.handleGotoTop, Description: gui.Tr.SLocalize("gotoTop")},
{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gocui.MouseWheelDown, Modifier: gocui.ModNone, Handler: listView.handleNextLine}, {ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gocui.MouseWheelDown, Modifier: gocui.ModNone, Handler: listView.handleNextLine},
{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gocui.MouseLeft, Modifier: gocui.ModNone, Handler: listView.handleClick}, {ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gocui.MouseLeft, Modifier: gocui.ModNone, Handler: listView.handleClick},
}...) }...)
@ -1521,6 +1521,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
bindings = append(bindings, []*Binding{ bindings = append(bindings, []*Binding{
{ {
ViewName: listView.viewName, ViewName: listView.viewName,
Contexts: []string{listView.context},
Key: gui.getKey("universal.startSearch"), Key: gui.getKey("universal.startSearch"),
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: openSearchHandler, Handler: openSearchHandler,
@ -1532,6 +1533,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Key: gui.getKey("universal.gotoBottom"), Key: gui.getKey("universal.gotoBottom"),
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gotoBottomHandler, Handler: gotoBottomHandler,
Description: gui.Tr.SLocalize("gotoBottom"),
}, },
}...) }...)
} }

View File

@ -1068,6 +1068,21 @@ func addEnglish(i18nObject *i18n.Bundle) error {
}, &i18n.Message{ }, &i18n.Message{
ID: "MustStashTitle", ID: "MustStashTitle",
Other: "Must stash", Other: "Must stash",
}, &i18n.Message{
ID: "ConfirmationTitle",
Other: "Confirmation Panel",
}, &i18n.Message{
ID: "prevPage",
Other: "previous page",
}, &i18n.Message{
ID: "nextPage",
Other: "next page",
}, &i18n.Message{
ID: "gotoTop",
Other: "scroll to top",
}, &i18n.Message{
ID: "gotoBottom",
Other: "scroll to bottom",
}, },
) )
} }