My build of nnn with minor changes
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

nnn.1 5.8 KiB

10 år sedan
10 år sedan
7 år sedan
7 år sedan
10 år sedan
10 år sedan
10 år sedan
10 år sedan
10 år sedan
7 år sedan
7 år sedan
10 år sedan
10 år sedan
10 år sedan
10 år sedan
10 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. .Dd Dec 25, 2017
  2. .Dt NNN 1
  3. .Os
  4. .Sh NAME
  5. .Nm nnn
  6. .Nd the missing terminal file browser for X
  7. .Sh SYNOPSIS
  8. .Nm
  9. .Op Ar -b key
  10. .Op Ar -c N
  11. .Op Ar -e
  12. .Op Ar -i
  13. .Op Ar -l
  14. .Op Ar -p nlay
  15. .Op Ar -S
  16. .Op Ar -v
  17. .Op Ar -h
  18. .Op Ar PATH
  19. .Sh DESCRIPTION
  20. .Nm
  21. (Noice is Not Noice) is a performance-optimized, feature-packed fork of the noice terminal file browser with seamless desktop integration, simplified navigation, \fInavigate-as-you-type\fR mode, bookmarks, disk usage analyzer mode, comprehensive file details and much more. It remains a simple and efficient file browser that stays out of your way.
  22. .Pp
  23. .Nm
  24. opens the current working directory by default if
  25. .Ar PATH
  26. is not specified.
  27. .Pp
  28. .Nm
  29. supports both vi-like and emacs-like key bindings in the default
  30. configuration. The default key bindings are listed below.
  31. .Pp
  32. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  33. .It Ic [Up], k, ^P
  34. Move to previous entry
  35. .It Ic [Down], j, ^N
  36. Move to next entry
  37. .It Ic [PgUp], ^U
  38. Scroll up half a page
  39. .It Ic [PgDn], ^D
  40. Scroll down half a page
  41. .It Ic [Home], g, ^, ^A
  42. Move to the first entry
  43. .It Ic [End], G, $, ^E
  44. Move to the last entry
  45. .It Ic [Right], [Enter], l, ^M
  46. Open file or enter directory
  47. .It Ic [Left], [Backspace], h, ^H
  48. Back up one directory level
  49. .It Ic ^O
  50. Open with a custom application
  51. .It Ic [Insert]
  52. Toggle navigate-as-you-type mode
  53. .It Ic ~
  54. Change to the HOME directory
  55. .It Ic &
  56. Change to initial directory
  57. .It Ic -
  58. Change to the last visited directory
  59. .It Ic /
  60. Change filter (more information below)
  61. .It Ic ^/
  62. Search directory in desktop search tool
  63. .It Ic \&.
  64. Toggle hide .dot files
  65. .It Ic b
  66. Show bookmark key prompt
  67. .It Ic ^B
  68. Pin current directory
  69. .It Ic ^V
  70. Visit pinned directory
  71. .It Ic c
  72. Show change directory prompt
  73. .It Ic d
  74. Toggle detail view
  75. .It Ic D
  76. Show current file details screen
  77. .It Ic m
  78. Show brief media info
  79. .It Ic M
  80. Show full media info
  81. .It Ic n
  82. Create a new file or directory
  83. .It Ic ^R
  84. Rename selected entry
  85. .It Ic s
  86. Toggle sort by file size
  87. .It Ic S
  88. Toggle disk usage analyzer mode
  89. .It Ic t
  90. Toggle sort by time modified
  91. .It Ic \&!
  92. Spawn SHELL in PWD (fallback sh)
  93. .It Ic e
  94. Open current entry in EDITOR (fallback vi)
  95. .It Ic o
  96. Open directory in NNN_DE_FILE_MANAGER
  97. .It Ic p
  98. Open current entry in PAGER (fallback less)
  99. .It Ic F
  100. List files in archive
  101. .It Ic ^X
  102. Extract archive in current directory
  103. .It Ic ^K
  104. Invoke file path copier
  105. .It Ic ^L
  106. Force a redraw, clear rename or filter prompt
  107. .It Ic \&?
  108. Toggle help and settings screen
  109. .It Ic Q
  110. Quit and change directory
  111. .It Ic q, ^Q
  112. Quit
  113. .El
  114. .Pp
  115. Backing up one directory level will set the cursor position at the
  116. directory you came out of.
  117. .Pp
  118. Help & settings, file details, media info and archive listing are shown in the
  119. PAGER. Please use the PAGER-specific keys in these screens.
  120. .Pp
  121. .Nm
  122. supports the following options:
  123. .Pp
  124. .Fl "b key"
  125. specify bookmark key to open
  126. .Pp
  127. .Fl "c N"
  128. specify dir color (default blue), disables if N>7
  129. 0-black, 1-red, 2-green, 3-yellow, 4-blue, 5-magenta, 6-cyan, 7-white
  130. .Pp
  131. .Fl e
  132. use exiftool instead of mediainfo
  133. .Pp
  134. .Fl i
  135. start in navigate-as-you-type mode
  136. .Pp
  137. .Fl l
  138. start in light mode (fewer details)
  139. .Pp
  140. .Fl "p nlay"
  141. path to custom nlay
  142. .Pp
  143. .Fl S
  144. start in disk usage analyzer mode
  145. .Pp
  146. .Fl v
  147. show version and exit
  148. .Pp
  149. .Fl h
  150. show program help and exit
  151. .Sh CONFIGURATION
  152. .Nm
  153. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on OS X) as the desktop
  154. opener. It invokes
  155. .Pa nlay
  156. to run desktop search utility or screensaver. Read more on
  157. .Pa nlay
  158. at:
  159. .br
  160. .Em https://github.com/jarun/nnn/wiki/all-about-nlay
  161. .Pp
  162. There is no configuration file. Settings work on environment variables. Please
  163. refer to the ENVIRONMENT section below.
  164. .Pp
  165. Configuring
  166. .Nm
  167. to change to the last visited directory on quit requires shell integration in a
  168. few easy steps. Please visit the project page (linked below) for the
  169. instructions.
  170. .Sh FILTERS
  171. Filters support regexes to instantly (search-as-you-type) list the matching
  172. entries in the current directory.
  173. .Pp
  174. There are 3 ways to reset a filter: \fI^L\fR, a search with no matches or an
  175. extra backspace at the filter prompt (like vi).
  176. .Pp
  177. Common examples: If you want to list all matches starting with the filter
  178. expression, start the expression with a
  179. .Pa ^
  180. (caret) symbol. Type
  181. .Pa \.mkv
  182. to list all MKV files.
  183. .Pp
  184. If
  185. .Nm
  186. is invoked as root the default filter will also match hidden files.
  187. .Pp
  188. In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
  189. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  190. .Sh ENVIRONMENT
  191. The SHELL, EDITOR and PAGER environment variables take precedence
  192. when dealing with the !, e and p commands respectively.
  193. .Pp
  194. \fBNNN_BMS:\fR bookmark string as \fIkey:location\fR pairs (max 10) separated by
  195. \fI;\fR:
  196. .Bd -literal
  197. export NNN_BMS='doc:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  198. .Ed
  199. .Pp
  200. \fBNNN_USE_EDITOR:\fR use EDITOR (preferably CLI, fallback vi) to handle text
  201. files.
  202. .Bd -literal
  203. export NNN_USE_EDITOR=1
  204. .Ed
  205. .Pp
  206. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  207. directory with. E.g.:
  208. .Bd -literal
  209. export NNN_DE_FILE_MANAGER=thunar
  210. .Ed
  211. .Pp
  212. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal
  213. screensaver.
  214. .Pp
  215. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  216. .Bd -literal
  217. -------------------------------------
  218. #!/bin/sh
  219. echo -n $1 | xsel --clipboard --input
  220. -------------------------------------
  221. .Ed
  222. .Pp
  223. \fBNNN_NOWAIT:\fR necessary only if nnn blocks while a file is open.
  224. .Bd -literal
  225. export NNN_NOWAIT=1
  226. .Ed
  227. .Sh KNOWN ISSUES
  228. If you are using urxvt you might have to set backspacekey to DEC.
  229. .Sh AUTHORS
  230. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  231. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  232. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  233. .Sh HOME
  234. .Em https://github.com/jarun/nnn