aboutsummaryrefslogtreecommitdiffstats
path: root/config/ui.go
diff options
context:
space:
mode:
authorJulio B <julio.bacel@gmail.com>2024-03-06 01:11:05 +0200
committerRobin Jarry <robin@jarry.cc>2024-04-13 21:46:32 +0200
commit941e2e9e7de058f9e6e10efab1ece8be4188468e (patch)
tree85907c9c23171768c9ba9c41d42f8e802ece3039 /config/ui.go
parent672b4edca7af2303cfcb1d69a676556d12476b5f (diff)
downloadaerc-941e2e9e7de058f9e6e10efab1ece8be4188468e.tar.gz
ui: use a custom prefix for dummy root
These messages are not really the root of the thread, and should not be displayed as such. Add a new special prefix to make them appear like the first child of a rootless thread. Signed-off-by: Julio B <julio.bacel@gmail.com> Tested-by: Inwit <inwit@sindominio.net> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/ui.go')
-rw-r--r--config/ui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/ui.go b/config/ui.go
index 7b819192..7da365d6 100644
--- a/config/ui.go
+++ b/config/ui.go
@@ -95,9 +95,11 @@ type UIConfig struct {
ThreadPrefixLone string `ini:"thread-prefix-lone" default:""`
ThreadPrefixOrphan string `ini:"thread-prefix-orphan" default:""`
ThreadPrefixLastSibling string `ini:"thread-prefix-last-sibling" default:"└─"`
+ ThreadPrefixDummy string `ini:"thread-prefix-dummy" default:"┬─"`
ThreadPrefixLastSiblingReverse string `ini:"thread-prefix-last-sibling-reverse" default:"┌─"`
ThreadPrefixFirstChildReverse string `ini:"thread-prefix-first-child-reverse" default:""`
ThreadPrefixOrphanReverse string `ini:"thread-prefix-orphan-reverse" default:""`
+ ThreadPrefixDummyReverse string `ini:"thread-prefix-dummy-reverse" default:"┴─"`
// Tab Templates
TabTitleAccount *template.Template `ini:"tab-title-account" default:"{{.Account}}"`