add 'load' command to load modified dirs and files

This commit is contained in:
Gokcehan 2018-06-15 16:33:54 +03:00
parent 723357fe3d
commit ba01f85340
4 changed files with 5 additions and 2 deletions

View File

@ -34,6 +34,7 @@ var (
"clear", "clear",
"draw", "draw",
"redraw", "redraw",
"load",
"reload", "reload",
"read", "read",
"shell", "shell",

1
doc.go
View File

@ -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

View File

@ -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

View File

@ -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 = ":"