diff --git a/comp.go b/comp.go index f26f70f..bfc1667 100644 --- a/comp.go +++ b/comp.go @@ -39,6 +39,7 @@ var ( "delete", "put", "clear", + "redraw", "renew", "sync", "echo", diff --git a/doc.go b/doc.go index 23bb476..175ec3a 100644 --- a/doc.go +++ b/doc.go @@ -41,10 +41,11 @@ The following commands are provided by lf with default keybindings: The following commands are provided by lf without default keybindings: - sync synchronizes yanked/deleted files with server - echo prints its arguments to the message line - cd changes working directory to its argument - push simulate key pushes given in its argument + sync synchronizes yanked/deleted files with server + echo prints its arguments to the message line + redraw renew ui elements and redraw the screen + cd changes working directory to its argument + push simulate key pushes given in its argument The following command line commands are provided by lf with default keybindings: diff --git a/docstring.go b/docstring.go index 8e78ba2..b14da8d 100644 --- a/docstring.go +++ b/docstring.go @@ -45,10 +45,11 @@ The following commands are provided by lf with default keybindings: The following commands are provided by lf without default keybindings: - sync synchronizes yanked/deleted files with server - echo prints its arguments to the message line - cd changes working directory to its argument - push simulate key pushes given in its argument + sync synchronizes yanked/deleted files with server + echo prints its arguments to the message line + redraw renew ui elements and redraw the screen + cd changes working directory to its argument + push simulate key pushes given in its argument The following command line commands are provided by lf with default keybindings: diff --git a/eval.go b/eval.go index dcf2afc..1371c40 100644 --- a/eval.go +++ b/eval.go @@ -391,6 +391,9 @@ func (e *callExpr) eval(app *app, args []string) { app.ui.message = msg log.Printf(msg) } + case "redraw": + app.ui.sync() + app.ui.renew() case "renew": app.ui.sync() app.ui.renew()