My build of nnn with minor changes
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

nnn.1 5.5 KiB

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