Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Oct 6, 2019
1 parent bb0f1db commit 9ff7ed9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ When the filter is on, <kbd>/</kbd> works as an additional Leader key.
$ man nnn
To lookup keyboard shortcuts at runtime, press <kbd>?</kbd>.

## Mentions
## Elsewhere

- [Wikipedia](https://en.wikipedia.org/wiki/Nnn_(file_manager))
- [ArchWiki](https://wiki.archlinux.org/index.php/Nnn)
- [FOSSMint](https://www.fossmint.com/nnn-linux-terminal-file-browser/)
- Hacker News [[1](https://news.ycombinator.com/item?id=18520898)] [[2](https://news.ycombinator.com/item?id=19850656)]
- [It's FOSS](https://itsfoss.com/nnn-file-browser-linux/)
Expand Down
23 changes: 10 additions & 13 deletions nnn.1
Original file line number Diff line number Diff line change
Expand Up @@ -133,24 +133,19 @@ When there's a unique match and it's a directory,
.Nm
auto selects the directory and enters it in this mode.
.Sh SELECTION
Use \fI^J\fR to select the file under the cursor.
There are 3 groups of shortcuts to add files to selection:
.Pp
To select multiple files press \fI^S\fR and enter selection mode.
In this mode it's possible to
.Pp
(1) cherry-pick individual files one by one by pressing \fI^J\fR on each entry (works across directories and contexts); or,
(1) add an individual file to selection
.br
(2) navigate to another file in the same directory to select a range of files.
.Pp
Running any operation that uses the selection OR pressing \fI^S\fR again will save the selection and exit the selection mode.
.Pp
Press \fI^S\fR twice to clear selection.
(2) add a range of files to selection
.br
(3) add all files in the current directory to selection
.Pp
Selected files are visually indicated by a \fI+\fR before the entries.
Repeat range selection on the same entry to clear selection. Selected files are visually indicated by a \fI+\fR before the entries.
.br
The files in the list can now be listed, copied, moved, removed, archived or linked.
The selection can now be listed, copied, moved, removed, archived or linked.
.br
Absolute paths of the selected files are copied to the temporary file \fB.selection\fR in config directory. The path is shown in the help and configuration screen. If \fB$NNN_COPIER\fR is set (see ENVIRONMENT section below) the file paths are also copied to the system clipboard.
Absolute paths of the selected files are copied to the temporary file \fB.selection\fR in the config directory. The path is shown in the help and configuration screen. If \fB$NNN_COPIER\fR is set (see ENVIRONMENT section below) the file paths are also copied to the system clipboard.
.Sh ENVIRONMENT
The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
when dealing with the !, e and p commands respectively. A single combination to arguments is supported for SHELL and PAGER.
Expand Down Expand Up @@ -203,6 +198,8 @@ when dealing with the !, e and p commands respectively. A single combination to
.Bd -literal
export NNN_TRASH=1
.Ed
.Pp
\fBNN:\fR this is a special variable set to the current entry before executing a command from the command prompt or spawning a shell.
.Sh KNOWN ISSUES
.Nm
may not handle keypresses correctly when used with tmux (see issue #104 for more details). Set \fBTERM=xterm-256color\fR to address it.
Expand Down

0 comments on commit 9ff7ed9

Please sign in to comment.