mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Update docs
This commit is contained in:
parent
b0960a2e3d
commit
10c8344fbd
|
@ -79,6 +79,7 @@ It supports as many scripts as you need! Integrate utilities like sxiv (view ima
|
||||||
- File picker, vim (or neovim) plugin
|
- File picker, vim (or neovim) plugin
|
||||||
- Navigation
|
- Navigation
|
||||||
- *Navigate-as-you-type* with auto-select directory
|
- *Navigate-as-you-type* with auto-select directory
|
||||||
|
- *Wild load* for *navigate-as-you-type*
|
||||||
- 4 contexts (_aka_ tabs _aka_ workspaces)
|
- 4 contexts (_aka_ tabs _aka_ workspaces)
|
||||||
- Bookmarks; pin and visit a directory
|
- Bookmarks; pin and visit a directory
|
||||||
- Familiar, easy shortcuts (arrows, <kbd>~</kbd>, <kbd>-</kbd>, <kbd>@</kbd>)
|
- Familiar, easy shortcuts (arrows, <kbd>~</kbd>, <kbd>-</kbd>, <kbd>@</kbd>)
|
||||||
|
@ -213,7 +214,7 @@ optional args:
|
||||||
-s string filters [default: regex]
|
-s string filters [default: regex]
|
||||||
-S du mode
|
-S du mode
|
||||||
-v show version
|
-v show version
|
||||||
-w wild mode
|
-w wild load
|
||||||
-h show help
|
-h show help
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -339,7 +340,7 @@ When there's a unique match and it's a directory, `nnn` auto selects the directo
|
||||||
|
|
||||||
This mode takes navigation to the next level when short, unique keypress sequences are possible. For example, to reach `nnn` development directory (located at `~/GitHub/nnn`) from my `$HOME` (which is the default directory the terminal starts in), I use the sequence <kbd>g</kbd><kbd>n</kbd>.
|
This mode takes navigation to the next level when short, unique keypress sequences are possible. For example, to reach `nnn` development directory (located at `~/GitHub/nnn`) from my `$HOME` (which is the default directory the terminal starts in), I use the sequence <kbd>g</kbd><kbd>n</kbd>.
|
||||||
|
|
||||||
The **_wild mode_** program option can be extremely handy for users who use this mode constantly. The entries are unsorted when the directory loads. Applying filters sorts the entries (with directories on top). Directory color is disabled in this mode.
|
The **_wild load_** option can be extremely handy for users who use this mode constantly. The entries are unsorted when the directory loads. Applying filters sorts the entries (with directories on top). Directory color is disabled in this mode.
|
||||||
|
|
||||||
#### File indicators
|
#### File indicators
|
||||||
|
|
||||||
|
|
4
nnn.1
4
nnn.1
|
@ -68,7 +68,7 @@ supports the following options:
|
||||||
show version and exit
|
show version and exit
|
||||||
.Pp
|
.Pp
|
||||||
.Fl w
|
.Fl w
|
||||||
wild mode - entries unsorted on directory load
|
wild load - entries unsorted on directory load
|
||||||
.Pp
|
.Pp
|
||||||
.Fl h
|
.Fl h
|
||||||
show program help and exit
|
show program help and exit
|
||||||
|
@ -119,7 +119,7 @@ allowing continuous navigation. Works best with the \fBarrow keys\fR.
|
||||||
.br
|
.br
|
||||||
When there's a unique match and it's a directory, `nnn` auto selects the directory and enters it in this mode.
|
When there's a unique match and it's a directory, `nnn` auto selects the directory and enters it in this mode.
|
||||||
.br
|
.br
|
||||||
The \fIwild mode\fR can be extremely handy for users who use the \fInavigate-as-you-type\fR mode constantly. The entries are unsorted when the directory loads. Applying filters sorts the entries (with directories on top). Directory color is disabled in this mode.
|
The \fIwild load\fR option can be extremely handy for users who use the \fInavigate-as-you-type\fR mode constantly. The entries are unsorted when the directory loads. Applying filters sorts the entries (with directories on top). Directory color is disabled in this mode.
|
||||||
.Sh SELECTION MODE
|
.Sh SELECTION MODE
|
||||||
The absolute path of a single file can be copied to clipboard by pressing \fI^K\fR if
|
The absolute path of a single file can be copied to clipboard by pressing \fI^K\fR if
|
||||||
NNN_COPIER is set (see ENVIRONMENT section below).
|
NNN_COPIER is set (see ENVIRONMENT section below).
|
||||||
|
|
|
@ -16,4 +16,4 @@ complete -c nnn -s p -r -d 'copy selection to file'
|
||||||
complete -c nnn -s s -d 'use substring match for filters'
|
complete -c nnn -s s -d 'use substring match for filters'
|
||||||
complete -c nnn -s S -d 'start in disk usage analyzer mode'
|
complete -c nnn -s S -d 'start in disk usage analyzer mode'
|
||||||
complete -c nnn -s v -d 'show program version and exit'
|
complete -c nnn -s v -d 'show program version and exit'
|
||||||
complete -c nnn -s w -d 'wild mode'
|
complete -c nnn -s w -d 'wild load'
|
||||||
|
|
|
@ -20,7 +20,7 @@ args=(
|
||||||
'(-s)-s[use substring match for filters]'
|
'(-s)-s[use substring match for filters]'
|
||||||
'(-S)-S[start in disk usage analyzer mode]'
|
'(-S)-S[start in disk usage analyzer mode]'
|
||||||
'(-v)-v[show program version and exit]'
|
'(-v)-v[show program version and exit]'
|
||||||
'(-w)-w[wild mode]'
|
'(-w)-w[wild load]'
|
||||||
'*:filename:_files'
|
'*:filename:_files'
|
||||||
)
|
)
|
||||||
_arguments -S -s $args
|
_arguments -S -s $args
|
||||||
|
|
|
@ -3940,7 +3940,7 @@ static void usage(void)
|
||||||
" -s string filters [default: regex]\n"
|
" -s string filters [default: regex]\n"
|
||||||
" -S du mode\n"
|
" -S du mode\n"
|
||||||
" -v show version\n"
|
" -v show version\n"
|
||||||
" -w wild mode\n"
|
" -w wild load\n"
|
||||||
" -h show help\n\n"
|
" -h show help\n\n"
|
||||||
"v%s\n%s\n", __func__, VERSION, GENERAL_INFO);
|
"v%s\n%s\n", __func__, VERSION, GENERAL_INFO);
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,7 @@ static struct key bindings[] = {
|
||||||
{ CONTROL('J'), SEL_BSIZE },
|
{ CONTROL('J'), SEL_BSIZE },
|
||||||
/* Toggle sort by time */
|
/* Toggle sort by time */
|
||||||
{ 't', SEL_MTIME },
|
{ 't', SEL_MTIME },
|
||||||
/* Wild mode */
|
/* Wild load */
|
||||||
{ CONTROL('W'), SEL_WILD },
|
{ CONTROL('W'), SEL_WILD },
|
||||||
/* Redraw window */
|
/* Redraw window */
|
||||||
{ CONTROL('L'), SEL_REDRAW },
|
{ CONTROL('L'), SEL_REDRAW },
|
||||||
|
|
Loading…
Reference in a new issue