From be7d27bc494519a5467ef28302b14fd25ad946c6 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Thu, 6 Feb 2020 11:12:34 -0500 Subject: [PATCH] Action callbacks for lua actions --- internal/action/bufpane.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/action/bufpane.go b/internal/action/bufpane.go index e23b9a64..d2bd87e1 100644 --- a/internal/action/bufpane.go +++ b/internal/action/bufpane.go @@ -91,7 +91,14 @@ func BufMapKey(k Event, action string) { screen.TermMessage("Lua Error:", a, "does not exist") continue } - names = append(names, "") + split := strings.SplitN(a, ".", 2) + if len(split) > 1 { + a = strings.Title(split[0]) + strings.Title(split[1]) + } else { + a = strings.Title(a) + } + + names = append(names, a) } else if f, ok := BufKeyActions[a]; ok { afn = f names = append(names, a)