1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 08:47:24 +00:00

Feature: Up arrow to edit previous message

This commit is contained in:
Gregory Rudolph
2019-10-17 08:54:37 -04:00
parent 09953ead7d
commit 3b0711a782

View File

@ -150,6 +150,13 @@ func initKeybindings() error {
}); err != nil {
return err
}
if err := g.SetKeybinding("Input", gocui.KeyArrowUp, gocui.ModNone,
func(g *gocui.Gui, v *gocui.View) error {
RunCommand("edit")
return nil
}); err != nil {
return err
}
return nil
}