]> Sergey Matveev's repositories - nnn.git/commitdiff
Add table of external dependencies
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 11 Mar 2018 08:12:49 +0000 (13:42 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 11 Mar 2018 08:12:49 +0000 (13:42 +0530)
README.md
nlay

index f1648c46637ed8bab7ddd99e82cd73013cb2a220..f05893959480258414c697c4ffc62d0075555a98 100644 (file)
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ Cool things you can do with `nnn`:
 - lock the current terminal after a specified idle time
 - change directory on exit
 
-If you want to edit a file in vim with some soothing music in the background while referring to a spec in your GUI PDF viewer, `nnn` got it! [Quickstart](#quickstart) and see how `nnn` simplifies those long desktop sessions...
+If you want to edit a file in vi with some soothing music in the background while referring to a spec in your GUI PDF viewer, `nnn` got it! [Quickstart](#quickstart) and see how `nnn` simplifies those long desktop sessions...
 
 Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/issues/1).
 
@@ -294,7 +294,18 @@ The following abbreviations are used in the detail view:
 
 #### File handling
 
-- `nnn` uses `xdg-open` on Linux and `open(1)` on OS X as the desktop opener.
+| External dependency | Operation |
+| --- | --- |
+| xdg-open (Linux), open(1) (OS X) | desktop opener |
+| mediainfo, exiftool | multimedia file details |
+| gnome-search-tool, catfish | desktop search utility |
+| atool | list and extract archives |
+| vidir from moreutils | batch rename, move, delete dir entries |
+| vlock (Linux) | terminal locker |
+| $EDITOR | edit files (fallback vi) |
+| $PAGER | page through files (fallback less) |
+| $SHELL | spawn a shell in dir (fallback sh) |
+
 - To edit all text files in EDITOR (preferably CLI, fallback vi):
 
       export NNN_USE_EDITOR=1
@@ -302,9 +313,6 @@ The following abbreviations are used in the detail view:
 
       export NNN_DE_FILE_MANAGER=thunar
       export NNN_DE_FILE_MANAGER=nautilus
-- [mediainfo](https://mediaarea.net/en/MediaInfo) (or [exiftool](https://sno.phy.queensu.ca/~phil/exiftool/), if specified) is required to view media information
-- [atool](http://www.nongnu.org/atool/) is required to list and extract archives
-- vidir from [moreutils](https://joeyh.name/code/moreutils/) is used to batch rename entries in current directory
 
 #### Help
 
diff --git a/nlay b/nlay
index e554c01ad5b4960a213e700f061e1bfce2d949aa..2a5579bcdbee5e312e2ab8d165b73760cf2706a8 100755 (executable)
--- a/nlay
+++ b/nlay
 #    bg settings. If bg is set the app is detached and started in the background
 #    in silent mode.
 #
-#    The bg setting depends on personal preference and type of app, e.g.,
-#    I would start vim (CLI) in the foreground but Sublime Text (GUI) in the
-#    background.
+#    The bg setting depends on personal preferences and type of utility, e.g., I
+#    would start vi (CLI) in the foreground but Sublime Text (GUI) in background.
 #
 #    Check (and TOGGLE as you wish) the default bg settings.
 #
 # 2. Detached apps are not killed when nnn exits. Use kill(1) or killall(1) to
-#    to stop console based background apps.
+#    stop console based background apps.
 #
 # 3. nlay is OVERWRITTEN during nnn upgrade. You can store your custom nlay in a
 #    location other than the default and have an alias with nnn option '-p' to
@@ -56,7 +55,7 @@ ENABLE_FILE_TYPE_HANDLING
 
 #------------ PLAINTEXT (UNUSED) ------------
 if [ "$2" == "text" ]; then
-    app=("vim")
+    app=("vi")
 
     opts=("")