My build of nnn with minor changes
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nnn.1 5.3 KiB

10 년 전
10 년 전
10 년 전
10 년 전
10 년 전
10 년 전
10 년 전
10 년 전
10 년 전
10 년 전
10 년 전
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. .Dd Sep 04, 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 ^K
  97. Invoke file path copier
  98. .It Ic ^L
  99. Force a redraw, clear rename or filter prompt
  100. .It Ic \&?
  101. Toggle help and settings screen
  102. .It Ic Q
  103. Quit and change directory
  104. .It Ic q, ^Q
  105. Quit
  106. .El
  107. .Pp
  108. Backing up one directory level will set the cursor position at the
  109. directory you came out of.
  110. .Pp
  111. .Nm
  112. supports the following options:
  113. .Pp
  114. .Fl "c N"
  115. specify dir color (default blue), disables if N>7
  116. 0-black, 1-red, 2-green, 3-yellow, 4-blue, 5-magenta, 6-cyan, 7-white
  117. .Pp
  118. .Fl e
  119. use exiftool instead of mediainfo
  120. .Pp
  121. .Fl i
  122. start in navigate-as-you-type mode
  123. .Pp
  124. .Fl l
  125. start in light mode (fewer details)
  126. .Pp
  127. .Fl "p nlay"
  128. path to custom nlay
  129. .Pp
  130. .Fl S
  131. start in disk usage analyzer mode
  132. .Pp
  133. .Fl v
  134. show version and exit
  135. .Pp
  136. .Fl h
  137. show program help and exit
  138. .Sh CONFIGURATION
  139. .Nm
  140. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on OS X) as the desktop
  141. opener. It invokes
  142. .Pa nlay
  143. to run desktop search utility or screensaver. Read more on
  144. .Pa nlay
  145. at:
  146. .br
  147. .Em https://github.com/jarun/nnn/wiki/all-about-nlay
  148. .Pp
  149. There is no configuration file. Settings work on environment variables. Please
  150. refer to the ENVIRONMENT section below.
  151. .Pp
  152. Configuring
  153. .Nm
  154. to change to the last visited directory on quit requires shell integration in a
  155. few easy steps. Please visit the project page (linked below) for the
  156. instructions.
  157. .Sh FILTERS
  158. Filters support regexes to instantly (search-as-you-type) list the matching
  159. entries in the current directory.
  160. .Pp
  161. There are 3 ways to reset a filter: \fI^L\fR, a search with no matches or an
  162. extra backspace at the filter prompt (like vi).
  163. .Pp
  164. Common examples: If you want to list all matches starting with the filter
  165. expression, start the expression with a
  166. .Pa ^
  167. (caret) symbol. Type
  168. .Pa \.mkv
  169. to list all MKV files.
  170. .Pp
  171. If
  172. .Nm
  173. is invoked as root the default filter will also match hidden files.
  174. .Pp
  175. In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
  176. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  177. .Sh ENVIRONMENT
  178. The SHELL, EDITOR and PAGER environment variables take precedence
  179. when dealing with the !, e and p commands respectively.
  180. .Pp
  181. \fBNNN_BMS:\fR bookmark string as \fIkey:location\fR pairs (max 10) separated by
  182. \fI;\fR:
  183. .Bd -literal
  184. export NNN_BMS='doc:~/Documents;u:/home/user/Cam Uploads;D:~/Downloads/'
  185. .Ed
  186. .Pp
  187. \fBNNN_USE_EDITOR:\fR use EDITOR (preferably CLI, fallback vi) to handle text
  188. files.
  189. .Bd -literal
  190. export NNN_USE_EDITOR=1
  191. .Ed
  192. .Pp
  193. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  194. directory with. E.g.:
  195. .Bd -literal
  196. export NNN_DE_FILE_MANAGER=thunar
  197. .Ed
  198. .Pp
  199. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal
  200. screensaver.
  201. .Pp
  202. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  203. .Bd -literal
  204. -------------------------------------
  205. #!/bin/sh
  206. echo -n $1 | xsel --clipboard --input
  207. -------------------------------------
  208. .Ed
  209. .Sh KNOWN ISSUES
  210. If you are using urxvt you might have to set backspacekey to DEC.
  211. .Sh AUTHORS
  212. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  213. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  214. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  215. .Sh HOME
  216. .Em https://github.com/jarun/nnn