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.

hace 10 años
hace 10 años
hace 5 años
hace 4 años
hace 7 años
hace 10 años
hace 5 años
hace 10 años
hace 7 años
hace 4 años
hace 7 años
hace 10 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 10 años
hace 5 años
hace 10 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 7 años
hace 7 años
hace 4 años
hace 4 años
hace 7 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 10 años
hace 5 años
hace 5 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. .Dd Dec 04, 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 -e name
  14. .Op Ar -E
  15. .Op Ar -f
  16. .Op Ar -H
  17. .Op Ar -i
  18. .Op Ar -K
  19. .Op Ar -n
  20. .Op Ar -p file
  21. .Op Ar -r
  22. .Op Ar -R
  23. .Op Ar -s
  24. .Op Ar -S
  25. .Op Ar -v
  26. .Op Ar -h
  27. .Op Ar PATH
  28. .Sh DESCRIPTION
  29. .Nm
  30. (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.
  31. .Pp
  32. .Nm
  33. opens the current working directory by default if
  34. .Ar PATH
  35. is not specified.
  36. .Sh KEYBINDS
  37. .Pp
  38. Press \fB?\fR in
  39. .Nm
  40. to see the list of keybinds.
  41. .Sh OPTIONS
  42. .Pp
  43. .Nm
  44. supports the following options:
  45. .Pp
  46. .Fl a
  47. use access time for all operations (default: modification time)
  48. .Pp
  49. .Fl "b key"
  50. specify bookmark key to open
  51. .Pp
  52. .Fl c
  53. opener opens files in cli utilities only
  54. .Pp
  55. .Fl d
  56. detail mode
  57. .Pp
  58. .Fl "e name"
  59. load a session by name
  60. .Pp
  61. .Fl E
  62. use $EDITOR for internal undetached edits
  63. .Pp
  64. .Fl f
  65. run filter as command when the prompt key is pressed
  66. .Pp
  67. .Fl H
  68. show hidden files
  69. .Pp
  70. .Fl i
  71. start in navigate-as-you-type mode
  72. .Pp
  73. .Fl K
  74. test for keybind collision
  75. .Pp
  76. .Fl n
  77. use case-insensitive version compare to sort files
  78. .Pp
  79. .Fl o
  80. open files only on Enter key
  81. .Pp
  82. .Fl "p file"
  83. copy (or \fIpick\fR) selection to file, or stdout if file='-'
  84. .Pp
  85. .Fl r
  86. show cp, mv progress (Linux-only, needs advcpmv; '^T' shows the progress on BSD/macOS)
  87. .Pp
  88. .Fl R
  89. disable rollover at edges
  90. .Pp
  91. .Fl s
  92. use substring match for filters instead of regex
  93. .Pp
  94. .Fl S
  95. start in disk usage analyzer mode
  96. .Pp
  97. .Fl t
  98. disable directory auto-select in navigate-as-you-type mode
  99. .Pp
  100. .Fl v
  101. show version and exit
  102. .Pp
  103. .Fl h
  104. show program help and exit
  105. .Sh CONFIGURATION
  106. .Nm
  107. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on macOS) as the desktop opener.
  108. .Pp
  109. 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.
  110. .Sh CONTEXTS
  111. Contexts serve the purpose of exploring multiple directories simultaneously. 4 contexts
  112. are available. The status of the contexts are shown in the top left corner:
  113. .Pp
  114. - the current context is in reverse video
  115. .br
  116. - other active contexts are underlined
  117. .br
  118. - rest are inactive
  119. .Pp
  120. On context creation, the state of the previous context is copied. Each context remembers its last visited directory.
  121. .Pp
  122. Each context can have its own directory color specified. See ENVIRONMENT section below.
  123. .Sh SESSIONS
  124. Sessions are a way to save and restore states of work. A session stores the settings and contexts.
  125. .Pp
  126. Sessions can be loaded dynamically from within a running
  127. .Nm
  128. instance, or with a program option.
  129. .Pp
  130. When a session is loaded dynamically, the last working session is saved automatically to a dedicated
  131. -- "last session" -- session file.
  132. .Pp
  133. All the session files are located in the \fB${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions\fR directory by the session name.
  134. "@" is the "last session" file.
  135. .Sh FILTERS
  136. Filters support regexes (default) to instantly (search-as-you-type) list the matching
  137. entries in the current directory.
  138. .Pp
  139. Common use cases:
  140. .Pp
  141. (1) To list all matches starting with the filter expression, start the expression
  142. with a '^' (caret) symbol.
  143. .br
  144. (2) Type '\\.mkv' to list all MKV files.
  145. .br
  146. (3) Use '.*' to match any character (\fIsort of\fR fuzzy search).
  147. .Pp
  148. There is a program option to filter entries by substring match instead of regex.
  149. .Pp
  150. There is a program option to execute the current filter as a command when the prompt key is pressed.
  151. .Pp
  152. In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
  153. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  154. .br
  155. When there's a unique match and it's a directory,
  156. .Nm
  157. auto selects the directory and enters it in this mode.
  158. .Sh SELECTION
  159. There are 3 groups of shortcuts to add files to selection:
  160. .Pp
  161. (1) hovered file selection toggle (indicated by '+' symbol on/off)
  162. .br
  163. (2) add a range of files to selection
  164. .br
  165. (3) add all files in the current directory to selection
  166. .Pp
  167. The selection can now be listed, copied, moved, removed, archived or linked.
  168. .Pp
  169. 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.
  170. .Pp
  171. To flush the selection without running any operation use the _edit, flush selection_ key. The list is flushed even if unchanged. Use this key to remove a file from selection after you navigate away from its directory.
  172. .Pp
  173. Repeat range selection on the same entry twice to clear selection completely.
  174. .Sh FILE SIZE
  175. 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.
  176. .Sh ENVIRONMENT
  177. The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
  178. when dealing with the !, e and p commands respectively. A single combination to arguments is supported for SHELL and PAGER.
  179. .Pp
  180. \fBNNN_BMS:\fR bookmark string as \fIkey_char:location\fR pairs (max 10) separated by
  181. \fI;\fR:
  182. .Bd -literal
  183. export NNN_BMS='d:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  184. NOTE: To go to a bookmark, press the Lead key followed by the bookmark key.
  185. .Ed
  186. .Pp
  187. \fBNNN_PLUG:\fR directly executable plugins as \fIkey_char:location\fR pairs (max 10) separated by
  188. \fI;\fR:
  189. .Bd -literal
  190. export NNN_PLUG='o:fzopen;p:mocplay;d:diffs;m:nmount;t:imgthumb;i:mediainf'
  191. NOTE: To run a plugin directly, press \fI:\fR followed by the plugin key.
  192. .Ed
  193. .Pp
  194. To assign keys to arbitrary non-background non-shell-interpreted cli
  195. commands and invoke like plugins, add \fI_\fR (underscore) before the command.
  196. .Bd -literal
  197. export NNN_PLUG='x:_chmod +x $nnn;g:_git log;s:_smplayer $nnn;o:fzopen;m:nmount'
  198. NOTES:
  199. 1. Use single quotes for $NNN_PLUG so $nnn is not interpreted
  200. 2. $nnn should be the last argument (IF you want to pass the hovered file name)
  201. 3. (Again) add \fI_\fR before the command
  202. .Ed
  203. .Pp
  204. \fBNNN_USE_EDITOR:\fR use VISUAL (else EDITOR, preferably CLI, fallback vi) to handle text files.
  205. .Bd -literal
  206. export NNN_USE_EDITOR=1
  207. .Ed
  208. .Pp
  209. \fBNNN_CONTEXT_COLORS:\fR string of color codes for each context, e.g.:
  210. .Bd -literal
  211. export NNN_CONTEXT_COLORS='1234'
  212. codes: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white
  213. .Ed
  214. .Pp
  215. \fBNNN_SSHFS_OPTS:\fR pass additional options to sshfs command:
  216. .Bd -literal
  217. export NNN_SSHFS_OPTS='sshfs -o reconnect,idmap=user,cache_timeout=3600'
  218. NOTE: The options must be preceded by `sshfs` and comma-separated without any space between them.
  219. .Ed
  220. .Pp
  221. \fBNNN_RCLONE_OPTS:\fR pass additional options to rclone command:
  222. .Bd -literal
  223. export NNN_RCLONE_OPTS='rclone mount --read-only --no-checksum'
  224. NOTE: The options must be preceded by `rclone` and max 5 flags are supported.
  225. .Ed
  226. .Pp
  227. \fBNNN_OPENER:\fR specify a custom file opener.
  228. .Bd -literal
  229. export NNN_OPENER=mimeopen
  230. .Ed
  231. .Pp
  232. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal locker (default: disabled).
  233. .Pp
  234. \fBNNN_COPIER:\fR system clipboard copier script. The project page has some sample copier scripts.
  235. .Pp
  236. \fBNNN_TRASH:\fR trash (instead of \fIdelete\fR) files to desktop Trash.
  237. .Bd -literal
  238. export NNN_TRASH=1
  239. .Ed
  240. .Pp
  241. \fBNNN:\fR this is a special variable set to the current entry before executing a command from the command prompt or spawning a shell.
  242. .Sh KNOWN ISSUES
  243. .Nm
  244. may not handle keypresses correctly when used with tmux (see issue #104 for more details). Set \fBTERM=xterm-256color\fR to address it.
  245. .Sh AUTHORS
  246. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com ,
  247. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  248. .An Dimitris Papastamos Aq Mt sin@2f30.org .
  249. .Sh HOME
  250. .Em https://github.com/jarun/nnn