mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-23 00:39:13 +02:00
add basic vim keybindings
add keybinding for the tab key to begin a newline when writing a commit message it would have been shift+enter but currently that is not supported by gocui
This commit is contained in:
8
gui.go
8
gui.go
@ -204,12 +204,8 @@ func layout(g *gocui.Gui) error {
|
||||
v.Frame = false
|
||||
}
|
||||
|
||||
// If the confirmation panel is already displayed, just resize the width,
|
||||
// otherwise continue
|
||||
if v, err := g.View("confirmation"); err == nil {
|
||||
_, y := v.Size()
|
||||
x0, y0, x1, _ := getConfirmationPanelDimensions(g, "")
|
||||
g.SetView("confirmation", x0, y0, x1, y0+y+1, 0)
|
||||
if err = resizeConfirmationPanel(g); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if v, err := g.SetView("version", width-len(version)-1, optionsTop, width, optionsTop+2, 0); err != nil {
|
||||
|
Reference in New Issue
Block a user