diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2024-01-27 22:46:20 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-01-27 23:01:31 +0100 |
commit | 542086c105a101bd39ed906dd74f108480160aa4 (patch) | |
tree | d7af7261f23dee6a1dbcb39be1712575641ec637 | |
parent | 8e87435890fe74db654f3f4dbbeb7dee47ddf276 (diff) | |
download | aerc-542086c105a101bd39ed906dd74f108480160aa4.tar.gz |
help: add :man as alias
Since except for :help keys, we literally open man with the appropriate
aerc manpages, it makes sense to have that as an alias.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | commands/help.go | 2 | ||||
-rw-r--r-- | doc/aerc.1.scd | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/commands/help.go b/commands/help.go index ce86e3ac..3d71e5b3 100644 --- a/commands/help.go +++ b/commands/help.go @@ -37,7 +37,7 @@ func (Help) Context() CommandContext { } func (Help) Aliases() []string { - return []string{"help"} + return []string{"help", "man"} } func (*Help) CompleteTopic(arg string) []string { diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index 1ee61060..89d2b878 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -95,10 +95,12 @@ forwards. These commands work in any context. -*:help* _<topic>_ +*:help* _<topic>_++ +*:man* _<topic>_ Display one of aerc's man pages in the embedded terminal. -*:help* *keys* +*:help* *keys*++ +*:man* *keys* Display the active key bindings in the current context. *:new-account* [*-t*] |