1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-11-25 00:54:48 +01:00
aerc/commands
Robin Jarry d7cdaf1977 patch: use subcommand descriptions in completion items
go-opt v2.2.0 now supports providing individual descriptions for
completion items by appending a newline character to the completion item
followed by its description.

Do that for patch sub commands. Here's what it looks like:

       apply    (Apply the selected message(s) to the current project.)
       cd       (Change aerc's working directory to the current project.)
       drop     (Drop a patch from the repository.)
       find     (Search for applied patches.)
       init     (Create a new project.)
       list     (List the current project with the tracked patch sets.)
       ls       (List the current project with the tracked patch sets.)
       rebase   (Rebase the patch data.)
       switch   (Switch context to the specified project.)
       term     (Open a shell or run a command in the current project's directory.)
       unlink   (Delete all patch tracking data for the specified project.)
:patch

Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Antonin Godard <antonin@godard.cc>
2025-11-17 09:51:00 +01:00
..
account commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
compose commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
mode lint: simplify code (gosimple) 2022-08-04 21:57:52 +02:00
msg commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
msgview config: allow specifying the temporary directory 2025-10-30 21:17:44 +01:00
patch patch: use subcommand descriptions in completion items 2025-11-17 09:51:00 +01:00
testdata completion: complete paths with FilterList 2024-10-27 10:15:08 +01:00
cd.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
choose.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
close.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
commands.go commands: make commands.Register() strict in non-accepting pointers 2025-11-05 10:42:19 +01:00
completion_helpers.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
completion_helpers_test.go commands: add OptionsProvider and OptionCompleter 2023-05-16 13:39:17 +02:00
ct.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
echo.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
eml.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
exec.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
help.go chore: switch to using stdlib helper functions 2025-08-04 12:47:05 +02:00
history.go history: read the history file from XDG_STATE_HOME 2024-10-24 22:13:51 +02:00
menu.go config: allow specifying the temporary directory 2025-10-30 21:17:44 +01:00
move-tab.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
new-account.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
next-tab.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
pin-tab.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
prompt.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
pwd.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
quit.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
redraw.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
reload.go reload: trigger upon SIGHUP signal reception 2025-09-23 14:02:41 +02:00
send-keys.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
suspend.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
term.go term: allow setting custom title for the terminal tab 2025-05-05 13:49:04 +02:00
util.go patch: use subcommand descriptions in completion items 2025-11-17 09:51:00 +01:00
util_test.go completion: complete paths with FilterList 2024-10-27 10:15:08 +01:00
version.go commands: add version command 2025-02-20 23:09:47 +01:00
z.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00