Add jumps command for displaying the jump list (#1233)

* Add `jumps` command for displaying the jump list

* Mention jump count in documentation

* Reverse order
This commit is contained in:
Joe Lim authored and GitHub committed 2023-05-13 16:43:08 +03:00
1 parent 2a5c54c81a
commit 24e224ca65
6 files changed
+53

No files matched your search

+5
View File
@@ -2509,6 +2509,11 @@ func (e *callExpr) eval(app *app, args []string) {
io.Copy(app.cmdIn, listBinds(gOpts.cmdkeys))
app.cmdIn.Close()
cleanUp()
case "jumps":
cleanUp := app.runShell(envPager, nil, "$|")
io.Copy(app.cmdIn, listJumps(app.nav.jumpList, app.nav.jumpListInd))
app.cmdIn.Close()
cleanUp()
default:
cmd, ok := gOpts.cmds[e.name]
if !ok {