My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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