My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.md 1.2 KiB

12345678910111213141516171819202122232425262728293031
  1. ## nlay
  2. `nlay` (*NnnpLAY*) is a customizable media type or action handler
  3. ### Usage
  4. `nlay` is not used by `nnn` now. However, the bash script can be used to run desktop search utility or screensaver:
  5. nlay file type
  6. file: absolute path to file ("" for an action)
  7. type: type of media or action
  8. ### Default apps
  9. * gnome-search-tool, catfish - file search
  10. * vlock - terminal screensaver (alternatives - cmatrix, termsaver)
  11. ### Perks
  12. - simple to modify (extensive in-file notes, comments and indicative code)
  13. - handle files by category (e.g. plaintext, search, screensaver)
  14. - support for multiple apps by order of preference
  15. - run app in the foreground or silently detached in the background
  16. - optionally add app arguments
  17. ### Tips to modify
  18. - set `app=` in any category to change the player
  19. - set `opts=` to use app options
  20. - toggle `bg=` to enable or disable running app silently (`stdout` and `stderr` redirected to `/dev/null`) in background. E.g., vim (CLI) should be verbose and in the foreground while Sublime Text (GUI) can be started silently in the background.
  21. - enable the commented out code under `ENABLE_FILE_TYPE_HANDLING` to handle specific file extensions e.g. use a different app than the one used for the category.