My build of nnn with minor changes
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

365 Zeilen
9.8 KiB

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