parent
4a1388a5c7
commit
35930924a7
8
doc.go
8
doc.go
@ -565,13 +565,7 @@ Globbing supports '*' to match any sequence, '?' to match any character, and
|
|||||||
'[...]' or '[^...] to match character sets or ranges. You can enable
|
'[...]' or '[^...] to match character sets or ranges. You can enable
|
||||||
'incsearch' option to jump to the current match at each keystroke while typing.
|
'incsearch' option to jump to the current match at each keystroke while typing.
|
||||||
In this mode, you can either use 'cmd-enter' to accept the search or use
|
In this mode, you can either use 'cmd-enter' to accept the search or use
|
||||||
'cmd-escape' to cancel the search. Alternatively, you can also map some other
|
'cmd-escape' to cancel the search.
|
||||||
commands with 'cmap' to accept the search and execute the command immediately
|
|
||||||
afterwards. For example, you can use arrow keys to finish the search with the
|
|
||||||
following mappings:
|
|
||||||
|
|
||||||
cmap <up> up
|
|
||||||
cmap <down> down
|
|
||||||
|
|
||||||
Finding mechanism is implemented with commands 'find' (default 'f'),
|
Finding mechanism is implemented with commands 'find' (default 'f'),
|
||||||
'find-back' (default 'F'), 'find-next' (default ';'), 'find-prev' (default
|
'find-back' (default 'F'), 'find-next' (default ';'), 'find-prev' (default
|
||||||
|
@ -589,13 +589,7 @@ pattern. Globbing supports '*' to match any sequence, '?' to match any
|
|||||||
character, and '[...]' or '[^...] to match character sets or ranges. You can
|
character, and '[...]' or '[^...] to match character sets or ranges. You can
|
||||||
enable 'incsearch' option to jump to the current match at each keystroke
|
enable 'incsearch' option to jump to the current match at each keystroke
|
||||||
while typing. In this mode, you can either use 'cmd-enter' to accept the
|
while typing. In this mode, you can either use 'cmd-enter' to accept the
|
||||||
search or use 'cmd-escape' to cancel the search. Alternatively, you can also
|
search or use 'cmd-escape' to cancel the search.
|
||||||
map some other commands with 'cmap' to accept the search and execute the
|
|
||||||
command immediately afterwards. For example, you can use arrow keys to
|
|
||||||
finish the search with the following mappings:
|
|
||||||
|
|
||||||
cmap <up> up
|
|
||||||
cmap <down> down
|
|
||||||
|
|
||||||
Finding mechanism is implemented with commands 'find' (default 'f'),
|
Finding mechanism is implemented with commands 'find' (default 'f'),
|
||||||
'find-back' (default 'F'), 'find-next' (default ';'), 'find-prev' (default
|
'find-back' (default 'F'), 'find-next' (default ';'), 'find-prev' (default
|
||||||
|
9
eval.go
9
eval.go
@ -491,15 +491,6 @@ func insert(app *app, arg string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (e *callExpr) eval(app *app, args []string) {
|
func (e *callExpr) eval(app *app, args []string) {
|
||||||
if app.ui.cmdPrefix != "" &&
|
|
||||||
app.ui.cmdPrefix != ">" &&
|
|
||||||
e.name != "redraw" &&
|
|
||||||
!strings.HasPrefix(e.name, "cmd-") {
|
|
||||||
app.ui.menuBuf = nil
|
|
||||||
app.ui.cmdAccLeft = nil
|
|
||||||
app.ui.cmdAccRight = nil
|
|
||||||
app.ui.cmdPrefix = ""
|
|
||||||
}
|
|
||||||
switch e.name {
|
switch e.name {
|
||||||
case "up":
|
case "up":
|
||||||
app.nav.up(e.count)
|
app.nav.up(e.count)
|
||||||
|
7
lf.1
7
lf.1
@ -553,12 +553,7 @@ By default, lf does not assign 'delete' command to a key to protect new users. Y
|
|||||||
.SH SEARCHING FILES
|
.SH SEARCHING FILES
|
||||||
There are two mechanisms implemented in lf to search a file in the current directory. Searching is the traditional method to move the selection to a file matching a given pattern. Finding is an alternative way to search for a pattern possibly using fewer keystrokes.
|
There are two mechanisms implemented in lf to search a file in the current directory. Searching is the traditional method to move the selection to a file matching a given pattern. Finding is an alternative way to search for a pattern possibly using fewer keystrokes.
|
||||||
.PP
|
.PP
|
||||||
Searching mechanism is implemented with commands 'search' (default '/'), 'search-back' (default '?'), 'search-next' (default 'n'), and 'search-prev' (default 'N'). You can enable 'globsearch' option to match with a glob pattern. Globbing supports '*' to match any sequence, '?' to match any character, and '[...]' or '[^...] to match character sets or ranges. You can enable 'incsearch' option to jump to the current match at each keystroke while typing. In this mode, you can either use 'cmd-enter' to accept the search or use 'cmd-escape' to cancel the search. Alternatively, you can also map some other commands with 'cmap' to accept the search and execute the command immediately afterwards. For example, you can use arrow keys to finish the search with the following mappings:
|
Searching mechanism is implemented with commands 'search' (default '/'), 'search-back' (default '?'), 'search-next' (default 'n'), and 'search-prev' (default 'N'). You can enable 'globsearch' option to match with a glob pattern. Globbing supports '*' to match any sequence, '?' to match any character, and '[...]' or '[^...] to match character sets or ranges. You can enable 'incsearch' option to jump to the current match at each keystroke while typing. In this mode, you can either use 'cmd-enter' to accept the search or use 'cmd-escape' to cancel the search.
|
||||||
.PP
|
|
||||||
.EX
|
|
||||||
cmap <up> up
|
|
||||||
cmap <down> down
|
|
||||||
.EE
|
|
||||||
.PP
|
.PP
|
||||||
Finding mechanism is implemented with commands 'find' (default 'f'), 'find-back' (default 'F'), 'find-next' (default ';'), 'find-prev' (default ','). You can disable 'anchorfind' option to match a pattern at an arbitrary position in the filename instead of the beginning. You can set the number of keys to match using 'findlen' option. If you set this value to zero, then the the keys are read until there is only a single match. Default values of these two options are set to jump to the first file with the given initial.
|
Finding mechanism is implemented with commands 'find' (default 'f'), 'find-back' (default 'F'), 'find-next' (default ';'), 'find-prev' (default ','). You can disable 'anchorfind' option to match a pattern at an arbitrary position in the filename instead of the beginning. You can set the number of keys to match using 'findlen' option. If you set this value to zero, then the the keys are read until there is only a single match. Default values of these two options are set to jump to the first file with the given initial.
|
||||||
.PP
|
.PP
|
||||||
|
Loading…
Reference in New Issue
Block a user