add 'load' command to load modified dirs and files
This commit is contained in:
parent
723357fe3d
commit
ba01f85340
@ -34,6 +34,7 @@ var (
|
|||||||
"clear",
|
"clear",
|
||||||
"draw",
|
"draw",
|
||||||
"redraw",
|
"redraw",
|
||||||
|
"load",
|
||||||
"reload",
|
"reload",
|
||||||
"read",
|
"read",
|
||||||
"shell",
|
"shell",
|
||||||
|
1
doc.go
1
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:
|
The following commands are provided by lf without default keybindings:
|
||||||
|
|
||||||
draw draw the ui
|
draw draw the ui
|
||||||
|
load load modified files and directories
|
||||||
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
|
||||||
|
@ -49,6 +49,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
|
draw draw the ui
|
||||||
|
load load modified files and directories
|
||||||
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
|
||||||
|
4
eval.go
4
eval.go
@ -390,9 +390,9 @@ func (e *callExpr) eval(app *app, args []string) {
|
|||||||
app.ui.sync()
|
app.ui.sync()
|
||||||
app.ui.renew()
|
app.ui.renew()
|
||||||
app.nav.height = app.ui.wins[0].h
|
app.nav.height = app.ui.wins[0].h
|
||||||
|
case "load":
|
||||||
|
app.nav.renew()
|
||||||
case "reload":
|
case "reload":
|
||||||
app.ui.sync()
|
|
||||||
app.ui.renew()
|
|
||||||
app.nav.reload()
|
app.nav.reload()
|
||||||
case "read":
|
case "read":
|
||||||
app.ui.cmdPrefix = ":"
|
app.ui.cmdPrefix = ":"
|
||||||
|
Loading…
Reference in New Issue
Block a user