My build of nnn with minor changes
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

nnn.1 5.3 KiB

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