2017-05-11 16:55:22 +00:00
.Dd May 12 , 2017
2017-03-30 18:25:30 +00:00
.Dt NNN 1
2014-10-22 11:52:45 +00:00
.Os
.Sh NAME
2017-03-30 18:25:30 +00:00
.Nm nnn
2017-04-14 18:44:25 +00:00
.Nd the missing terminal file browser for X
2014-10-22 11:52:45 +00:00
.Sh SYNOPSIS
2017-03-30 18:25:30 +00:00
.Nm nnn
2017-04-01 05:18:18 +00:00
.Op Ar -d
2017-04-14 18:44:25 +00:00
.Op Ar -S
.Op Ar -v
.Op Ar -h
.Op Ar PATH
2014-10-22 11:52:45 +00:00
.Sh DESCRIPTION
.Nm
2017-04-20 20:16:00 +00:00
(Noice is Not Noice) is a performance-optimized fork of the noice terminal file browser with improved desktop integration, navigation, disk usage analyzer mode, comprehensive file details and much more. It remains a simple and efficient file browser that stays out of your way.
2014-10-22 11:52:45 +00:00
.Pp
.Nm
2014-10-22 12:28:00 +00:00
defaults to the current directory if
2017-04-14 18:44:25 +00:00
.Ar PATH
2017-03-31 02:52:51 +00:00
is not specified.
2014-10-22 12:28:00 +00:00
.Pp
.Nm
2014-10-22 11:52:45 +00:00
supports both vi-like and emacs-like key bindings in the default
2017-03-31 02:52:51 +00:00
configuration. The default key bindings are listed below.
2014-10-22 11:52:45 +00:00
.Pp
2014-11-14 14:41:46 +00:00
.Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
2017-04-03 17:03:46 +00:00
.It Ic [Up], k, ^P
2017-03-31 18:05:48 +00:00
Move to previous entry
2017-04-03 17:03:46 +00:00
.It Ic [Down], j, ^N
2017-03-31 18:05:48 +00:00
Move to next entry
2017-04-03 17:03:46 +00:00
.It Ic [PgUp], ^U
2017-03-31 18:05:48 +00:00
Scroll up half a page
2017-04-03 17:03:46 +00:00
.It Ic [PgDn], ^D
2017-03-31 18:05:48 +00:00
Scroll down half a page
2017-04-04 03:46:29 +00:00
.It Ic [Home], g, ^, ^A
2017-03-31 18:05:48 +00:00
Move to the first entry
2017-04-04 03:46:29 +00:00
.It Ic [End], G, $, ^E
2017-03-31 18:05:48 +00:00
Move to the last entry
2017-04-03 17:03:46 +00:00
.It Ic [Right], [Enter], l, ^M
2017-03-31 18:05:48 +00:00
Open file or enter directory
2017-04-03 17:03:46 +00:00
.It Ic [Left], [Backspace], h, ^H
2017-03-31 18:05:48 +00:00
Back up one directory level
2017-03-31 02:52:51 +00:00
.It Ic ~
2017-03-31 18:05:48 +00:00
Change to the HOME directory
2017-04-23 21:06:49 +00:00
.It Ic &
Change to initial directory
2017-04-08 08:16:03 +00:00
.It Ic -
Change to the last visited directory
2017-04-12 16:48:03 +00:00
.It Ic o
2017-04-21 12:22:03 +00:00
Open directory in NNN_DE_FILE_MANAGER
2017-04-23 21:06:49 +00:00
.It Ic /
2017-03-31 18:05:48 +00:00
Change filter (more information below)
2014-10-22 11:52:45 +00:00
.It Ic c
2017-03-31 18:05:48 +00:00
Change into the given directory
2017-03-31 02:52:51 +00:00
.It Ic d
2017-03-31 18:05:48 +00:00
Toggle detail view
2017-04-02 23:35:14 +00:00
.It Ic D
2017-04-10 13:05:30 +00:00
Toggle current file details screen
2017-04-21 18:26:48 +00:00
.It Ic m
2017-04-22 14:19:00 +00:00
Show concise mediainfo
2017-04-21 18:26:48 +00:00
.It Ic M
2017-04-22 14:19:00 +00:00
Show full mediainfo
2016-02-25 14:54:41 +00:00
.It Ic \& .
2017-03-31 18:05:48 +00:00
Toggle hide .dot files
2017-03-31 02:52:51 +00:00
.It Ic s
2017-03-31 18:05:48 +00:00
Toggle sort by file size
2017-04-09 18:41:29 +00:00
.It Ic S
Toggle disk usage analyzer mode
2015-01-31 22:02:59 +00:00
.It Ic t
2017-03-31 18:05:48 +00:00
Toggle sort by time modified
2015-07-02 16:49:17 +00:00
.It Ic \& !
2017-03-31 18:05:48 +00:00
Spawn SHELL in PWD (fallback sh)
2015-03-12 14:12:01 +00:00
.It Ic z
Run the system top utility.
.It Ic e
2017-03-31 18:05:48 +00:00
Open current entry in EDITOR (fallback vi)
2015-11-26 15:03:26 +00:00
.It Ic p
2017-03-31 18:05:48 +00:00
Open current entry in PAGER (fallback less)
2017-04-03 17:03:46 +00:00
.It Ic ^K
2017-03-31 18:05:48 +00:00
Invoke file name copier
2017-04-03 17:03:46 +00:00
.It Ic ^L
2017-03-31 18:05:48 +00:00
Force a redraw
2017-04-03 17:03:46 +00:00
.It Ic \& ?
2017-04-10 13:05:30 +00:00
Toggle help screen
2014-10-22 11:52:45 +00:00
.It Ic q
2017-03-31 18:05:48 +00:00
Quit
2017-04-19 12:52:30 +00:00
.It Ic Q
Quit and change directory
2014-10-22 11:57:22 +00:00
.El
2014-11-14 14:45:17 +00:00
.Pp
Backing up one directory level will set the cursor position at the
directory you came out of.
2017-04-01 05:18:18 +00:00
.Pp
.Nm
2017-04-13 13:43:33 +00:00
supports the following options:
2017-04-01 05:18:18 +00:00
.Pp
.Fl d
2017-04-14 11:20:16 +00:00
start in detail view mode
.Pp
.Fl S
start in disk usage analyzer mode
2017-04-13 13:43:33 +00:00
.Pp
.Fl v
show version and exit
2017-04-14 18:44:25 +00:00
.Pp
.Fl h
show program help and exit
2014-10-22 11:52:45 +00:00
.Sh CONFIGURATION
.Nm
2017-04-23 17:42:54 +00:00
invokes
.Pa nlay
to play a file if it recognizes a file by extension.
.Pa nlay
is a
highly customizable bash shell script which invokes a player depending on the
type of file. Read more on
.Pa nlay
at:
.br
.Em https://github.com/jarun/nnn/wiki/all-about-nlay
.Pp
.Nm
2014-10-22 11:52:45 +00:00
is configured by modifying
2017-04-23 17:42:54 +00:00
.Pa config.def.h
and recompiling the code. config.h is generated as a backup of config.def.h.
2014-10-22 11:52:45 +00:00
.Pp
2017-04-12 16:48:03 +00:00
See the environment and examples sections below for more options and information.
2017-04-19 12:52:30 +00:00
.Pp
Configuring
.Nm
to change to the last visited directory on quit requires shell integration in a
few easy steps. Please visit the project page (linked below) for the
instructions.
2014-10-22 11:52:45 +00:00
.Sh FILTERS
2017-03-31 02:52:51 +00:00
Filters support regexes to display only the matched
2014-10-22 11:52:45 +00:00
entries in the current directory view. This effectively allows
searching through the directory tree for a particular entry.
.Pp
Filters do not stack on top of each other. They are applied anew
2017-04-28 23:02:47 +00:00
every time. There are 3 ways to reset a filter:
2014-10-22 11:52:45 +00:00
.Pp
2017-04-28 23:02:47 +00:00
An empty filter expression, a search with no results or an extra backspace at
the filter prompt (like vi).
.Pp
If you want to list all matches starting with the filter expression (a common
use case), start the expression with a
.Pa ^
(caret) symbol.
2014-10-22 12:28:00 +00:00
.Pp
If
.Nm
2017-04-19 12:52:30 +00:00
is invoked as root the default filter will also match hidden files.
2015-11-26 15:03:26 +00:00
.Sh ENVIRONMENT
The SHELL, EDITOR and PAGER environment variables take precedence
when dealing with the !, e and p commands respectively.
2016-08-21 08:28:53 +00:00
.Pp
2017-04-12 16:48:03 +00:00
\fB NNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
directory with.
.Pp
2017-03-30 18:25:30 +00:00
\fB NNN_OPENER:\fR set to your desktop environment's default
2016-08-21 08:28:53 +00:00
mime opener to override all custom mime associations.
.br
2017-04-13 15:44:30 +00:00
Examples: xdg-open, gio open, gvfs-open.
2016-08-21 10:32:03 +00:00
.Pp
2017-03-30 18:25:30 +00:00
\fB NNN_FALLBACK_OPENER:\fR set to your desktop environment's default
2016-08-21 10:32:03 +00:00
mime opener to use as a fallback when no association is set for a file
type. Custom associations are listed in the EXAMPLES section below.
2017-03-30 18:25:30 +00:00
.Pp
\fB NNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
.Bd -literal
2017-03-31 02:52:51 +00:00
-------------------------------------
2017-03-30 18:25:30 +00:00
#!/bin/sh
echo -n $1 | xsel --clipboard --input
2017-03-31 02:52:51 +00:00
-------------------------------------
2017-04-15 04:00:41 +00:00
.Ed
2014-10-22 13:59:15 +00:00
.Sh KNOWN ISSUES
2015-01-31 22:58:08 +00:00
If you are using urxvt you might have to set backspacekey to DEC.
2014-10-22 11:52:45 +00:00
.Sh AUTHORS
2015-07-02 16:49:17 +00:00
.An Lazaros Koromilas Aq Mt lostd@2f30.org ,
2017-03-31 02:52:51 +00:00
.An Dimitris Papastamos Aq Mt sin@2f30.org ,
.An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
.Sh HOME
2017-04-01 05:18:18 +00:00
.Em https://github.com/jarun/nnn