mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
use camelCase
This commit is contained in:
@ -998,84 +998,84 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building"},
|
||||
Contexts: []string{"patchBuilding"},
|
||||
Key: gui.getKey("universal.return"),
|
||||
Handler: gui.wrappedHandler(gui.handleEscapePatchBuildingPanel),
|
||||
Description: gui.Tr.SLocalize("ExitLineByLineMode"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.openFile"),
|
||||
Handler: gui.wrappedHandler(gui.handleOpenFileAtLine),
|
||||
Description: gui.Tr.SLocalize("openFile"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.prevItem"),
|
||||
Handler: gui.handleSelectPrevLine,
|
||||
Description: gui.Tr.SLocalize("PrevLine"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.nextItem"),
|
||||
Handler: gui.handleSelectNextLine,
|
||||
Description: gui.Tr.SLocalize("NextLine"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.prevItem-alt"),
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleSelectPrevLine,
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.nextItem-alt"),
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleSelectNextLine,
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gocui.MouseWheelUp,
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleSelectPrevLine,
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gocui.MouseWheelDown,
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleSelectNextLine,
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.prevBlock"),
|
||||
Handler: gui.handleSelectPrevHunk,
|
||||
Description: gui.Tr.SLocalize("PrevHunk"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.nextBlock"),
|
||||
Handler: gui.handleSelectNextHunk,
|
||||
Description: gui.Tr.SLocalize("NextHunk"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.prevBlock-alt"),
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleSelectPrevHunk,
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("universal.nextBlock-alt"),
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleSelectNextHunk,
|
||||
@ -1096,14 +1096,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building"},
|
||||
Contexts: []string{"patchBuilding"},
|
||||
Key: gui.getKey("universal.select"),
|
||||
Handler: gui.handleToggleSelectionForPatch,
|
||||
Description: gui.Tr.SLocalize("ToggleSelectionForPatch"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("main.toggleDragSelect"),
|
||||
Handler: gui.handleToggleSelectRange,
|
||||
Description: gui.Tr.SLocalize("ToggleDragSelect"),
|
||||
@ -1111,42 +1111,42 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||
// Alias 'V' -> 'v'
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("main.toggleDragSelect-alt"),
|
||||
Handler: gui.handleToggleSelectRange,
|
||||
Description: gui.Tr.SLocalize("ToggleDragSelect"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gui.getKey("main.toggleSelectHunk"),
|
||||
Handler: gui.handleToggleSelectHunk,
|
||||
Description: gui.Tr.SLocalize("ToggleSelectHunk"),
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gocui.MouseLeft,
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleMouseDown,
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gocui.MouseLeft,
|
||||
Modifier: gocui.ModMotion,
|
||||
Handler: gui.handleMouseDrag,
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gocui.MouseWheelUp,
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleMouseScrollUp,
|
||||
},
|
||||
{
|
||||
ViewName: "main",
|
||||
Contexts: []string{"patch-building", "staging"},
|
||||
Contexts: []string{"patchBuilding", "staging"},
|
||||
Key: gocui.MouseWheelDown,
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.handleMouseScrollDown,
|
||||
|
Reference in New Issue
Block a user