aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkt programs <ktprograms@gmail.com>2022-04-12 17:49:31 +0800
committerRobin Jarry <robin@jarry.cc>2022-04-14 23:59:28 +0200
commit7a7b9df7632cd18adc7dff544a677060bba67a27 (patch)
treeb594b9ac975ae37e97aa1c33442b473b60154ae2
parentc6dae02925ae4a970210125b06f3fb9458f1d3fd (diff)
downloadaerc-7a7b9df7632cd18adc7dff544a677060bba67a27.tar.gz
review: show command that will be executed by binding
Also show commands that don't have a binding. This allows users to see what's available to bind. Signed-off-by: kt programs <ktprograms@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--widgets/compose.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 64eb2859..5f2c7069 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -960,10 +960,8 @@ func newReviewMessage(composer *Composer, err error) *reviewMessage {
for _, input := range bindings.GetReverseBindings(strokes) {
inputs = append(inputs, config.FormatKeyStrokes(input))
}
- if len(inputs) == 0 {
- continue
- }
- actions = append(actions, fmt.Sprintf(" %-6s %s", strings.Join(inputs[:], ", "), name))
+ actions = append(actions, fmt.Sprintf(" %-6s %-40s %s",
+ strings.Join(inputs[:], ", "), name, cmd))
}
spec := []ui.GridSpec{