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:
parent
673eb4c491
commit
204881e649
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user