1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-09 02:16:37 +03:00
nnn/noice.1

108 lines
2.9 KiB
Groff
Raw Normal View History

2014-10-22 15:52:45 +04:00
.Dd Oct 22, 2014
.Dt NOICE 1
.Os
.Sh NAME
.Nm noice
2014-10-22 18:27:53 +04:00
.Nd small file browser
2014-10-22 15:52:45 +04:00
.Sh SYNOPSIS
.Nm noice
.Op Ar dir
.Sh DESCRIPTION
.Nm
2014-10-22 18:27:53 +04:00
is a simple and efficient file browser that gets out of your way
2014-10-22 15:52:45 +04:00
as much as possible. It was initially implemented to be controlled
with a TV remote control.
.Pp
.Nm
defaults to the current directory if
.Ar dir
2014-11-14 17:22:07 +03:00
is not specified. As an extra feature, if
.Ar dir
is a relative path,
.Nm
will not go back beyond the first component of the path using standard
navigation key presses.
.Pp
.Nm
2014-10-22 15:52:45 +04:00
supports both vi-like and emacs-like key bindings in the default
configuration. The default key bindings are described below;
their functionality is described in more detail later.
.Pp
2014-11-14 17:41:46 +03:00
.Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
.It Ic k, [Up] or C-p
2014-10-22 15:52:45 +04:00
Move to previous entry.
2014-11-14 17:41:46 +03:00
.It Ic j, [Down] or C-n
2014-10-22 15:52:45 +04:00
Move to next entry.
2014-11-14 17:41:46 +03:00
.It Ic [Pgup] or C-u
Scroll up half a page.
.It Ic [Pgdown] or C-d
Scroll down half a page.
.It Ic l, [Right], [Return] or C-m
2014-10-22 15:52:45 +04:00
Open file or enter directory.
2014-11-14 17:41:46 +03:00
.It Ic h, [Left] or [Backspace]
2014-10-22 15:52:45 +04:00
Back up one directory level.
2014-11-14 17:41:46 +03:00
.It Ic / or &
Change filter (see below for more information).
2014-10-22 15:52:45 +04:00
.It Ic c
Change into the given directory.
2014-11-14 17:41:46 +03:00
.It Ic !
Spawn shell in current directory.
2014-10-22 15:52:45 +04:00
.It Ic q
2014-11-14 17:41:46 +03:00
Quit.
2014-10-22 15:57:22 +04:00
.El
2014-10-22 15:52:45 +04:00
.Sh CONFIGURATION
.Nm
is configured by modifying
.Pa config.h
and recompiling the code.
.Pp
The file associations are specified by regexes
matching on the currently selected filename. If a match is found the associated
program is executed with the filename passed in as the argument. If no match
2014-11-14 17:41:46 +03:00
is found the program
.Xr less 1
is invoked. This is useful for editing text files
as one can use the 'v' command in
.Xr less 1 to edit the file in $EDITOR.
2014-10-22 15:52:45 +04:00
.Pp
See the examples section below for more information.
.Sh FILTERS
Filters allow you to use regexes to display only the matched
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
every time.
.Pp
To reset the filter you can use the match-any regex (i.e. '.').
.Pp
If
.Nm
is invoked as root the default filter will also match hidden
files.
2014-10-22 17:28:47 +04:00
.Sh HISTORY
.Nm
2014-10-23 19:26:06 +04:00
remembers the old path. Backing up one directory level will set the
cursor position at the directory you came out of.
2014-10-22 15:52:45 +04:00
.Sh EXAMPLES
The following example shows one possible configuration for
2014-11-14 17:41:46 +03:00
file associations which is also the default:
2014-10-22 15:52:45 +04:00
.Bd -literal
struct assoc assocs[] = {
{ "\\.(avi|mp4|mkv|mp3|ogg|flac)$", "mplayer" },
{ "\\.(png|jpg|gif)$", "feh" },
{ "\\.(html|svg)$", "firefox" },
{ "\\.pdf$", "mupdf" },
{ "\\.sh$", "sh" },
{ ".*", "less" },
};
.Ed
2014-10-22 17:59:15 +04:00
.Sh KNOWN ISSUES
2014-10-22 20:43:55 +04:00
If you are using urxvt you might have to start it with
2014-10-22 17:59:15 +04:00
backspacekey set to DEC.
2014-10-22 15:52:45 +04:00
.Pp
.Sh AUTHORS
.Nm
was developed by Lazaros Koromilas <lostd@2f30.org> with
contributions by sin <sin@2f30.org>.