diff options
author | inwit <inwit@sindominio.net> | 2024-01-29 20:45:47 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-01-29 22:45:25 +0100 |
commit | 0c2af2e354541632c708a1a7d6eb04c1e2a951ae (patch) | |
tree | 94bf8c468cc2ab423294630055a696dbb3a8014e /app/dirtree.go | |
parent | c48d27b07b90fab54198287c552646607f401228 (diff) | |
download | aerc-0c2af2e354541632c708a1a7d6eb04c1e2a951ae.tar.gz |
ui: allow thread arrow customization
The thread prefix appearance is inspired by mutt and has been regarded
by some as too wide and not very aesthetically pleasing. Nevertheless,
it has some technical limitations, like not being able to show if a
thread is folded.
Allow for full customisation of the thread prefix by introducing 14 new
config options.
Dirlist is not affected.
Changelog-added: Thread arrow prefixes are now fully configurable.
Co-authored-by: Robin Jarry <robin@jarry.cc>
Signed-off-by: inwit <inwit@sindominio.net>
Tested-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/dirtree.go')
-rw-r--r-- | app/dirtree.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/dirtree.go b/app/dirtree.go index 559a717e..ce9bd27e 100644 --- a/app/dirtree.go +++ b/app/dirtree.go @@ -347,7 +347,9 @@ func (dt *DirectoryTree) countVisible(list []*types.Thread) (n int) { func (dt *DirectoryTree) displayText(node *types.Thread) string { elems := strings.Split(dt.treeDirs[getAnyUid(node)], dt.DirectoryList.worker.PathSeparator()) - return fmt.Sprintf("%s%s%s", threadPrefix(node, false, false), getFlag(node), elems[countLevels(node)]) + return fmt.Sprintf("%s%s%s", + threadPrefix(node, false, false), + getFlag(node), elems[countLevels(node)]) } func (dt *DirectoryTree) getDirectory(node *types.Thread) string { |