mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add notes on fallback opener
This commit is contained in:
parent
e5b9a11584
commit
1293b28f2d
62
README
62
README
|
@ -1,62 +0,0 @@
|
||||||
__
|
|
||||||
___ ___ /\_\ ___ __
|
|
||||||
/' _ `\ / __`\/\ \ /'___\ /'__`\
|
|
||||||
/\ \/\ \/\ \L\ \ \ \/\ \__//\ __/
|
|
||||||
\ \_\ \_\ \____/\ \_\ \____\ \____\
|
|
||||||
\/_/\/_/\/___/ \/_/\/____/\/____/
|
|
||||||
-- by lostd and sin
|
|
||||||
=======================================================
|
|
||||||
|
|
||||||
|
|
||||||
What is it?
|
|
||||||
===========
|
|
||||||
|
|
||||||
noice is a small curses-based file browser.
|
|
||||||
It was first developed to be used with a TV remote control for a media
|
|
||||||
center solution.
|
|
||||||
|
|
||||||
|
|
||||||
Getting started
|
|
||||||
===============
|
|
||||||
|
|
||||||
Get the latest version from the git-repository; build and install it. Run
|
|
||||||
noice in a directory to display its content in the form of a list, where
|
|
||||||
each line is a file or directory. The currently selected item will be
|
|
||||||
preceded with a " > " by default.
|
|
||||||
|
|
||||||
For more information refer to the manpage.
|
|
||||||
|
|
||||||
|
|
||||||
Building
|
|
||||||
========
|
|
||||||
|
|
||||||
To build noice you need a curses implementation available. In most
|
|
||||||
cases you just do:
|
|
||||||
|
|
||||||
make
|
|
||||||
|
|
||||||
It is known to work on OpenBSD, NetBSD, FreeBSD, DragonFly BSD, Linux, OSX,
|
|
||||||
IRIX 6.5, Haiku and Solaris 9. Some notes for building on certain systems
|
|
||||||
follow.
|
|
||||||
|
|
||||||
* IRIX 6.5:
|
|
||||||
Tested with gcc from http://freeware.sgi.com/.
|
|
||||||
|
|
||||||
make CC="gcc" LDLIBS="-lgen -lcurses"
|
|
||||||
|
|
||||||
* Haiku:
|
|
||||||
|
|
||||||
make LDLIBS="-lncurses"
|
|
||||||
|
|
||||||
* Solaris 9:
|
|
||||||
Tested with gcc from http://www.opencsw.org/.
|
|
||||||
|
|
||||||
export PATH=/usr/ccs/bin:/opt/csw/bin:$PATH
|
|
||||||
make CC="gcc"
|
|
||||||
|
|
||||||
|
|
||||||
Contact
|
|
||||||
=======
|
|
||||||
|
|
||||||
To report bugs and/or submit patches, you can reach us through
|
|
||||||
the freenode IRC network at #2f30.
|
|
20
README.md
20
README.md
|
@ -45,7 +45,7 @@ I chose to fork because:
|
||||||
### Original features
|
### Original features
|
||||||
|
|
||||||
- Super-easy navigation
|
- Super-easy navigation
|
||||||
- Open files with default-associated programs
|
- Pre-defined associaitons for different file types
|
||||||
- Jump to home directory
|
- Jump to home directory
|
||||||
- Filter contents in current directory
|
- Filter contents in current directory
|
||||||
- Show/hide hidden files
|
- Show/hide hidden files
|
||||||
|
@ -59,12 +59,12 @@ I chose to fork because:
|
||||||
|
|
||||||
- Behaviour and navigation
|
- Behaviour and navigation
|
||||||
- Detail view (default: disabled) with:
|
- Detail view (default: disabled) with:
|
||||||
- file type
|
- file type (directory, regular, symlink etc.)
|
||||||
- modification time
|
- modification time
|
||||||
- human-readable file size
|
- human-readable file size
|
||||||
- current item in reverse video
|
- current item in reverse video
|
||||||
- number of items in current directory
|
- number of items in current directory
|
||||||
- full name of currently selected file
|
- full name of currently selected file in 'bar'
|
||||||
- Show details of the currently selected file (stat, file)
|
- Show details of the currently selected file (stat, file)
|
||||||
- Directories first
|
- Directories first
|
||||||
- Sort numeric names in numeric order
|
- Sort numeric names in numeric order
|
||||||
|
@ -80,16 +80,18 @@ I chose to fork because:
|
||||||
export NNN_OPENER=gnome-open
|
export NNN_OPENER=gnome-open
|
||||||
export NNN_OPENER=gvfs-open
|
export NNN_OPENER=gvfs-open
|
||||||
- Selective file associations (ignored if `NNN_OPENER` is set):
|
- Selective file associations (ignored if `NNN_OPENER` is set):
|
||||||
- Associate plain text files with vi (using `file` command)
|
- Associate plain text files (determined using file) with vi
|
||||||
- Remove video file associations (to each his own favourite video player)
|
- Associate common audio and video mimes with mpv
|
||||||
- Associate common audio mimes with mpv
|
|
||||||
- Associate PDF files with [zathura](https://pwmt.org/projects/zathura/)
|
- Associate PDF files with [zathura](https://pwmt.org/projects/zathura/)
|
||||||
- Use environment variable `NNN_FALLBACK_OPENER` to open other non-associated files
|
|
||||||
- Removed `less` as default file opener (there is no universal standalone opener utility)
|
- Removed `less` as default file opener (there is no universal standalone opener utility)
|
||||||
|
- Environment variable `NNN_FALLBACK_OPENER` is the last line of defense:
|
||||||
|
- If the executable in static file association is missing
|
||||||
|
- If a file type was not handled in static file association
|
||||||
|
- This may be the best option to set your desktop opener to
|
||||||
- Optimizations
|
- Optimizations
|
||||||
- Efficient memory usage, 0 malloc()
|
- All redundant buffer removal
|
||||||
- Complete redundant buffer removal
|
|
||||||
- All frequently used local chunks now static
|
- All frequently used local chunks now static
|
||||||
|
- No runtime surprises (0 malloc/free)
|
||||||
- Removed some redundant string allocation and manipulation
|
- Removed some redundant string allocation and manipulation
|
||||||
- Simplified some roundabout procedures
|
- Simplified some roundabout procedures
|
||||||
- `-O3` level optimization, warning fixes
|
- `-O3` level optimization, warning fixes
|
||||||
|
|
Loading…
Reference in a new issue