]> Sergey Matveev's repositories - nnn.git/commitdiff
Example to integrate fzy using custom script
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 17 Jun 2018 12:58:47 +0000 (18:28 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 17 Jun 2018 12:58:47 +0000 (18:28 +0530)
README.md

index 04ad06e3d3c72a4f2707dadb46324da612398f57..d8cd0fc51a0be34e1815e61923e9820050362677 100644 (file)
--- a/README.md
+++ b/README.md
@@ -418,9 +418,9 @@ Note that you may want to keep quotes disabled in this case.
 
 #### run a custom script
 
-Export the path to the custom script:
+Export the path to the custom executable script:
 
-    export NNN_SCRIPT=/usr/local/bin/script.sh
+    export NNN_SCRIPT=/usr/local/bin/nscript
 
 Sample script to open image files in current dir in sxiv:
 
@@ -428,6 +428,12 @@ Sample script to open image files in current dir in sxiv:
 
     sxiv -q * >/dev/null 2>&1
 
+Sample (fish shell) script to fuzzy find files in fzy and open with xdg-open:
+
+    #!/usr/bin/env sh
+
+    xdg-open (find -type f | fzy) > /dev/null 2>&1
+
 Press <kbd>R</kbd> to run the script in the current directory.
 
 #### change dir color