diff options
author | Robin Jarry <robin@jarry.cc> | 2024-10-12 00:21:44 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-10-23 10:22:51 +0200 |
commit | 3c9ad93801ce9bb71d76fa398d7d94f1afd2c2cb (patch) | |
tree | dcc715e090fedf65e2b0f800d4d969b4606f7a5c /worker/jmap/configure.go | |
parent | 63db443949b92eed5f5d2ded5f430bda96312b43 (diff) | |
download | aerc-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 'worker/jmap/configure.go')
0 files changed, 0 insertions, 0 deletions