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:
1 parent
2a5c54c81a
commit
24e224ca65
6 files changed
+53
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user