mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Example to integrate fzy using custom script
This commit is contained in:
parent
ff3031ade0
commit
41532ef002
10
README.md
10
README.md
|
@ -418,9 +418,9 @@ Note that you may want to keep quotes disabled in this case.
|
||||||
|
|
||||||
#### run a custom script
|
#### 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:
|
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
|
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.
|
Press <kbd>R</kbd> to run the script in the current directory.
|
||||||
|
|
||||||
#### change dir color
|
#### change dir color
|
||||||
|
|
Loading…
Reference in a new issue