mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-13 00:07:59 +02:00
Add global binding to open recent repos
This commit is contained in:
parent
f92fcfbb47
commit
44f7fc6f7c
@ -98,6 +98,7 @@ keybinding:
|
|||||||
optionMenu-alt1: '?' # show help menu
|
optionMenu-alt1: '?' # show help menu
|
||||||
select: '<space>'
|
select: '<space>'
|
||||||
goInto: '<enter>'
|
goInto: '<enter>'
|
||||||
|
openRecentRepos: '<c-r>'
|
||||||
confirm: '<enter>'
|
confirm: '<enter>'
|
||||||
confirm-alt1: 'y'
|
confirm-alt1: 'y'
|
||||||
remove: 'd'
|
remove: 'd'
|
||||||
|
@ -160,6 +160,7 @@ type KeybindingUniversalConfig struct {
|
|||||||
DiffingMenu string `yaml:"diffingMenu"`
|
DiffingMenu string `yaml:"diffingMenu"`
|
||||||
DiffingMenuAlt string `yaml:"diffingMenu-alt"`
|
DiffingMenuAlt string `yaml:"diffingMenu-alt"`
|
||||||
CopyToClipboard string `yaml:"copyToClipboard"`
|
CopyToClipboard string `yaml:"copyToClipboard"`
|
||||||
|
OpenRecentRepos string `yaml:"openRecentRepos"`
|
||||||
SubmitEditorText string `yaml:"submitEditorText"`
|
SubmitEditorText string `yaml:"submitEditorText"`
|
||||||
AppendNewline string `yaml:"appendNewline"`
|
AppendNewline string `yaml:"appendNewline"`
|
||||||
ExtrasMenu string `yaml:"extrasMenu"`
|
ExtrasMenu string `yaml:"extrasMenu"`
|
||||||
@ -372,6 +373,7 @@ func GetDefaultConfig() *UserConfig {
|
|||||||
New: "n",
|
New: "n",
|
||||||
Edit: "e",
|
Edit: "e",
|
||||||
OpenFile: "o",
|
OpenFile: "o",
|
||||||
|
OpenRecentRepos: "<c-r>",
|
||||||
ScrollUpMain: "<pgup>",
|
ScrollUpMain: "<pgup>",
|
||||||
ScrollDownMain: "<pgdown>",
|
ScrollDownMain: "<pgdown>",
|
||||||
ScrollUpMainAlt1: "K",
|
ScrollUpMainAlt1: "K",
|
||||||
|
@ -231,6 +231,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handleTopLevelReturn,
|
Handler: gui.handleTopLevelReturn,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ViewName: "",
|
||||||
|
Key: gui.getKey(config.Universal.OpenRecentRepos),
|
||||||
|
Handler: gui.handleCreateRecentReposMenu,
|
||||||
|
Alternative: "<c-r>",
|
||||||
|
Description: gui.Tr.SwitchRepo,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ViewName: "",
|
ViewName: "",
|
||||||
Key: gui.getKey(config.Universal.ScrollUpMain),
|
Key: gui.getKey(config.Universal.ScrollUpMain),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user