diff --git a/complete.go b/complete.go index ab04e72..bd4a001 100644 --- a/complete.go +++ b/complete.go @@ -34,6 +34,7 @@ var ( "clear", "draw", "redraw", + "load", "reload", "read", "shell", diff --git a/doc.go b/doc.go index 336995e..d58c165 100644 --- a/doc.go +++ b/doc.go @@ -45,6 +45,7 @@ The following commands are provided by lf with default keybindings: The following commands are provided by lf without default keybindings: draw draw the ui + load load modified files and directories sync synchronizes yanked/deleted files with server echo prints its arguments to the message line cd changes working directory to its argument diff --git a/docstring.go b/docstring.go index 2ec4351..bc77a5d 100644 --- a/docstring.go +++ b/docstring.go @@ -49,6 +49,7 @@ The following commands are provided by lf with default keybindings: The following commands are provided by lf without default keybindings: draw draw the ui + load load modified files and directories sync synchronizes yanked/deleted files with server echo prints its arguments to the message line cd changes working directory to its argument diff --git a/eval.go b/eval.go index b5220d5..9a041c3 100644 --- a/eval.go +++ b/eval.go @@ -390,9 +390,9 @@ func (e *callExpr) eval(app *app, args []string) { app.ui.sync() app.ui.renew() app.nav.height = app.ui.wins[0].h + case "load": + app.nav.renew() case "reload": - app.ui.sync() - app.ui.renew() app.nav.reload() case "read": app.ui.cmdPrefix = ":"