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

+5
View File
@@ -81,6 +81,7 @@ The following commands are provided by lf:
tag-toggle (default 't')
maps
cmaps
cmds
jumps
The following command line commands are provided by lf:
@@ -620,6 +621,10 @@ Capitalize/uppercase/lowercase the current word and jump to the next word.
List all key mappings in normal mode or command-line editing mode.
cmds
List all custom commands defined using the `cmd` command
jumps
List the contents of the jump list, in order of the most recently visited locations.