From 3b0711a782da8db79a568b9d29b5846462dd17f8 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 17 Oct 2019 08:54:37 -0400 Subject: [PATCH] Feature: Up arrow to edit previous message --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index fa3a731..82cc72b 100644 --- a/main.go +++ b/main.go @@ -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 }