My build of nnn with minor changes
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

348 líneas
9.4 KiB

  1. .Dd Jan 01, 2019
  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
  11. .Op Ar -e
  12. .Op Ar -i
  13. .Op Ar -l
  14. .Op Ar -p file
  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 with auto select, disk usage analyzer mode, bookmarks, contexts, application launcher, familiar navigation shortcuts, subshell spawning 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. .Sh KEYBINDS
  28. .Pp
  29. NAVIGATION
  30. .Pp
  31. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  32. .It Ic [Up], k
  33. Move to previous entry
  34. .It Ic [Down], j
  35. Move to next entry
  36. .It Ic [Left], h
  37. Go to parent directory
  38. .It Ic [Right], [Enter], l
  39. Open file or enter directory
  40. .It Ic [PgUp], ^U
  41. Scroll up half a page
  42. .It Ic [PgDn], ^D
  43. Scroll down half a page
  44. .It Ic [Home], g, ^A
  45. Move to the first entry
  46. .It Ic [End], G, ^E
  47. Move to the last entry
  48. .It Ic ~
  49. Change to the HOME directory
  50. .It Ic &
  51. Change to initial directory
  52. .It Ic \-
  53. Change to the last visited directory
  54. .It Ic \&.
  55. Toggle show hidden . (dot) files
  56. .It Ic /
  57. Change filter (more information below)
  58. .It Ic [Insert], ^T
  59. Toggle navigate-as-you-type mode
  60. .It Ic b
  61. Pin current directory
  62. .It Ic ^B
  63. Visit pinned directory
  64. .It Ic d
  65. Toggle detail view
  66. .It Ic Tab, ^I
  67. Next context, ask to create if none
  68. .It Ic `, ^/
  69. Leader key
  70. .It Ic N, LeaderN
  71. Switch to context N
  72. .It Ic Esc
  73. Exit prompt
  74. .It Ic ^L
  75. Force a redraw, clear prompt
  76. .It Ic q
  77. Quit the current context
  78. .It Ic ^G
  79. Quit and change directory
  80. .It Ic Q, ^Q
  81. Quit
  82. .It Ic \&?
  83. Help and configuration screen
  84. .El
  85. .Pp
  86. FILES
  87. .Pp
  88. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  89. .It Ic ^O
  90. Open with an application (takes 1 combined argument)
  91. .It Ic n
  92. Create a new file, directory or link(s) to selection
  93. .It Ic D
  94. Show entry details
  95. .It Ic ^R
  96. Rename selected entry
  97. .It Ic r
  98. Open directory in vidir
  99. .It Ic Y, ^Y
  100. Toggle selection mode
  101. .It Ic Y
  102. Select all entries in dir
  103. .It Ic Space, ^K
  104. Copy entry absolute path
  105. .It Ic y
  106. Show selection list
  107. .It Ic P
  108. Copy files from selection
  109. .It Ic V
  110. Move files from selection
  111. .It Ic X
  112. Delete files from selection
  113. .It Ic ^X
  114. Delete entry
  115. .It Ic f
  116. Archive files
  117. .It Ic F
  118. List files in archive
  119. .It Ic ^F
  120. Extract archive in current directory
  121. .It Ic m, M
  122. Show brief/full media info
  123. .It Ic e
  124. Open entry in EDITOR (fallback vi)
  125. .It Ic p
  126. Open entry in PAGER (fallback less)
  127. .El
  128. .Pp
  129. ORDER TOGGLES
  130. .Pp
  131. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  132. .It Ic ^J
  133. Toggle disk usage analyzer mode
  134. .It Ic S
  135. Toggle sort by apparent size
  136. .It Ic t
  137. Toggle sort by time modified
  138. .It Ic s
  139. Toggle sort by file size
  140. .El
  141. .Pp
  142. MISC
  143. .Pp
  144. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  145. .It Ic \&!, ^]
  146. Spawn SHELL in current directory (fallback sh)
  147. .It Ic C
  148. Execute entry
  149. .It Ic R, ^V
  150. Run or pick a script to run
  151. .It Ic L
  152. Lock terminal
  153. .It Ic ^N
  154. Take note
  155. .It Ic ^P
  156. Show command prompt
  157. .El
  158. .Pp
  159. Backing up one directory level will set the cursor position at the
  160. directory you came out of.
  161. .Pp
  162. Help & settings, file details, media info and archive listing are shown in the
  163. PAGER. Please use the PAGER-specific keys in these screens.
  164. .Sh OPTIONS
  165. .Pp
  166. .Nm
  167. supports the following options:
  168. .Pp
  169. .Fl "b key"
  170. specify bookmark key to open
  171. .Pp
  172. .Fl C
  173. disable directory color
  174. .Pp
  175. .Fl e
  176. use exiftool instead of mediainfo
  177. .Pp
  178. .Fl i
  179. start in navigate-as-you-type mode
  180. .Pp
  181. .Fl l
  182. start in light mode (fewer details)
  183. .Pp
  184. .Fl "p file"
  185. copy (or \fIpick\fR) selection to file, or stdout if file='-'
  186. .Pp
  187. .Fl S
  188. start in disk usage analyzer mode
  189. .Pp
  190. .Fl v
  191. show version and exit
  192. .Pp
  193. .Fl h
  194. show program help and exit
  195. .Sh CONFIGURATION
  196. .Nm
  197. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on macOS) as the desktop opener.
  198. .Pp
  199. There is no configuration file. Settings work on environment variables. Please
  200. refer to the ENVIRONMENT section below.
  201. .Pp
  202. Configuring
  203. .Nm
  204. to change to the last visited directory on quit requires shell integration in a
  205. few easy steps. Please visit the project page (linked below) for the
  206. instructions.
  207. .Sh CONTEXTS
  208. Contexts serve the purpose of exploring multiple directories simultaneously. 4 contexts
  209. are available. The status of the contexts are shown in the top left corner:
  210. .Pp
  211. - the current context is in reverse
  212. .br
  213. - other used contexts are underlined
  214. .br
  215. - rest are unused
  216. .Pp
  217. To switch to a context press the Leader key followed by the context number (1-4).
  218. .Pp
  219. The first time a context is entered, it copies the state of the last visited context. Each context remembers its start directory and last visited directory.
  220. .Pp
  221. When a context is quit, the next active context is selected. If the last active context is quit, the program quits.
  222. .Sh FILTERS
  223. Filters support regexes by default to instantly (search-as-you-type) list the matching
  224. entries in the current directory.
  225. .Pp
  226. Common use cases:
  227. .Pp
  228. (1) To list all matches starting with the filter expression, start the expression
  229. with a '^' (caret) symbol.
  230. .br
  231. (2) Type '\\.mkv' to list all MKV files.
  232. .br
  233. (3) Use '.*' to match any character (\fIsort of\fR fuzzy search).
  234. .Pp
  235. To filter entries by substring match export the environment variable \fBNNN_PLAIN_FILTER\fR.
  236. .Pp
  237. If
  238. .Nm
  239. is invoked as root or the environment variable \fBNNN_SHOW_HIDDEN\fR is set the default filter will also match hidden files.
  240. .Pp
  241. In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
  242. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  243. .br
  244. In case of only one match and it's a directory, `nnn` auto selects the directory and enters it in this mode.
  245. .Sh SELECTION MODE
  246. The absolute path of a single file can be copied to clipboard by pressing \fI^K\fR if
  247. NNN_COPIER is set (see ENVIRONMENT section below).
  248. .Pp
  249. To copy multiple file paths the selection mode should be enabled using \fI^Y\fR.
  250. In this mode it's possible to
  251. .Pp
  252. (1) cherry-pick individual files one by one by pressing <kbd>^K</kbd> on each entry (works across directories and contexts); or,
  253. .br
  254. (2) navigate to another file in the same directory to select a range of files.
  255. .Pp
  256. Pressing \fI^Y\fR again copies the paths and exits the selection mode. The files in the list can now
  257. be copied, moved or removed using respective keyboard shortcuts.
  258. .Pp
  259. To list the file paths copied to memory press \fIy\fR.
  260. .Sh ENVIRONMENT
  261. The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
  262. when dealing with the !, e and p commands respectively. A single combination to arguments is supported for SHELL and PAGER.
  263. .Pp
  264. \fBNNN_BMS:\fR bookmark string as \fIkey_char:location\fR pairs (max 10) separated by
  265. \fI;\fR:
  266. .Bd -literal
  267. export NNN_BMS='d:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  268. NOTE: Bookmark keys should be single-character to use them in combination with the Leader key.
  269. .Ed
  270. .Pp
  271. \fBNNN_OPENER:\fR specify a custom file opener.
  272. .Bd -literal
  273. export NNN_OPENER=mimeopen
  274. .Ed
  275. .Pp
  276. \fBNNN_CONTEXT_COLORS:\fR string of color codes for each context, e.g.:
  277. .Bd -literal
  278. export NNN_CONTEXT_COLORS='1234'
  279. codes: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white
  280. .Ed
  281. .Pp
  282. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal locker (default: disabled).
  283. .Pp
  284. \fBNNN_COPIER:\fR system clipboard copier script.
  285. .Bd -literal
  286. NOTE: File paths are copied to the tmp file \fBDIR/.nnncp\fR, where 'DIR' (by priority) is:
  287. \fI$HOME\fR or, \fI$TMPDIR\fR or, \fI/tmp\fR.
  288. The path is shown in the help and configuration screen.
  289. .Ed
  290. .Pp
  291. \fBNNN_SCRIPT:\fR \fIabsolute\fR path to a directory to select a script from or a single script to invoke with currently selected file name as argument 1.
  292. .Bd -literal
  293. export NNN_SCRIPT=/home/user/scripts
  294. OR
  295. export NNN_SCRIPT=/usr/local/bin/nscript.sh
  296. .Ed
  297. .Pp
  298. \fBNNN_NOTE:\fR \fIabsolute\fR path to a note file.
  299. .Bd -literal
  300. export NNN_NOTE='/home/user/.mynotes'
  301. .Ed
  302. .Pp
  303. \fBNNN_TMPFILE:\fR when cd on quit is pressed, the absolute path of the current open directory is written to this file. A wrapper script can read this file and cd into it once the program quits.
  304. .Bd -literal
  305. export NNN_TMPFILE=/tmp/nnn
  306. .Ed
  307. .Pp
  308. \fBNNN_USE_EDITOR:\fR use EDITOR (VISUAL takes preference, preferably CLI, fallback vi) to handle text
  309. files.
  310. .Bd -literal
  311. export NNN_USE_EDITOR=1
  312. .Ed
  313. .Pp
  314. \fBNNN_SHOW_HIDDEN:\fR show hidden files.
  315. .Bd -literal
  316. export NNN_SHOW_HIDDEN=1
  317. .Ed
  318. .Pp
  319. \fBNNN_NO_AUTOSELECT:\fR disable directory auto-selection in \fInavigate-as-you-type\fR mode.
  320. .Bd -literal
  321. export NNN_NO_AUTOSELECT=1
  322. .Ed
  323. .Pp
  324. \fBNNN_RESTRICT_NAV_OPEN:\fR disable file open on \fBRight\fR or \fBl\fR keys (\fBEnter\fR opens files).
  325. .Bd -literal
  326. export NNN_RESTRICT_NAV_OPEN=1
  327. .Ed
  328. .Pp
  329. \fBNNN_RESTRICT_0B:\fR restrict opening 0-byte files due to unexpected behaviour; use \fIedit\fR or \fIopen with\fR to open the file.
  330. .Bd -literal
  331. export NNN_RESTRICT_0B=1
  332. .Ed
  333. .Pp
  334. \fBNNN_PLAIN_FILTER:\fR use substring match in filter mode.
  335. .Bd -literal
  336. export NNN_PLAIN_FILTER=1
  337. .Ed
  338. .Sh KNOWN ISSUES
  339. If you are using urxvt you might have to set backspace key to DEC.
  340. .Sh AUTHORS
  341. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  342. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  343. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  344. .Sh HOME
  345. .Em https://github.com/jarun/nnn