My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

209 lines
6.8 KiB

  1. .Dd May 27, 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 -p file
  15. .Op Ar -s
  16. .Op Ar -S
  17. .Op Ar -v
  18. .Op Ar -w
  19. .Op Ar -h
  20. .Op Ar PATH
  21. .Sh DESCRIPTION
  22. .Nm
  23. (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.
  24. .Pp
  25. .Nm
  26. opens the current working directory by default if
  27. .Ar PATH
  28. is not specified.
  29. .Sh KEYBINDS
  30. .Pp
  31. Press \fB?\fR in
  32. .Nm
  33. to see the list of keybinds.
  34. .Sh OPTIONS
  35. .Pp
  36. .Nm
  37. supports the following options:
  38. .Pp
  39. .Fl "b key"
  40. specify bookmark key to open
  41. .Pp
  42. .Fl d
  43. show hidden files
  44. .Pp
  45. .Fl e
  46. use exiftool instead of mediainfo
  47. .Pp
  48. .Fl i
  49. start in navigate-as-you-type mode
  50. .Pp
  51. .Fl l
  52. start in light mode (fewer details)
  53. .Pp
  54. .Fl "p file"
  55. copy (or \fIpick\fR) selection to file, or stdout if file='-'
  56. .Pp
  57. .Fl s
  58. use substring match for filters instead of regex
  59. .Pp
  60. .Fl S
  61. start in disk usage analyzer mode
  62. .Pp
  63. .Fl v
  64. show version and exit
  65. .Pp
  66. .Fl w
  67. wild load - entries unsorted on directory load
  68. .Pp
  69. .Fl h
  70. show program help and exit
  71. .Sh CONFIGURATION
  72. .Nm
  73. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on macOS) as the desktop opener.
  74. .Pp
  75. There is no configuration file. Associated files are stored in \fB${XDG_CONFIG_HOME:-$HOME/.config}/nnn/\fR. Settings work on environment variables. See ENVIRONMENT section below.
  76. .Pp
  77. Configuring
  78. .Nm
  79. to change to the last visited directory on quit requires shell integration in a
  80. few easy steps. Look up NNN_TMPFILE in the ENVIRONMENT section below.
  81. .Sh CONTEXTS
  82. Contexts serve the purpose of exploring multiple directories simultaneously. 4 contexts
  83. are available. The status of the contexts are shown in the top left corner:
  84. .Pp
  85. - the current context is in reverse
  86. .br
  87. - other active contexts are underlined
  88. .br
  89. - rest are inactive
  90. .Pp
  91. To switch to a context press the Leader key followed by the context number (1-4).
  92. .Pp
  93. The first time a context is entered, it copies the state of the last visited context. Each context remembers its last visited directory.
  94. .Pp
  95. When a context is quit, the next active context is selected. If the last active context is quit, the program quits.
  96. .Pp
  97. Each context can have its own directory color specified. See ENVIRONMENT section below.
  98. .Sh FILTERS
  99. Filters support regexes (default) to instantly (search-as-you-type) list the matching
  100. entries in the current directory.
  101. .Pp
  102. Common use cases:
  103. .Pp
  104. (1) To list all matches starting with the filter expression, start the expression
  105. with a '^' (caret) symbol.
  106. .br
  107. (2) Type '\\.mkv' to list all MKV files.
  108. .br
  109. (3) Use '.*' to match any character (\fIsort of\fR fuzzy search).
  110. .Pp
  111. There is a program option to filter entries by substring match instead of regex.
  112. .Pp
  113. In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
  114. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  115. .br
  116. When there's a unique match and it's a directory, `nnn` auto selects the directory and enters it in this mode.
  117. .br
  118. The \fIwild load\fR option 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.
  119. .Sh SELECTION
  120. Use \fI^K\fR to select the file under the cursor.
  121. .Pp
  122. To select multiple files the selection mode should be enabled using \fI^Y\fR.
  123. In this mode it's possible to
  124. .Pp
  125. (1) cherry-pick individual files one by one by pressing <kbd>^K</kbd> on each entry (works across directories and contexts); or,
  126. .br
  127. (2) navigate to another file in the same directory to select a range of files.
  128. .Pp
  129. Press \fI^Y\fR again to save the selection and exit selection mode.
  130. .Pp
  131. Selected files are visually indicated by a \fB+\fR before the entries.
  132. .br
  133. The files in the list can now be listed, copied, moved, removed, archived or linked.
  134. .br
  135. Absolute paths of the selected files are copied to the temporary file \fB.selection\fR in config directory. The path is shown in the help and configuration screen. If \fB$NNN_COPIER\fR is set (see ENVIRONMENT section below) the file paths are also copied to the system clipboard.
  136. .Sh ENVIRONMENT
  137. The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
  138. when dealing with the !, e and p commands respectively. A single combination to arguments is supported for SHELL and PAGER.
  139. .Pp
  140. \fBNNN_BMS:\fR bookmark string as \fIkey_char:location\fR pairs (max 10) separated by
  141. \fI;\fR:
  142. .Bd -literal
  143. export NNN_BMS='d:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  144. NOTE: Bookmark keys should be single-character to use them in combination with the Leader key.
  145. .Ed
  146. .Pp
  147. \fBNNN_USE_EDITOR:\fR use VISUAL (else EDITOR, preferably CLI, fallback vi) to handle text
  148. files.
  149. .Bd -literal
  150. export NNN_USE_EDITOR=1
  151. .Ed
  152. .Pp
  153. \fBNNN_CONTEXT_COLORS:\fR string of color codes for each context, e.g.:
  154. .Bd -literal
  155. export NNN_CONTEXT_COLORS='1234'
  156. codes: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white
  157. .Ed
  158. .Pp
  159. \fBNNN_SSHFS_OPTS:\fR pass additional options to sshfs command:
  160. .Bd -literal
  161. export NNN_SSHFS_OPTS='sshfs -o reconnect,idmap=user,cache_timeout=3600'
  162. NOTE: The options must be preceded by `sshfs` and comma-separated without any space between them.
  163. .Ed
  164. .Pp
  165. \fBNNN_NOTE:\fR \fIabsolute\fR path to a note file.
  166. .Bd -literal
  167. export NNN_NOTE='/home/user/.mynotes'
  168. .Ed
  169. .Pp
  170. \fBNNN_OPENER:\fR specify a custom file opener.
  171. .Bd -literal
  172. export NNN_OPENER=mimeopen
  173. .Ed
  174. .Pp
  175. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal locker (default: disabled).
  176. .Pp
  177. \fBNNN_COPIER:\fR system clipboard copier script. The project page has some sample copier scripts.
  178. .Pp
  179. \fBNNN_NO_AUTOSELECT:\fR disable directory auto-selection in \fInavigate-as-you-type\fR mode.
  180. .Bd -literal
  181. export NNN_NO_AUTOSELECT=1
  182. .Ed
  183. .Pp
  184. \fBNNN_RESTRICT_NAV_OPEN:\fR disable file open on \fBRight\fR or \fBl\fR keys (\fBEnter\fR opens files).
  185. .Bd -literal
  186. export NNN_RESTRICT_NAV_OPEN=1
  187. .Ed
  188. .Pp
  189. \fBNNN_TRASH:\fR trash (instead of \fIdelete\fR) files to desktop Trash.
  190. .Bd -literal
  191. export NNN_TRASH=1
  192. .Ed
  193. .Pp
  194. \fBNNN_OPS_PROG:\fR show progress of copy, move operations (Linux-only, needs advcpmv).
  195. .Bd -literal
  196. export NNN_OPS_PROG=1
  197. .Ed
  198. .Sh KNOWN ISSUES
  199. If you are using urxvt you might have to set backspace key to DEC.
  200. .Sh AUTHORS
  201. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  202. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  203. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  204. .Sh HOME
  205. .Em https://github.com/jarun/nnn