My build of nnn with minor changes
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

5 年前
5 年前
12345678910111213141516171819202122232425262728293031323334353637
  1. .Dd Mar 14, 2018
  2. .Dt NLAY 1
  3. .Os
  4. .Sh NAME
  5. .Nm nlay
  6. .Nd a bash script to play files in different apps by file type or run some actions.
  7. .Sh SYNOPSIS
  8. .Nm
  9. file/path type/action
  10. .Sh DESCRIPTION
  11. .Nm
  12. is shipped with \fInnn\fR to deliver a level of flexibility to users to choose their own apps when running some actions, run some commands or custom scripts. It has provisions to handle text files too. However, the capability is not used in the latest releases. Now
  13. .Nm
  14. is invoked to run a desktop search (\fIgnome-search-tool\fR or \fIcatfish\fR) or screen locker (\fIvlock\fR or \fIbashlock\fR or \fIlock\fR) utility. However,
  15. .Nm
  16. can run independently and can be highly customized for personal usage.
  17. .Pp
  18. .Nm
  19. supports the following options:
  20. .Pp
  21. "file/path"
  22. The first argument can be the file or path to pass as an argument to the app. It can also be an empty string e.g., while locking the terminal.
  23. .Pp
  24. "type/action"
  25. This can be any of the strings \fItext\fR, \fIsearch\fR, \fIscript\fR or \fIlocker\fR.
  26. .Sh USAGE
  27. .Pp
  28. .Bd -literal
  29. $ nlay info.txt text
  30. $ nlay . search
  31. $ nlay ~/script.sh script
  32. $ nlay "" locker
  33. .Ed
  34. .Sh AUTHOR
  35. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  36. .Sh HOME
  37. .Em https://github.com/jarun/nnn