]> Sergey Matveev's repositories - nnn.git/commitdiff
Add notes on fallback opener
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 6 Apr 2017 07:06:59 +0000 (12:36 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 7 Apr 2017 12:12:02 +0000 (17:42 +0530)
README [deleted file]
README.md

diff --git a/README b/README
deleted file mode 100644 (file)
index 258fd8f..0000000
--- a/README
+++ /dev/null
@@ -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.
index 157084b50b0de3df3ada9d21ffeee9a70f9dce22..505992f9e717df3178bc3370d645e3c491bdb7e8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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