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

+2
View File
@@ -2525,6 +2525,8 @@ func (e *callExpr) eval(app *app, args []string) {
app.ui.cmdAccLeft = acc
update(app)
case "cmds":
app.runPagerOnText(listCmds())
case "maps":
app.runPagerOnText(listBinds(gOpts.keys))
case "cmaps":