2
0
mirror of https://github.com/edouardparis/lntop synced 2024-11-04 06:00:14 +00:00

vim/less style first/last line movement

This commit is contained in:
Jussi Tiira 2021-10-20 19:58:24 +00:00
parent 673eb4c491
commit 204881e649

View File

@ -60,11 +60,21 @@ func setKeyBinding(c *controller, g *gocui.Gui) error {
return err
}
err = g.SetKeybinding("", 'g', gocui.ModNone, c.cursorHome)
if err != nil {
return err
}
err = g.SetKeybinding("", gocui.KeyEnd, gocui.ModNone, c.cursorEnd)
if err != nil {
return err
}
err = g.SetKeybinding("", 'G', gocui.ModNone, c.cursorEnd)
if err != nil {
return err
}
err = g.SetKeybinding("", gocui.KeyPgdn, gocui.ModNone, c.cursorPageDown)
if err != nil {
return err