aboutsummaryrefslogtreecommitdiffstats
path: root/stylesets/pink
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-10-12 00:21:44 +0200
committerRobin Jarry <robin@jarry.cc>2024-10-23 10:22:51 +0200
commit3c9ad93801ce9bb71d76fa398d7d94f1afd2c2cb (patch)
treedcc715e090fedf65e2b0f800d4d969b4606f7a5c /stylesets/pink
parent63db443949b92eed5f5d2ded5f430bda96312b43 (diff)
downloadaerc-3c9ad93801ce9bb71d76fa398d7d94f1afd2c2cb.tar.gz
completion: display descriptions next to choices
Use go-opt v2 new completion API which returns items descriptions along with their text values. Display the descriptions after the items separated by two spaces. Wrap the descriptions in parentheses to better indicate that they are not part of the completion choices. Limit the description length to 80 characters to avoid display issues. Add a new style object completion_description in stylesets. By default, the object will be rendered with a dimmed terminal attribute. Update all stylesets and documentation accordingly. Implements: https://todo.sr.ht/~rjarry/aerc/271 Link: https://git.sr.ht/~rjarry/go-opt/commit/ebeb82538395a Changelog-added: Command completion now displays descriptions next to completion items. Changelog-added: New `completion_description` style object in style sets used for rendering completion item descriptions. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bojan Gabric <bojan@bojangabric.com> Tested-by: Jason Cox <me@jasoncarloscox.com> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'stylesets/pink')
-rw-r--r--stylesets/pink3
1 files changed, 2 insertions, 1 deletions
diff --git a/stylesets/pink b/stylesets/pink
index 87428874..65ef2fe2 100644
--- a/stylesets/pink
+++ b/stylesets/pink
@@ -43,7 +43,6 @@ part_*.selected.fg=#ffffff
part_*.selected.bg=#de4e85
part_filename.selected.bold=true
-completion_pill.reverse=true
selector_focused.bold=true
selector_focused.bg=#de4e85
selector_focused.fg=white
@@ -54,7 +53,9 @@ default.selected.bold=true
default.selected.fg=white
default.selected.bg=#de4e85
+completion_pill.reverse=true
completion_default.selected.bg=#de4e85
+completion_description.dim=true
[viewer]
*.default=true