nnn/noice.1

106 lines
2.9 KiB
Groff
Raw Normal View History

2014-10-22 11:52:45 +00:00
.Dd Oct 22, 2014
.Dt NOICE 1
.Os
.Sh NAME
.Nm noice
.Nd small file manager
.Sh SYNOPSIS
.Nm noice
.Op Ar dir
.Sh DESCRIPTION
.Nm
is a simple and efficient file manager that gets out of your way
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
is not specified.
.Pp
.Nm
2014-10-22 11:52:45 +00: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-10-22 12:55:10 +00:00
.Bl -tag -width "l | Right | Return | C-mXXXX" -offset indent -compact
2014-10-22 11:52:45 +00:00
.It Ic k | Up | C-p
Move to previous entry.
.It Ic j | Down | C-n
Move to next entry.
.It Ic Pgup | C-u
Scroll backwards one page.
.It Ic Pgdown | C-d
Scroll forwards one page.
2014-10-22 12:55:10 +00:00
.It Ic l | Right | Return | C-m
2014-10-22 11:52:45 +00:00
Open file or enter directory.
.It Ic h | Left | Backspace
Back up one directory level.
.It Ic / | &
2014-10-22 12:57:24 +00:00
Filter view (see below for more information).
2014-10-22 11:52:45 +00:00
.It Ic !
Spawn shell in current directory.
.It Ic c
Change into the given directory.
.It Ic q
Quit
.Nm .
2014-10-22 11:57:22 +00:00
.El
2014-10-22 11:52:45 +00: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
is found the program less(1) is invoked. This is useful for editing text files
as one can use the 'v' command in less(1) to edit the file in $EDITOR.
.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 13:28:47 +00:00
.Sh HISTORY
.Nm
keeps track of the current cursor position per directory
level. Backing up one directory level will restore the
cursor position at that level.
.Pp
History is discarded for the backed out directory. In other
words, history is recorded only when entering directories.
2014-10-22 11:52:45 +00:00
.Sh EXAMPLES
The following example shows one possible configuration for
file associations. This is the default configuration for
.Nm .
.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 13:59:15 +00:00
.Sh KNOWN ISSUES
In urxvt you might have to start your terminal with
backspacekey set to DEC.
2014-10-22 11:52:45 +00:00
.Pp
.Sh AUTHORS
.Nm
was developed by Lazaros Koromilas <lostd@2f30.org> with
contributions by sin <sin@2f30.org>.