mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-08 22:36:49 +02:00
add tab keybindings
This commit is contained in:
@@ -16,6 +16,13 @@
|
|||||||
<kbd>:</kbd>: execute custom command
|
<kbd>:</kbd>: execute custom command
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
## Branches Panel
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
<kbd>]</kbd>: next tab
|
||||||
|
<kbd>[</kbd>: previous tab
|
||||||
|
</pre>
|
||||||
|
|
||||||
## Branches Panel (Branches Tab)
|
## Branches Panel (Branches Tab)
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@@ -83,6 +90,8 @@
|
|||||||
## Commits Panel
|
## Commits Panel
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
<kbd>]</kbd>: next tab
|
||||||
|
<kbd>[</kbd>: previous tab
|
||||||
<kbd>/</kbd>: start search
|
<kbd>/</kbd>: start search
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
@@ -110,6 +119,7 @@
|
|||||||
<kbd>space</kbd>: checkout commit
|
<kbd>space</kbd>: checkout commit
|
||||||
<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
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
## Commits Panel (Reflog Tab)
|
## Commits Panel (Reflog Tab)
|
||||||
|
@@ -16,6 +16,13 @@
|
|||||||
<kbd>:</kbd>: voor aangepast commando uit
|
<kbd>:</kbd>: voor aangepast commando uit
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
## Branches Panel
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
<kbd>]</kbd>: next tab
|
||||||
|
<kbd>[</kbd>: previous tab
|
||||||
|
</pre>
|
||||||
|
|
||||||
## Branches Panel (Branches Tab)
|
## Branches Panel (Branches Tab)
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@@ -83,6 +90,8 @@
|
|||||||
## Commits Panel
|
## Commits Panel
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
<kbd>]</kbd>: next tab
|
||||||
|
<kbd>[</kbd>: previous tab
|
||||||
<kbd>/</kbd>: start search
|
<kbd>/</kbd>: start search
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
@@ -110,6 +119,7 @@
|
|||||||
<kbd>space</kbd>: checkout commit
|
<kbd>space</kbd>: checkout commit
|
||||||
<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
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
## Commits Panel (Reflog Tab)
|
## Commits Panel (Reflog Tab)
|
||||||
|
@@ -16,6 +16,13 @@
|
|||||||
<kbd>:</kbd>: execute custom command
|
<kbd>:</kbd>: execute custom command
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
## Gałęzie Panel
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
<kbd>]</kbd>: next tab
|
||||||
|
<kbd>[</kbd>: previous tab
|
||||||
|
</pre>
|
||||||
|
|
||||||
## Gałęzie Panel (Branches Tab)
|
## Gałęzie Panel (Branches Tab)
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@@ -83,6 +90,8 @@
|
|||||||
## Commity Panel
|
## Commity Panel
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
<kbd>]</kbd>: next tab
|
||||||
|
<kbd>[</kbd>: previous tab
|
||||||
<kbd>/</kbd>: start search
|
<kbd>/</kbd>: start search
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
@@ -110,6 +119,7 @@
|
|||||||
<kbd>space</kbd>: checkout commit
|
<kbd>space</kbd>: checkout commit
|
||||||
<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
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
## Commity Panel (Reflog Tab)
|
## Commity Panel (Reflog Tab)
|
||||||
|
@@ -618,16 +618,18 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
Description: gui.Tr.SLocalize("viewResetOptions"),
|
Description: gui.Tr.SLocalize("viewResetOptions"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "branches",
|
ViewName: "branches",
|
||||||
Key: gui.getKey("universal.nextTab"),
|
Key: gui.getKey("universal.nextTab"),
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handleNextBranchesTab,
|
Handler: gui.handleNextBranchesTab,
|
||||||
|
Description: gui.Tr.SLocalize("nextTab"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "branches",
|
ViewName: "branches",
|
||||||
Key: gui.getKey("universal.prevTab"),
|
Key: gui.getKey("universal.prevTab"),
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handlePrevBranchesTab,
|
Handler: gui.handlePrevBranchesTab,
|
||||||
|
Description: gui.Tr.SLocalize("prevTab"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "branches",
|
ViewName: "branches",
|
||||||
@@ -654,16 +656,18 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
Description: gui.Tr.SLocalize("fetchRemote"),
|
Description: gui.Tr.SLocalize("fetchRemote"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "commits",
|
ViewName: "commits",
|
||||||
Key: gui.getKey("universal.nextTab"),
|
Key: gui.getKey("universal.nextTab"),
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handleNextCommitsTab,
|
Handler: gui.handleNextCommitsTab,
|
||||||
|
Description: gui.Tr.SLocalize("nextTab"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "commits",
|
ViewName: "commits",
|
||||||
Key: gui.getKey("universal.prevTab"),
|
Key: gui.getKey("universal.prevTab"),
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handlePrevCommitsTab,
|
Handler: gui.handlePrevCommitsTab,
|
||||||
|
Description: gui.Tr.SLocalize("prevTab"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "commits",
|
ViewName: "commits",
|
||||||
@@ -1474,7 +1478,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
|
|
||||||
// we need a specific keybinding for the commits panel beacuse it usually lazyloads commits
|
// we need a specific keybinding for the commits panel beacuse it usually lazyloads commits
|
||||||
if listView.viewName != "commits" {
|
if listView.viewName != "commits" {
|
||||||
bindings = append(bindings, &Binding{ViewName: listView.viewName, Contexts: []string{listView.context}, Key: gui.getKey("universal.startSearch"), Modifier: gocui.ModNone, Handler: gui.handleOpenSearch, Description: gui.Tr.SLocalize("startSearch")})
|
bindings = append(bindings, &Binding{
|
||||||
|
ViewName: listView.viewName,
|
||||||
|
Contexts: []string{listView.context},
|
||||||
|
Key: gui.getKey("universal.startSearch"),
|
||||||
|
Modifier: gocui.ModNone,
|
||||||
|
Handler: gui.handleOpenSearch,
|
||||||
|
Description: gui.Tr.SLocalize("startSearch"),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1035,6 +1035,12 @@ func addEnglish(i18nObject *i18n.Bundle) error {
|
|||||||
}, &i18n.Message{
|
}, &i18n.Message{
|
||||||
ID: "resetCherryPick",
|
ID: "resetCherryPick",
|
||||||
Other: "reset cherry-picked (copied) commits selection",
|
Other: "reset cherry-picked (copied) commits selection",
|
||||||
|
}, &i18n.Message{
|
||||||
|
ID: "nextTab",
|
||||||
|
Other: "next tab",
|
||||||
|
}, &i18n.Message{
|
||||||
|
ID: "prevTab",
|
||||||
|
Other: "previous tab",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user