mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-15 14:03:06 +02:00
remove x keybinding for opening menu so we now only use '?'
This commit is contained in:
parent
38c7030b0f
commit
56424eb1aa
@ -136,7 +136,7 @@ keybinding:
|
|||||||
jumpToBlock: ['1', '2', '3', '4', '5'] # goto the Nth block / panel
|
jumpToBlock: ['1', '2', '3', '4', '5'] # goto the Nth block / panel
|
||||||
nextMatch: 'n'
|
nextMatch: 'n'
|
||||||
prevMatch: 'N'
|
prevMatch: 'N'
|
||||||
optionMenu: 'x' # show help menu
|
optionMenu: null # show help menu
|
||||||
optionMenu-alt1: '?' # show help menu
|
optionMenu-alt1: '?' # show help menu
|
||||||
select: '<space>'
|
select: '<space>'
|
||||||
goInto: '<enter>'
|
goInto: '<enter>'
|
||||||
|
@ -11,7 +11,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
|
|||||||
<kbd>m</kbd>: view merge/rebase options
|
<kbd>m</kbd>: view merge/rebase options
|
||||||
<kbd>ctrl+p</kbd>: view custom patch options
|
<kbd>ctrl+p</kbd>: view custom patch options
|
||||||
<kbd>R</kbd>: refresh
|
<kbd>R</kbd>: refresh
|
||||||
<kbd>x</kbd>: open menu
|
<kbd>?</kbd>: open menu
|
||||||
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
|
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
|
||||||
<kbd>_</kbd>: prev screen mode
|
<kbd>_</kbd>: prev screen mode
|
||||||
<kbd>ctrl+s</kbd>: view filter-by-path options
|
<kbd>ctrl+s</kbd>: view filter-by-path options
|
||||||
|
@ -11,7 +11,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
|
|||||||
<kbd>m</kbd>: view merge/rebase options
|
<kbd>m</kbd>: view merge/rebase options
|
||||||
<kbd>ctrl+p</kbd>: view custom patch options
|
<kbd>ctrl+p</kbd>: view custom patch options
|
||||||
<kbd>R</kbd>: リフレッシュ
|
<kbd>R</kbd>: リフレッシュ
|
||||||
<kbd>x</kbd>: メニューを開く
|
<kbd>?</kbd>: メニューを開く
|
||||||
<kbd>+</kbd>: 次のスクリーンモード (normal/half/fullscreen)
|
<kbd>+</kbd>: 次のスクリーンモード (normal/half/fullscreen)
|
||||||
<kbd>_</kbd>: 前のスクリーンモード
|
<kbd>_</kbd>: 前のスクリーンモード
|
||||||
<kbd>ctrl+s</kbd>: view filter-by-path options
|
<kbd>ctrl+s</kbd>: view filter-by-path options
|
||||||
|
@ -11,7 +11,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
|
|||||||
<kbd>m</kbd>: view merge/rebase options
|
<kbd>m</kbd>: view merge/rebase options
|
||||||
<kbd>ctrl+p</kbd>: 커스텀 Patch 옵션 보기
|
<kbd>ctrl+p</kbd>: 커스텀 Patch 옵션 보기
|
||||||
<kbd>R</kbd>: 새로고침
|
<kbd>R</kbd>: 새로고침
|
||||||
<kbd>x</kbd>: 매뉴 열기
|
<kbd>?</kbd>: 매뉴 열기
|
||||||
<kbd>+</kbd>: 다음 스크린 모드 (normal/half/fullscreen)
|
<kbd>+</kbd>: 다음 스크린 모드 (normal/half/fullscreen)
|
||||||
<kbd>_</kbd>: 이전 스크린 모드
|
<kbd>_</kbd>: 이전 스크린 모드
|
||||||
<kbd>ctrl+s</kbd>: view filter-by-path options
|
<kbd>ctrl+s</kbd>: view filter-by-path options
|
||||||
|
@ -11,7 +11,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
|
|||||||
<kbd>m</kbd>: bekijk merge/rebase opties
|
<kbd>m</kbd>: bekijk merge/rebase opties
|
||||||
<kbd>ctrl+p</kbd>: bekijk aangepaste patch opties
|
<kbd>ctrl+p</kbd>: bekijk aangepaste patch opties
|
||||||
<kbd>R</kbd>: verversen
|
<kbd>R</kbd>: verversen
|
||||||
<kbd>x</kbd>: open menu
|
<kbd>?</kbd>: open menu
|
||||||
<kbd>+</kbd>: volgende scherm modus (normaal/half/groot)
|
<kbd>+</kbd>: volgende scherm modus (normaal/half/groot)
|
||||||
<kbd>_</kbd>: vorige scherm modus
|
<kbd>_</kbd>: vorige scherm modus
|
||||||
<kbd>ctrl+s</kbd>: bekijk scoping opties
|
<kbd>ctrl+s</kbd>: bekijk scoping opties
|
||||||
|
@ -11,7 +11,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
|
|||||||
<kbd>m</kbd>: widok scalenia/opcje zmiany bazy
|
<kbd>m</kbd>: widok scalenia/opcje zmiany bazy
|
||||||
<kbd>ctrl+p</kbd>: view custom patch options
|
<kbd>ctrl+p</kbd>: view custom patch options
|
||||||
<kbd>R</kbd>: odśwież
|
<kbd>R</kbd>: odśwież
|
||||||
<kbd>x</kbd>: open menu
|
<kbd>?</kbd>: open menu
|
||||||
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
|
<kbd>+</kbd>: next screen mode (normal/half/fullscreen)
|
||||||
<kbd>_</kbd>: prev screen mode
|
<kbd>_</kbd>: prev screen mode
|
||||||
<kbd>ctrl+s</kbd>: view filter-by-path options
|
<kbd>ctrl+s</kbd>: view filter-by-path options
|
||||||
|
@ -11,7 +11,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct
|
|||||||
<kbd>m</kbd>: 查看 合并/变基 选项
|
<kbd>m</kbd>: 查看 合并/变基 选项
|
||||||
<kbd>ctrl+p</kbd>: 查看自定义补丁选项
|
<kbd>ctrl+p</kbd>: 查看自定义补丁选项
|
||||||
<kbd>R</kbd>: 刷新
|
<kbd>R</kbd>: 刷新
|
||||||
<kbd>x</kbd>: 打开菜单
|
<kbd>?</kbd>: 打开菜单
|
||||||
<kbd>+</kbd>: 下一屏模式(正常/半屏/全屏)
|
<kbd>+</kbd>: 下一屏模式(正常/半屏/全屏)
|
||||||
<kbd>_</kbd>: 上一屏模式
|
<kbd>_</kbd>: 上一屏模式
|
||||||
<kbd>ctrl+s</kbd>: 查看按路径过滤选项
|
<kbd>ctrl+s</kbd>: 查看按路径过滤选项
|
||||||
|
@ -450,7 +450,7 @@ func GetDefaultConfig() *UserConfig {
|
|||||||
NextMatch: "n",
|
NextMatch: "n",
|
||||||
PrevMatch: "N",
|
PrevMatch: "N",
|
||||||
StartSearch: "/",
|
StartSearch: "/",
|
||||||
OptionMenu: "x",
|
OptionMenu: "",
|
||||||
OptionMenuAlt1: "?",
|
OptionMenuAlt1: "?",
|
||||||
Select: "<space>",
|
Select: "<space>",
|
||||||
GoInto: "<enter>",
|
GoInto: "<enter>",
|
||||||
|
@ -148,13 +148,15 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
|
|||||||
ViewName: "",
|
ViewName: "",
|
||||||
Key: opts.GetKey(opts.Config.Universal.OptionMenu),
|
Key: opts.GetKey(opts.Config.Universal.OptionMenu),
|
||||||
Handler: self.handleCreateOptionsMenu,
|
Handler: self.handleCreateOptionsMenu,
|
||||||
Description: self.c.Tr.LcOpenMenu,
|
|
||||||
OpensMenu: true,
|
OpensMenu: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "",
|
ViewName: "",
|
||||||
Key: opts.GetKey(opts.Config.Universal.OptionMenuAlt1),
|
Key: opts.GetKey(opts.Config.Universal.OptionMenuAlt1),
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
|
// we have the description on the alt key and not the main key for legacy reasons
|
||||||
|
// (the original main key was 'x' but we've reassigned that to other purposes)
|
||||||
|
Description: self.c.Tr.LcOpenMenu,
|
||||||
Handler: self.handleCreateOptionsMenu,
|
Handler: self.handleCreateOptionsMenu,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -109,7 +109,7 @@ func (gui *Gui) globalOptionsMap() map[string]string {
|
|||||||
fmt.Sprintf("%s %s %s %s", keybindings.Label(keybindingConfig.Universal.PrevBlock), keybindings.Label(keybindingConfig.Universal.NextBlock), keybindings.Label(keybindingConfig.Universal.PrevItem), keybindings.Label(keybindingConfig.Universal.NextItem)): gui.c.Tr.LcNavigate,
|
fmt.Sprintf("%s %s %s %s", keybindings.Label(keybindingConfig.Universal.PrevBlock), keybindings.Label(keybindingConfig.Universal.NextBlock), keybindings.Label(keybindingConfig.Universal.PrevItem), keybindings.Label(keybindingConfig.Universal.NextItem)): gui.c.Tr.LcNavigate,
|
||||||
keybindings.Label(keybindingConfig.Universal.Return): gui.c.Tr.LcCancel,
|
keybindings.Label(keybindingConfig.Universal.Return): gui.c.Tr.LcCancel,
|
||||||
keybindings.Label(keybindingConfig.Universal.Quit): gui.c.Tr.LcQuit,
|
keybindings.Label(keybindingConfig.Universal.Quit): gui.c.Tr.LcQuit,
|
||||||
keybindings.Label(keybindingConfig.Universal.OptionMenu): gui.c.Tr.LcMenu,
|
keybindings.Label(keybindingConfig.Universal.OptionMenuAlt1): gui.c.Tr.LcMenu,
|
||||||
fmt.Sprintf("%s-%s", keybindings.Label(keybindingConfig.Universal.JumpToBlock[0]), keybindings.Label(keybindingConfig.Universal.JumpToBlock[len(keybindingConfig.Universal.JumpToBlock)-1])): gui.c.Tr.LcJump,
|
fmt.Sprintf("%s-%s", keybindings.Label(keybindingConfig.Universal.JumpToBlock[0]), keybindings.Label(keybindingConfig.Universal.JumpToBlock[len(keybindingConfig.Universal.JumpToBlock)-1])): gui.c.Tr.LcJump,
|
||||||
fmt.Sprintf("%s/%s", keybindings.Label(keybindingConfig.Universal.ScrollLeft), keybindings.Label(keybindingConfig.Universal.ScrollRight)): gui.c.Tr.LcScrollLeftRight,
|
fmt.Sprintf("%s/%s", keybindings.Label(keybindingConfig.Universal.ScrollLeft), keybindings.Label(keybindingConfig.Universal.ScrollRight)): gui.c.Tr.LcScrollLeftRight,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user