add builtin 'draw' command to update efficiently
This commit is contained in:
parent
9d14888ba2
commit
4d3437a198
1
comp.go
1
comp.go
@ -32,6 +32,7 @@ var (
|
|||||||
"delete",
|
"delete",
|
||||||
"put",
|
"put",
|
||||||
"clear",
|
"clear",
|
||||||
|
"draw",
|
||||||
"redraw",
|
"redraw",
|
||||||
"reload",
|
"reload",
|
||||||
"read",
|
"read",
|
||||||
|
1
doc.go
1
doc.go
@ -44,6 +44,7 @@ The following commands are provided by lf with default keybindings:
|
|||||||
|
|
||||||
The following commands are provided by lf without default keybindings:
|
The following commands are provided by lf without default keybindings:
|
||||||
|
|
||||||
|
draw draw the ui
|
||||||
sync synchronizes yanked/deleted files with server
|
sync synchronizes yanked/deleted files with server
|
||||||
echo prints its arguments to the message line
|
echo prints its arguments to the message line
|
||||||
cd changes working directory to its argument
|
cd changes working directory to its argument
|
||||||
|
@ -48,6 +48,7 @@ The following commands are provided by lf with default keybindings:
|
|||||||
|
|
||||||
The following commands are provided by lf without default keybindings:
|
The following commands are provided by lf without default keybindings:
|
||||||
|
|
||||||
|
draw draw the ui
|
||||||
sync synchronizes yanked/deleted files with server
|
sync synchronizes yanked/deleted files with server
|
||||||
echo prints its arguments to the message line
|
echo prints its arguments to the message line
|
||||||
cd changes working directory to its argument
|
cd changes working directory to its argument
|
||||||
|
1
eval.go
1
eval.go
@ -339,6 +339,7 @@ func (e *callExpr) eval(app *app, args []string) {
|
|||||||
if err := sendRemote("send sync"); err != nil {
|
if err := sendRemote("send sync"); err != nil {
|
||||||
app.ui.printf("clear: %s", err)
|
app.ui.printf("clear: %s", err)
|
||||||
}
|
}
|
||||||
|
case "draw":
|
||||||
case "redraw":
|
case "redraw":
|
||||||
app.ui.sync()
|
app.ui.sync()
|
||||||
app.ui.renew()
|
app.ui.renew()
|
||||||
|
Loading…
Reference in New Issue
Block a user