Add notes on fallback opener

This commit is contained in:
Arun Prakash Jana 2017-04-06 12:36:59 +05:30
parent e5b9a11584
commit 1293b28f2d
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 11 additions and 71 deletions

62
README
View File

@ -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.

View File

@ -45,7 +45,7 @@ I chose to fork because:
### Original features
- Super-easy navigation
- Open files with default-associated programs
- Pre-defined associaitons for different file types
- Jump to home directory
- Filter contents in current directory
- Show/hide hidden files
@ -59,12 +59,12 @@ I chose to fork because:
- Behaviour and navigation
- Detail view (default: disabled) with:
- file type
- file type (directory, regular, symlink etc.)
- modification time
- human-readable file size
- current item in reverse video
- 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)
- Directories first
- Sort numeric names in numeric order
@ -80,16 +80,18 @@ I chose to fork because:
export NNN_OPENER=gnome-open
export NNN_OPENER=gvfs-open
- Selective file associations (ignored if `NNN_OPENER` is set):
- Associate plain text files with vi (using `file` command)
- Remove video file associations (to each his own favourite video player)
- Associate common audio mimes with mpv
- Associate plain text files (determined using file) with vi
- Associate common audio and video mimes with mpv
- 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)
- 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
- Efficient memory usage, 0 malloc()
- Complete redundant buffer removal
- All redundant buffer removal
- All frequently used local chunks now static
- No runtime surprises (0 malloc/free)
- Removed some redundant string allocation and manipulation
- Simplified some roundabout procedures
- `-O3` level optimization, warning fixes