aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-09-16 00:15:42 +0200
committerRobin Jarry <robin@jarry.cc>2023-09-19 16:49:59 +0200
commitd4e49c79a69c399702c3c781920c8eae5b9e22ba (patch)
tree74af2ee50e0b2b6c5ef6d25131d2236162944b3d /widgets
parent34c718d72b357b6a64f4273ef72b4415ad721fd2 (diff)
downloadaerc-d4e49c79a69c399702c3c781920c8eae5b9e22ba.tar.gz
binds: improve display of key sequences
Do not replace all spaces by <space>, it makes the bindings completely unreadable. Only replace trailing and leading spaces with <space> since these are the only one that actually matter. The others are implicit and it improves the readability level by over 9000. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/aerc.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index faec403e..efa13194 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -209,7 +209,6 @@ func (aerc *Aerc) HumanReadableBindings() []string {
var result []string
binds := aerc.getBindings()
format := func(s string) string {
- s = strings.ReplaceAll(s, "<space>", " ")
return strings.ReplaceAll(s, "%", "%%")
}
fmtStr := "%10s %s"