My build of nnn with minor changes
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

10 年前
10 年前
5 年前
10 年前
5 年前
10 年前
10 年前
6 年前
5 年前
6 年前
6 年前
6 年前
6 年前
10 年前
6 年前
10 年前
6 年前
5 年前
5 年前
6 年前
5 年前
5 年前
6 年前
5 年前
5 年前
5 年前
10 年前
5 年前
5 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. .Dd Aug 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. Use \fI^J\fR to select the file under the cursor.
  137. .Pp
  138. To select multiple files press \fI^S\fR and enter selection mode.
  139. In this mode it's possible to
  140. .Pp
  141. (1) cherry-pick individual files one by one by pressing \fI^J\fR on each entry (works across directories and contexts); or,
  142. .br
  143. (2) navigate to another file in the same directory to select a range of files.
  144. .Pp
  145. Running any operation that uses the selection OR pressing \fI^S\fR again will save the selection and exit the selection mode.
  146. .Pp
  147. Press \fI^S\fR twice to clear selection.
  148. .Pp
  149. Selected files are visually indicated by a \fI+\fR before the entries.
  150. .br
  151. The files in the list can now be listed, copied, moved, removed, archived or linked.
  152. .br
  153. 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.
  154. .Sh ENVIRONMENT
  155. The SHELL, EDITOR (VISUAL, if defined) and PAGER environment variables take precedence
  156. when dealing with the !, e and p commands respectively. A single combination to arguments is supported for SHELL and PAGER.
  157. .Pp
  158. \fBNNN_BMS:\fR bookmark string as \fIkey_char:location\fR pairs (max 10) separated by
  159. \fI;\fR:
  160. .Bd -literal
  161. export NNN_BMS='d:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  162. NOTE: To go to a bookmark, press the leader key followed by the bookmark key.
  163. .Ed
  164. .Pp
  165. \fBNNN_PLUG:\fR directly executable plugins as \fIkey_char:location\fR pairs (max 10) separated by
  166. \fI;\fR:
  167. .Bd -literal
  168. export NNN_PLUG='o:fzy-open;p:mocplay;d:ndiff;m:nmount;t:thumb;i:mediainf'
  169. NOTE: To run a plugin directly, press \fI:\fR followed by the plugin key.
  170. .Ed
  171. .Pp
  172. \fBNNN_USE_EDITOR:\fR use VISUAL (else EDITOR, preferably CLI, fallback vi) to handle text files.
  173. .Bd -literal
  174. export NNN_USE_EDITOR=1
  175. .Ed
  176. .Pp
  177. \fBNNN_CONTEXT_COLORS:\fR string of color codes for each context, e.g.:
  178. .Bd -literal
  179. export NNN_CONTEXT_COLORS='1234'
  180. codes: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white
  181. .Ed
  182. .Pp
  183. \fBNNN_SSHFS_OPTS:\fR pass additional options to sshfs command:
  184. .Bd -literal
  185. export NNN_SSHFS_OPTS='sshfs -o reconnect,idmap=user,cache_timeout=3600'
  186. NOTE: The options must be preceded by `sshfs` and comma-separated without any space between them.
  187. .Ed
  188. .Pp
  189. \fBNNN_OPENER:\fR specify a custom file opener.
  190. .Bd -literal
  191. export NNN_OPENER=mimeopen
  192. .Ed
  193. .Pp
  194. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal locker (default: disabled).
  195. .Pp
  196. \fBNNN_COPIER:\fR system clipboard copier script. The project page has some sample copier scripts.
  197. .Pp
  198. \fBNNN_TRASH:\fR trash (instead of \fIdelete\fR) files to desktop Trash.
  199. .Bd -literal
  200. export NNN_TRASH=1
  201. .Ed
  202. .Sh KNOWN ISSUES
  203. .Nm
  204. may not handle keypresses correctly when used with tmux (see issue #104 for more details). Set \fBTERM=xterm-256color\fR to address it.
  205. .Pp
  206. Use the keybind \fI'\fR to toggle selection if you are having issues with \fI^Y\fR on *BSD or macOS. To use \fI^Y\fR, run:
  207. .Bd -literal
  208. stty dsusp undef
  209. .Ed
  210. .Sh AUTHORS
  211. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com ,
  212. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  213. .An Dimitris Papastamos Aq Mt sin@2f30.org .
  214. .Sh HOME
  215. .Em https://github.com/jarun/nnn