My build of nnn with minor changes
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

230 行
5.6 KiB

  1. .Dd Oct 05, 2017
  2. .Dt NNN 1
  3. .Os
  4. .Sh NAME
  5. .Nm nnn
  6. .Nd the missing terminal file browser for X
  7. .Sh SYNOPSIS
  8. .Nm
  9. .Op Ar -c N
  10. .Op Ar -e
  11. .Op Ar -i
  12. .Op Ar -l
  13. .Op Ar -p nlay
  14. .Op Ar -S
  15. .Op Ar -v
  16. .Op Ar -h
  17. .Op Ar PATH
  18. .Sh DESCRIPTION
  19. .Nm
  20. (Noice is Not Noice) is a performance-optimized fork of the noice terminal file browser with extensive desktop integration, simplified navigation, \fInavigate-as-you-type\fR mode, bookmarks, disk usage analyzer mode, comprehensive file details and much more. It remains a simple and efficient file browser that stays out of your way.
  21. .Pp
  22. .Nm
  23. defaults to the current directory if
  24. .Ar PATH
  25. is not specified.
  26. .Pp
  27. .Nm
  28. supports both vi-like and emacs-like key bindings in the default
  29. configuration. The default key bindings are listed below.
  30. .Pp
  31. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  32. .It Ic [Up], k, ^P
  33. Move to previous entry
  34. .It Ic [Down], j, ^N
  35. Move to next entry
  36. .It Ic [PgUp], ^U
  37. Scroll up half a page
  38. .It Ic [PgDn], ^D
  39. Scroll down half a page
  40. .It Ic [Home], g, ^, ^A
  41. Move to the first entry
  42. .It Ic [End], G, $, ^E
  43. Move to the last entry
  44. .It Ic [Right], [Enter], l, ^M
  45. Open file or enter directory
  46. .It Ic [Left], [Backspace], h, ^H
  47. Back up one directory level
  48. .It Ic [Insert]
  49. Toggle navigate-as-you-type mode
  50. .It Ic ~
  51. Change to the HOME directory
  52. .It Ic &
  53. Change to initial directory
  54. .It Ic -
  55. Change to the last visited directory
  56. .It Ic /
  57. Change filter (more information below)
  58. .It Ic ^/
  59. Search directory in desktop search tool
  60. .It Ic \&.
  61. Toggle hide .dot files
  62. .It Ic b
  63. Show bookmark key prompt
  64. .It Ic ^B
  65. Pin current dir
  66. .It Ic ^V
  67. Visit pinned dir
  68. .It Ic c
  69. Show change dir prompt
  70. .It Ic d
  71. Toggle detail view
  72. .It Ic D
  73. Show current file details screen
  74. .It Ic m
  75. Show brief media info
  76. .It Ic M
  77. Show full media info
  78. .It Ic n
  79. Create a new file or directory
  80. .It Ic ^R
  81. Rename selected entry
  82. .It Ic s
  83. Toggle sort by file size
  84. .It Ic S
  85. Toggle disk usage analyzer mode
  86. .It Ic t
  87. Toggle sort by time modified
  88. .It Ic \&!
  89. Spawn SHELL in PWD (fallback sh)
  90. .It Ic e
  91. Open current entry in EDITOR (fallback vi)
  92. .It Ic o
  93. Open directory in NNN_DE_FILE_MANAGER
  94. .It Ic p
  95. Open current entry in PAGER (fallback less)
  96. .It Ic F
  97. List files in archive
  98. .It Ic ^X
  99. Extract archive in current directory
  100. .It Ic ^K
  101. Invoke file path copier
  102. .It Ic ^L
  103. Force a redraw, clear rename or filter prompt
  104. .It Ic \&?
  105. Toggle help and settings screen
  106. .It Ic Q
  107. Quit and change directory
  108. .It Ic q, ^Q
  109. Quit
  110. .El
  111. .Pp
  112. Backing up one directory level will set the cursor position at the
  113. directory you came out of.
  114. .Pp
  115. Help & settings, file details, media info and archive listing are shown in the
  116. PAGER. Please use the PAGER-specific keys in these screens.
  117. .Pp
  118. .Nm
  119. supports the following options:
  120. .Pp
  121. .Fl "c N"
  122. specify dir color (default blue), disables if N>7
  123. 0-black, 1-red, 2-green, 3-yellow, 4-blue, 5-magenta, 6-cyan, 7-white
  124. .Pp
  125. .Fl e
  126. use exiftool instead of mediainfo
  127. .Pp
  128. .Fl i
  129. start in navigate-as-you-type mode
  130. .Pp
  131. .Fl l
  132. start in light mode (fewer details)
  133. .Pp
  134. .Fl "p nlay"
  135. path to custom nlay
  136. .Pp
  137. .Fl S
  138. start in disk usage analyzer mode
  139. .Pp
  140. .Fl v
  141. show version and exit
  142. .Pp
  143. .Fl h
  144. show program help and exit
  145. .Sh CONFIGURATION
  146. .Nm
  147. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on OS X) as the desktop
  148. opener. It invokes
  149. .Pa nlay
  150. to run desktop search utility or screensaver. Read more on
  151. .Pa nlay
  152. at:
  153. .br
  154. .Em https://github.com/jarun/nnn/wiki/all-about-nlay
  155. .Pp
  156. There is no configuration file. Settings work on environment variables. Please
  157. refer to the ENVIRONMENT section below.
  158. .Pp
  159. Configuring
  160. .Nm
  161. to change to the last visited directory on quit requires shell integration in a
  162. few easy steps. Please visit the project page (linked below) for the
  163. instructions.
  164. .Sh FILTERS
  165. Filters support regexes to instantly (search-as-you-type) list the matching
  166. entries in the current directory.
  167. .Pp
  168. There are 3 ways to reset a filter: \fI^L\fR, a search with no matches or an
  169. extra backspace at the filter prompt (like vi).
  170. .Pp
  171. Common examples: If you want to list all matches starting with the filter
  172. expression, start the expression with a
  173. .Pa ^
  174. (caret) symbol. Type
  175. .Pa \.mkv
  176. to list all MKV files.
  177. .Pp
  178. If
  179. .Nm
  180. is invoked as root the default filter will also match hidden files.
  181. .Pp
  182. In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
  183. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  184. .Sh ENVIRONMENT
  185. The SHELL, EDITOR and PAGER environment variables take precedence
  186. when dealing with the !, e and p commands respectively.
  187. .Pp
  188. \fBNNN_BMS:\fR bookmark string as \fIkey:location\fR pairs (max 10) separated by
  189. \fI;\fR:
  190. .Bd -literal
  191. export NNN_BMS='doc:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  192. .Ed
  193. .Pp
  194. \fBNNN_USE_EDITOR:\fR use EDITOR (preferably CLI, fallback vi) to handle text
  195. files.
  196. .Bd -literal
  197. export NNN_USE_EDITOR=1
  198. .Ed
  199. .Pp
  200. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  201. directory with. E.g.:
  202. .Bd -literal
  203. export NNN_DE_FILE_MANAGER=thunar
  204. .Ed
  205. .Pp
  206. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal
  207. screensaver.
  208. .Pp
  209. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  210. .Bd -literal
  211. -------------------------------------
  212. #!/bin/sh
  213. echo -n $1 | xsel --clipboard --input
  214. -------------------------------------
  215. .Ed
  216. .Pp
  217. \fBNNN_NOWAIT:\fR necessary only if nnn blocks while a file is open.
  218. .Bd -literal
  219. export NNN_NOWAIT=1
  220. .Ed
  221. .Sh KNOWN ISSUES
  222. If you are using urxvt you might have to set backspacekey to DEC.
  223. .Sh AUTHORS
  224. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  225. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  226. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  227. .Sh HOME
  228. .Em https://github.com/jarun/nnn