Add clearmaps command (#1286)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-06-04 18:56:39 +03:00
1 parent c874a2c56f
commit 2c13e0d7d6
5 files changed
+27

No files matched your search

+4
View File
@@ -1614,6 +1614,10 @@ func (e *callExpr) eval(app *app, args []string) {
app.ui.loadFileInfo(app.nav)
app.nav.sort()
app.ui.sort()
case "clearmaps":
// leave `:` and cmaps bound so the user can still exit using `:quit`
gOpts.keys = make(map[string]expr)
gOpts.keys[":"] = &callExpr{"read", nil, 1}
case "copy":
if !app.nav.init {
return