1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-12-18 17:21:02 +01:00
aerc/commands
Robin Jarry 8ea6b4386d help: list pages dynamically from mandb
Instead of having a hard-coded list of help topics, change the :help
command completion to list available man pages as listed by:

	man -k aerc

Append each man page short description to the completion choices.

In case mandb isn't up to date, or if running aerc without installing
it, fallback to a hard-coded list. I didn't try to walk the "doc" folder
since the working directory isn't guaranteed.

Also, in order for this to work properly, mandb must be executed after
installing the man pages. This isn't part of the makefile since it would
cause issues in downstream builds which install in staging directories.

Add a mention of mandb in the installation instructions.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Antonin Godard <antonin@godard.cc>
2025-12-11 21:37:09 +01:00
..
account commands: add :toggle-sidebar command 2025-11-29 21:08:34 +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 help: list pages dynamically from mandb 2025-12-11 21:37:09 +01: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