cmds command to list all custom commands (aka cmd mappings) (#1265)

This is a natural complement to the recently introduces `maps` and `cmaps`.

I considered using a different output format, since `cmd` definitions can be
long, but I decided against it for now. `lf` already abbreviates commands that
take up several lines, and we can change the output format later if needed.
This commit is contained in:
Ilya Grigoriev authored and GitHub committed 2023-06-04 16:05:13 +03:00
1 parent a9d90bc560
commit b57d76bf97
6 files changed
+30 -2

No files matched your search

+7
View File
@@ -96,6 +96,7 @@ The following commands are provided by lf:
tag-toggle (default 't')
maps
cmaps
cmds
jumps
.EE
.PP
@@ -764,6 +765,12 @@ Capitalize/uppercase/lowercase the current word and jump to the next word.
.PP
List all key mappings in normal mode or command-line editing mode.
.PP
.EX
cmds
.EE
.PP
List all custom commands defined using the `cmd` command
.PP
.EX
jumps
.EE