rename 'read-shell' to 'shell' in shell commands
This commit is contained in:
parent
4f05975e77
commit
68232c06e3
8
comp.go
8
comp.go
@ -35,10 +35,10 @@ var (
|
||||
"redraw",
|
||||
"reload",
|
||||
"read",
|
||||
"read-shell",
|
||||
"read-shell-pipe",
|
||||
"read-shell-wait",
|
||||
"read-shell-async",
|
||||
"shell",
|
||||
"shell-pipe",
|
||||
"shell-wait",
|
||||
"shell-async",
|
||||
"search",
|
||||
"search-back",
|
||||
"search-next",
|
||||
|
16
doc.go
16
doc.go
@ -33,10 +33,10 @@ The following commands are provided by lf with default keybindings:
|
||||
redraw (default '<c-l>')
|
||||
reload (default '<c-r>')
|
||||
read (default ':')
|
||||
read-shell (default '$')
|
||||
read-shell-pipe (default '%')
|
||||
read-shell-wait (default '!')
|
||||
read-shell-async (default '&')
|
||||
shell (default '$')
|
||||
shell-pipe (default '%')
|
||||
shell-wait (default '!')
|
||||
shell-async (default '&')
|
||||
search (default '/')
|
||||
search-back (default '?')
|
||||
search-next (default 'n')
|
||||
@ -144,10 +144,10 @@ Prefixes
|
||||
The following command prefixes are used by lf:
|
||||
|
||||
: read (default) builtin/custom command
|
||||
$ read-shell shell command
|
||||
% read-shell-pipe shell command displaying the output
|
||||
! read-shell-wait shell command waiting for key press
|
||||
& read-shell-async asynchronous shell command
|
||||
$ shell shell command
|
||||
% shell-pipe shell command displaying the output
|
||||
! shell-wait shell command waiting for key press
|
||||
& shell-async asynchronous shell command
|
||||
/ search search file in current directory
|
||||
? search-back search file in the reverse order
|
||||
|
||||
|
16
docstring.go
16
docstring.go
@ -37,10 +37,10 @@ The following commands are provided by lf with default keybindings:
|
||||
redraw (default '<c-l>')
|
||||
reload (default '<c-r>')
|
||||
read (default ':')
|
||||
read-shell (default '$')
|
||||
read-shell-pipe (default '%')
|
||||
read-shell-wait (default '!')
|
||||
read-shell-async (default '&')
|
||||
shell (default '$')
|
||||
shell-pipe (default '%')
|
||||
shell-wait (default '!')
|
||||
shell-async (default '&')
|
||||
search (default '/')
|
||||
search-back (default '?')
|
||||
search-next (default 'n')
|
||||
@ -151,10 +151,10 @@ Prefixes
|
||||
The following command prefixes are used by lf:
|
||||
|
||||
: read (default) builtin/custom command
|
||||
$ read-shell shell command
|
||||
% read-shell-pipe shell command displaying the output
|
||||
! read-shell-wait shell command waiting for key press
|
||||
& read-shell-async asynchronous shell command
|
||||
$ shell shell command
|
||||
% shell-pipe shell command displaying the output
|
||||
! shell-wait shell command waiting for key press
|
||||
& shell-async asynchronous shell command
|
||||
/ search search file in current directory
|
||||
? search-back search file in the reverse order
|
||||
|
||||
|
@ -12,7 +12,7 @@ set ifs "\n"
|
||||
set scrolloff 10
|
||||
|
||||
# use enter for shell commands
|
||||
map <enter> read-shell
|
||||
map <enter> shell
|
||||
|
||||
# execute current file (must be executable)
|
||||
map x $$f
|
||||
|
8
eval.go
8
eval.go
@ -344,13 +344,13 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
app.nav.reload()
|
||||
case "read":
|
||||
app.ui.cmdPrefix = ":"
|
||||
case "read-shell":
|
||||
case "shell":
|
||||
app.ui.cmdPrefix = "$"
|
||||
case "read-shell-pipe":
|
||||
case "shell-pipe":
|
||||
app.ui.cmdPrefix = "%"
|
||||
case "read-shell-wait":
|
||||
case "shell-wait":
|
||||
app.ui.cmdPrefix = "!"
|
||||
case "read-shell-async":
|
||||
case "shell-async":
|
||||
app.ui.cmdPrefix = "&"
|
||||
case "search":
|
||||
app.ui.cmdPrefix = "/"
|
||||
|
8
opts.go
8
opts.go
@ -75,10 +75,10 @@ func init() {
|
||||
gOpts.keys["<c-l>"] = &callExpr{"redraw", nil}
|
||||
gOpts.keys["<c-r>"] = &callExpr{"reload", nil}
|
||||
gOpts.keys[":"] = &callExpr{"read", nil}
|
||||
gOpts.keys["$"] = &callExpr{"read-shell", nil}
|
||||
gOpts.keys["%"] = &callExpr{"read-shell-pipe", nil}
|
||||
gOpts.keys["!"] = &callExpr{"read-shell-wait", nil}
|
||||
gOpts.keys["&"] = &callExpr{"read-shell-async", nil}
|
||||
gOpts.keys["$"] = &callExpr{"shell", nil}
|
||||
gOpts.keys["%"] = &callExpr{"shell-pipe", nil}
|
||||
gOpts.keys["!"] = &callExpr{"shell-wait", nil}
|
||||
gOpts.keys["&"] = &callExpr{"shell-async", nil}
|
||||
gOpts.keys["/"] = &callExpr{"search", nil}
|
||||
gOpts.keys["?"] = &callExpr{"search-back", nil}
|
||||
gOpts.keys["n"] = &callExpr{"search-next", nil}
|
||||
|
Loading…
Reference in New Issue
Block a user