README.md | 17 +++++++++++------ diff --git a/README.md b/README.md index 2c399b10bf0a26be2808a59ec4066ac6a2d550f3..8b6fc9d600638f8ace938f4e6c6ecce712f88997 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ `nnn` is probably the [fastest and most resource-sensitive](#performance) (with all its capabilities) file browser you have ever used. It's extremely flexible too - integrates with your DE and favourite GUI utilities, works with the desktop opener, supports bookmarks, has smart navigation shortcuts, [navigate-as-you-type](#navigate-as-you-type-mode) mode, disk usage analyzer mode, comprehensive file details and much more. `nnn` was initially forked from [noice](http://git.2f30.org/noice/) but is significantly [different](https://github.com/jarun/nnn/wiki/nnn-vs.-noice) today. 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... +`nnn` supports as many scripts as you want to run! So you can [integrate utilities](https://github.com/jarun/nnn#sample-scripts) like sxiv (to view images in a directory) or fzy (to fuzzy find files in a directory tree) easily. + Have fun with it! Missing a feature? Want to contribute? Head to the rolling [ToDo list](https://github.com/jarun/nnn/issues/58). *Love smart and efficient terminal utilities? Explore my repositories. Buy me a cup of coffee if they help you.* @@ -60,6 +62,7 @@ - [cd on quit](#cd-on-quit) - [copy file paths to clipboard](#copy-file-paths-to-clipboard) - [copy file paths when X is missing](#copy-file-paths-when-x-is-missing) - [run custom scripts](#run-custom-scripts) + - [sample scripts](#sample-scripts) - [change dir color](#change-dir-color) - [file copy, move, delete](#file-copy-move-delete) - [boost chdir prompt](#boost-chdir-prompt) @@ -438,17 +441,19 @@ and so on... Type the correct suffix when prompted on pressing the keybind R. To use the base script (`NNN_SCRIPT`), just press Enter. -Sample script to open image files in current dir in sxiv: +##### sample scripts - #!/usr/bin/env sh +- Open image files in current dir in **sxiv**: - sxiv -q * >/dev/null 2>&1 + #!/usr/bin/env sh -Sample (fish shell) script to fuzzy find files in fzy and open with xdg-open: + sxiv -q * >/dev/null 2>&1 - #!/usr/bin/env sh +- Fuzzy find files in **fzy** and open with xdg-open: + + #!/usr/bin/env sh - xdg-open (find -type f | fzy) >/dev/null 2>&1 + xdg-open $(find -type f | fzy) >/dev/null 2>&1 #### change dir color