1
0
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:
Jesse Duffield
2018-08-09 23:26:31 +10:00
parent 44eaccfd14
commit bcad80250a
5 changed files with 83 additions and 35 deletions

8
gui.go
View File

@ -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 {