My build of nnn with minor changes
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

302 satır
7.8 KiB

  1. .Dd Oct 19, 2018
  2. .Dt NNN 1
  3. .Os
  4. .Sh NAME
  5. .Nm nnn
  6. .Nd the missing terminal file manager 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 noice (http://git.2f30.org/noice/) 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 manager 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 as listed below.
  30. .Pp
  31. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  32. .It Ic [Up], k, ^P
  33. Move to previous entry
  34. .It Ic [Down], j, ^N
  35. Move to next entry
  36. .It Ic [PgUp], ^U
  37. Scroll up half a page
  38. .It Ic [PgDn], ^D
  39. Scroll down half a page
  40. .It Ic [Home], g, ^, ^A
  41. Move to the first entry
  42. .It Ic [End], G, $, ^E
  43. Move to the last entry
  44. .It Ic [Right], [Enter], l, ^M
  45. Open file or enter directory
  46. .It Ic [Left], [Backspace], h, ^H
  47. Back up one directory level
  48. .It Ic ^O
  49. Open with a custom application
  50. .It Ic [Insert], ^I
  51. Toggle navigate-as-you-type mode
  52. .It Ic ~
  53. Change to the HOME directory
  54. .It Ic &
  55. Change to initial directory
  56. .It Ic \-
  57. Change to the last visited directory
  58. .It Ic /
  59. Change filter (more information below)
  60. .It Ic ^/
  61. Search directory in desktop search tool
  62. .It Ic \&.
  63. Toggle show hidden . (dot) files
  64. .It Ic ^B
  65. Show bookmark key prompt
  66. .It Ic b
  67. Pin current directory
  68. .It Ic ^V
  69. Visit pinned directory
  70. .It Ic c
  71. Show change directory prompt
  72. .It Ic d
  73. Toggle detail view
  74. .It Ic D
  75. Show current file details screen
  76. .It Ic m
  77. Show brief media info
  78. .It Ic M
  79. Show full media info
  80. .It Ic n
  81. Create a new file or directory
  82. .It Ic ^R
  83. Rename selected entry
  84. .It Ic r
  85. Open directory in vidir
  86. .It Ic s
  87. Toggle sort by file size
  88. .It Ic S
  89. Toggle sort by apparent size
  90. .It Ic ^J
  91. Toggle disk usage analyzer mode
  92. .It Ic t
  93. Toggle sort by time modified
  94. .It Ic \&!, ^]
  95. Spawn SHELL in PWD (fallback sh)
  96. .It Ic R
  97. Run a custom script
  98. .It Ic e
  99. Open current entry in EDITOR (fallback vi)
  100. .It Ic o
  101. Open directory in NNN_DE_FILE_MANAGER
  102. .It Ic p
  103. Open current entry in PAGER (fallback less)
  104. .It Ic f
  105. Archive current entry
  106. .It Ic F
  107. List files in archive
  108. .It Ic ^F
  109. Extract archive in current directory
  110. .It Ic Space, ^K
  111. Invoke file path copier
  112. .It Ic ^Y
  113. Toggle multiple file path copy mode
  114. .It Ic y
  115. Show copy buffer
  116. .It Ic ^T
  117. Toggle path quote
  118. .It Ic ^L
  119. Force a redraw, clear prompt
  120. .It Ic Esc
  121. Exit prompt
  122. .It Ic L
  123. Lock terminal (Linux only)
  124. .It Ic \&?
  125. Toggle help and settings screen
  126. .It Ic Q, ^G
  127. Quit and change directory
  128. .It Ic q, ^X
  129. Quit
  130. .El
  131. .Pp
  132. Backing up one directory level will set the cursor position at the
  133. directory you came out of.
  134. .Pp
  135. Help & settings, file details, media info and archive listing are shown in the
  136. PAGER. Please use the PAGER-specific keys in these screens.
  137. .Pp
  138. .Nm
  139. supports the following options:
  140. .Pp
  141. .Fl "b key"
  142. specify bookmark key to open
  143. .Pp
  144. .Fl "c N"
  145. specify dir color (default blue), disables if N>7
  146. 0-black, 1-red, 2-green, 3-yellow, 4-blue, 5-magenta, 6-cyan, 7-white
  147. .Pp
  148. .Fl e
  149. use exiftool instead of mediainfo
  150. .Pp
  151. .Fl i
  152. start in navigate-as-you-type mode
  153. .Pp
  154. .Fl l
  155. start in light mode (fewer details)
  156. .Pp
  157. .Fl "p nlay"
  158. path to custom nlay
  159. .Pp
  160. .Fl S
  161. start in disk usage analyzer mode
  162. .Pp
  163. .Fl v
  164. show version and exit
  165. .Pp
  166. .Fl h
  167. show program help and exit
  168. .Sh CONFIGURATION
  169. .Nm
  170. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on OS X) as the desktop
  171. opener. It invokes
  172. .Pa nlay
  173. to run desktop search utility or screensaver. Read more on
  174. .Pa nlay
  175. at:
  176. .br
  177. .Em https://github.com/jarun/nnn/wiki/all-about-nlay
  178. .Pp
  179. There is no configuration file. Settings work on environment variables. Please
  180. refer to the ENVIRONMENT section below.
  181. .Pp
  182. Configuring
  183. .Nm
  184. to change to the last visited directory on quit requires shell integration in a
  185. few easy steps. Please visit the project page (linked below) for the
  186. instructions.
  187. .Sh FILTERS
  188. Filters support regexes to instantly (search-as-you-type) list the matching
  189. entries in the current directory.
  190. .Pp
  191. There are 3 ways to reset a filter:
  192. .Pp
  193. (1) pressing \fI^L\fR (at the new/rename prompt \fI^L\fR followed by \fIEnter\fR
  194. discards all changes and exits prompt),
  195. .br
  196. (2) a search with no matches or
  197. .br
  198. (3) an extra backspace at the filter prompt (like vi).
  199. .Pp
  200. Common use cases:
  201. .Pp
  202. (1) To list all matches starting with the filter expression, start the expression
  203. with a '^' (caret) symbol.
  204. .br
  205. (2) Type '\\.mkv' to list all MKV files.
  206. .br
  207. (3) Use '.*' to match any character (\fIsort of\fR fuzzy search).
  208. .Pp
  209. If
  210. .Nm
  211. is invoked as root or the environment variable \fBNNN_SHOW_HIDDEN\fR is set the default filter will also match hidden files.
  212. .Pp
  213. In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
  214. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  215. .br
  216. In case of only one match and it's a directory, `nnn` auto selects the directory and enters it in this mode.
  217. .Sh MULTI-COPY MODE
  218. The absolute path of a single file can be copied to clipboard by pressing \fI^K\fR if
  219. NNN_COPIER is set (see ENVIRONMENT section below).
  220. .Pp
  221. To copy multiple file paths the multi-copy mode should be enabled using \fI^Y\fR.
  222. In this mode it's possible to
  223. .Pp
  224. (1) select multiple files one by one by pressing \fI^K\fR on each entry; or,
  225. .br
  226. (2) navigate to another file in the same directory to select a range of files.
  227. .Pp
  228. Pressing \fI^Y\fR again copies the paths to clipboard and exits the multi-copy mode.
  229. .Sh ENVIRONMENT
  230. The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
  231. when dealing with the !, e and p commands respectively.
  232. .Pp
  233. \fBNNN_BMS:\fR bookmark string as \fIkey:location\fR pairs (max 10) separated by
  234. \fI;\fR:
  235. .Bd -literal
  236. export NNN_BMS='doc:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  237. .Ed
  238. The bookmark prompt also understands the \fI~\fR (HOME), \fI-\fR (last visited directory) and \fI&\fR shortcuts.
  239. .Pp
  240. \fBNNN_USE_EDITOR:\fR use EDITOR (preferably CLI, fallback vi) to handle text
  241. files.
  242. .Bd -literal
  243. export NNN_USE_EDITOR=1
  244. .Ed
  245. .Pp
  246. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  247. directory with. E.g.:
  248. .Bd -literal
  249. export NNN_DE_FILE_MANAGER=thunar
  250. .Ed
  251. .Pp
  252. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal
  253. screensaver.
  254. .Pp
  255. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  256. .Bd -literal
  257. -------------------------------------
  258. #!/bin/sh
  259. # comment the next line to convert newlines to spaces
  260. IFS=
  261. echo -n $1 | xsel --clipboard --input
  262. -------------------------------------
  263. .Ed
  264. .Pp
  265. \fBNNN_NO_X:\fR X display is unavailable. Copy file path(s) to \fI$HOME/.nnncp\fR.
  266. .Bd -literal
  267. export NNN_NO_X=1
  268. .Ed
  269. .Pp
  270. \fBNNN_QUOTE_ON:\fR wrap copied paths within single quotes. Useful for pasting
  271. names in the shell. Note that the filename is not escaped. So copying may still fail
  272. for filenames having quote(s) in them.
  273. .Pp
  274. \fBNNN_SCRIPT:\fR path to a custom script to invoke with currently selected file name as argument 1.
  275. .Bd -literal
  276. export NNN_SCRIPT=/usr/local/bin/nscript
  277. .Ed
  278. .Pp
  279. \fBNNN_MULTISCRIPT:\fR run multiple custom scripts.
  280. .Bd -literal
  281. export NNN_MULTISCRIPT=1
  282. .Ed
  283. .Pp
  284. \fBNNN_SHOW_HIDDEN:\fR show hidden files.
  285. .Bd -literal
  286. export NNN_SHOW_HIDDEN=1
  287. .Ed
  288. .Pp
  289. \fBNNN_NO_AUTOSELECT:\fR Disable directory auto-selection in \fInavigate-as-you-type\fR mode.
  290. .Bd -literal
  291. export export NNN_NO_AUTOSELECT=1
  292. .Ed
  293. .Sh KNOWN ISSUES
  294. If you are using urxvt you might have to set backspace key to DEC.
  295. .Sh AUTHORS
  296. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  297. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  298. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  299. .Sh HOME
  300. .Em https://github.com/jarun/nnn