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.
 
 
 
 
 
 

218 líneas
7.3 KiB

  1. .Dd Oct 06, 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 -a
  10. .Op Ar -b key
  11. .Op Ar -c
  12. .Op Ar -d
  13. .Op Ar -f
  14. .Op Ar -H
  15. .Op Ar -i
  16. .Op Ar -n
  17. .Op Ar -p file
  18. .Op Ar -r
  19. .Op Ar -s
  20. .Op Ar -S
  21. .Op Ar -v
  22. .Op Ar -h
  23. .Op Ar PATH
  24. .Sh DESCRIPTION
  25. .Nm
  26. (Nnn's 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.
  27. .Pp
  28. .Nm
  29. opens the current working directory by default if
  30. .Ar PATH
  31. is not specified.
  32. .Sh KEYBINDS
  33. .Pp
  34. Press \fB?\fR in
  35. .Nm
  36. to see the list of keybinds.
  37. .Sh OPTIONS
  38. .Pp
  39. .Nm
  40. supports the following options:
  41. .Pp
  42. .Fl a
  43. use access time for all operations (default: modification time)
  44. .Pp
  45. .Fl "b key"
  46. specify bookmark key to open
  47. .Pp
  48. .Fl c
  49. opener opens files in cli utilities only
  50. .Pp
  51. .Fl d
  52. detail mode
  53. .Pp
  54. .Fl f
  55. run filter as command when the prompt key is pressed
  56. .Pp
  57. .Fl H
  58. show hidden files
  59. .Pp
  60. .Fl i
  61. start in navigate-as-you-type mode
  62. .Pp
  63. .Fl n
  64. use case-insensitive version compare to sort files
  65. .Pp
  66. .Fl o
  67. open files only on Enter key
  68. .Pp
  69. .Fl "p file"
  70. copy (or \fIpick\fR) selection to file, or stdout if file='-'
  71. .Pp
  72. .Fl r
  73. show cp, mv progress (Linux-only, needs advcpmv; '^T' shows the progress on BSD/macOS)
  74. .Pp
  75. .Fl s
  76. use substring match for filters instead of regex
  77. .Pp
  78. .Fl S
  79. start in disk usage analyzer mode
  80. .Pp
  81. .Fl t
  82. disable directory auto-select in navigate-as-you-type mode
  83. .Pp
  84. .Fl v
  85. show version and exit
  86. .Pp
  87. .Fl h
  88. show program help and exit
  89. .Sh CONFIGURATION
  90. .Nm
  91. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on macOS) as the desktop opener.
  92. .Pp
  93. 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.
  94. .Pp
  95. Configuring
  96. .Nm
  97. to change to the last visited directory on quit requires shell integration in a
  98. few easy steps. Look up NNN_TMPFILE in the ENVIRONMENT section below.
  99. .Sh CONTEXTS
  100. Contexts serve the purpose of exploring multiple directories simultaneously. 4 contexts
  101. are available. The status of the contexts are shown in the top left corner:
  102. .Pp
  103. - the current context is in reverse video
  104. .br
  105. - other active contexts are underlined
  106. .br
  107. - rest are inactive
  108. .Pp
  109. On context creation, the state of the previous context is copied. Each context remembers its last visited directory.
  110. .Pp
  111. Each context can have its own directory color specified. See ENVIRONMENT section below.
  112. .Sh FILTERS
  113. Filters support regexes (default) to instantly (search-as-you-type) list the matching
  114. entries in the current directory.
  115. .Pp
  116. Common use cases:
  117. .Pp
  118. (1) To list all matches starting with the filter expression, start the expression
  119. with a '^' (caret) symbol.
  120. .br
  121. (2) Type '\\.mkv' to list all MKV files.
  122. .br
  123. (3) Use '.*' to match any character (\fIsort of\fR fuzzy search).
  124. .Pp
  125. There is a program option to filter entries by substring match instead of regex.
  126. .Pp
  127. There is a program option to execute the current filter as a command when the prompt key is pressed.
  128. .Pp
  129. In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
  130. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  131. .br
  132. When there's a unique match and it's a directory,
  133. .Nm
  134. auto selects the directory and enters it in this mode.
  135. .Sh SELECTION
  136. There are 3 groups of shortcuts to add files to selection:
  137. .Pp
  138. (1) add an individual file to selection
  139. .br
  140. (2) add a range of files to selection
  141. .br
  142. (3) add all files in the current directory to selection
  143. .Pp
  144. Selected files are visually indicated by a \fI+\fR before the entries.
  145. .br
  146. The selection can now be listed, copied, moved, removed, archived or linked.
  147. .br
  148. Absolute paths of the selected files are copied to the temporary file \fB.selection\fR in the 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.
  149. .Pp
  150. Repeat range selection on the same entry to clear selection. Deselecting a single file is not implemented because substantial string processing it would be required if thousands of files are selected. It would have been trivial if the selection was limited to a single directory (use a flag for each file and select the files with the flag set). However,
  151. .Nm
  152. allows selection across directories making it non-trivial to do that. Also, the buffer used to select is a compact one (no byte wasted) so \fBmemmove\fR() would be required to deselect each intermediate file. Considering these, we kept the solution simpler.
  153. .Sh FILE SIZE
  154. The minimum file size unit is byte (B). The rest are K, M, G, T, P, E, Z, Y (powers of 1024), same as the default units in \fIls\fR.
  155. .Sh ENVIRONMENT
  156. The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
  157. when dealing with the !, e and p commands respectively. A single combination to arguments is supported for SHELL and PAGER.
  158. .Pp
  159. \fBNNN_BMS:\fR bookmark string as \fIkey_char:location\fR pairs (max 10) separated by
  160. \fI;\fR:
  161. .Bd -literal
  162. export NNN_BMS='d:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  163. NOTE: To go to a bookmark, press the leader key followed by the bookmark key.
  164. .Ed
  165. .Pp
  166. \fBNNN_PLUG:\fR directly executable plugins as \fIkey_char:location\fR pairs (max 10) separated by
  167. \fI;\fR:
  168. .Bd -literal
  169. export NNN_PLUG='o:fzy-open;p:mocplay;d:ndiff;m:nmount;t:thumb;i:mediainf'
  170. NOTE: To run a plugin directly, press \fI:\fR followed by the plugin key.
  171. .Ed
  172. .Pp
  173. \fBNNN_USE_EDITOR:\fR use VISUAL (else EDITOR, preferably CLI, fallback vi) to handle text files.
  174. .Bd -literal
  175. export NNN_USE_EDITOR=1
  176. .Ed
  177. .Pp
  178. \fBNNN_CONTEXT_COLORS:\fR string of color codes for each context, e.g.:
  179. .Bd -literal
  180. export NNN_CONTEXT_COLORS='1234'
  181. codes: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white
  182. .Ed
  183. .Pp
  184. \fBNNN_SSHFS_OPTS:\fR pass additional options to sshfs command:
  185. .Bd -literal
  186. export NNN_SSHFS_OPTS='sshfs -o reconnect,idmap=user,cache_timeout=3600'
  187. NOTE: The options must be preceded by `sshfs` and comma-separated without any space between them.
  188. .Ed
  189. .Pp
  190. \fBNNN_OPENER:\fR specify a custom file opener.
  191. .Bd -literal
  192. export NNN_OPENER=mimeopen
  193. .Ed
  194. .Pp
  195. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal locker (default: disabled).
  196. .Pp
  197. \fBNNN_COPIER:\fR system clipboard copier script. The project page has some sample copier scripts.
  198. .Pp
  199. \fBNNN_TRASH:\fR trash (instead of \fIdelete\fR) files to desktop Trash.
  200. .Bd -literal
  201. export NNN_TRASH=1
  202. .Ed
  203. .Pp
  204. \fBNNN:\fR this is a special variable set to the current entry before executing a command from the command prompt or spawning a shell.
  205. .Sh KNOWN ISSUES
  206. .Nm
  207. may not handle keypresses correctly when used with tmux (see issue #104 for more details). Set \fBTERM=xterm-256color\fR to address it.
  208. .Sh AUTHORS
  209. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com ,
  210. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  211. .An Dimitris Papastamos Aq Mt sin@2f30.org .
  212. .Sh HOME
  213. .Em https://github.com/jarun/nnn