1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-22 14:53:57 +01:00
aerc/worker/notmuch
Robin Jarry 3c9ad93801 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>
2024-10-23 10:22:51 +02:00
..
lib notmuch: fix explicit searches for excluded tags 2024-10-16 19:52:49 -05:00
eventhandlers.go notmuch: reload all changed messages on DB change 2024-08-20 09:29:22 +02:00
message.go treewide: replace uint32 uids with opaque strings 2024-08-28 12:06:01 +02:00
message_test.go notmuch: add strategies for multi-file messages 2024-04-02 22:22:28 +02:00
notmuch.go notmuch: set the "passed" tag when forwarding msgs 2024-08-20 11:54:34 +02:00
search.go completion: display descriptions next to choices 2024-10-23 10:22:51 +02:00
worker.go treewide: replace uint32 uids with opaque strings 2024-08-28 12:06:01 +02:00