My build of nnn with minor changes
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

206 satır
6.4 KiB

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