1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-22 14:53:57 +01:00
aerc/worker/lib
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
..
foldermap.go lib: parse query-map and folder-map files 2023-06-22 10:55:25 +02:00
foldermap_test.go lib: parse query-map and folder-map files 2023-06-22 10:55:25 +02:00
headers.go worker: move shared code to lib 2023-10-28 19:24:55 +02:00
maildir.go maildir: set the forwarded flag 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
size.go worker: move shared code to lib 2023-10-28 19:24:55 +02:00
sort.go treewide: replace uint32 uids with opaque strings 2024-08-28 12:06:01 +02:00