My build of nnn with minor changes
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

202 строки
5.1 KiB

  1. .Dd May 12, 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 nnn
  9. .Op Ar -d
  10. .Op Ar -f
  11. .Op Ar -p
  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 improved desktop integration, navigation, navigate-as-you-type mode, 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 ~
  47. Change to the HOME directory
  48. .It Ic &
  49. Change to initial directory
  50. .It Ic -
  51. Change to the last visited directory
  52. .It Ic /
  53. Change filter (more information below)
  54. .It Ic ^/
  55. Search directory in gnome-search-tool
  56. .It Ic \&.
  57. Toggle hide .dot files
  58. .It Ic c
  59. Change into the given directory
  60. .It Ic d
  61. Toggle detail view
  62. .It Ic D
  63. Toggle current file details screen
  64. .It Ic f
  65. Toggle navigate-as-you-type mode
  66. .It Ic m
  67. Show concise mediainfo
  68. .It Ic M
  69. Show full mediainfo
  70. .It Ic s
  71. Toggle sort by file size
  72. .It Ic S
  73. Toggle disk usage analyzer mode
  74. .It Ic t
  75. Toggle sort by time modified
  76. .It Ic \&!
  77. Spawn SHELL in PWD (fallback sh)
  78. .It Ic z
  79. Run the system top utility.
  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 name copier
  88. .It Ic ^L
  89. Force a redraw
  90. .It Ic \&?
  91. Toggle help screen
  92. .It Ic q
  93. Quit
  94. .It Ic Q
  95. Quit and change directory
  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 d
  105. start in detail view mode
  106. .Pp
  107. .Fl f
  108. start in navigate-as-you-type mode
  109. .Pp
  110. .Fl p
  111. path to custom nlay
  112. .Pp
  113. .Fl S
  114. start in disk usage analyzer mode
  115. .Pp
  116. .Fl v
  117. show version and exit
  118. .Pp
  119. .Fl h
  120. show program help and exit
  121. .Sh CONFIGURATION
  122. .Nm
  123. invokes
  124. .Pa nlay
  125. to play a file if it recognizes a file by extension.
  126. .Pa nlay
  127. is a
  128. highly customizable bash shell script which invokes a player depending on the
  129. type of file. Read more on
  130. .Pa nlay
  131. at:
  132. .br
  133. .Em https://github.com/jarun/nnn/wiki/all-about-nlay
  134. .Pp
  135. .Nm
  136. is configured by modifying
  137. .Pa config.def.h
  138. and recompiling the code. config.h is generated as a backup of config.def.h.
  139. .Pp
  140. See the environment and examples sections below for more options and information.
  141. .Pp
  142. Configuring
  143. .Nm
  144. to change to the last visited directory on quit requires shell integration in a
  145. few easy steps. Please visit the project page (linked below) for the
  146. instructions.
  147. .Sh FILTERS
  148. Filters support regexes to display only the matched
  149. entries in the current directory view. This effectively allows
  150. searching through the directory tree for a particular entry. Matching entries
  151. are shown instantly (search-as-you-type).
  152. .Pp
  153. Filters do not stack on top of each other. They are applied anew
  154. every time. There are 4 ways to reset a filter:
  155. .Pp
  156. The \fIInsert\fR key, an empty filter expression, a search with no results or an
  157. extra backspace at the filter prompt (like vi).
  158. .Pp
  159. If you want to list all matches starting with the filter expression (a common
  160. use case), start the expression with a
  161. .Pa ^
  162. (caret) symbol.
  163. .Pp
  164. If
  165. .Nm
  166. is invoked as root the default filter will also match hidden files.
  167. .Pp
  168. In the navigate-as-you-type mode directories are opened in filter mode,
  169. allowing instant navigation. Works best with the arrow keys.
  170. .Sh ENVIRONMENT
  171. The SHELL, EDITOR and PAGER environment variables take precedence
  172. when dealing with the !, e and p commands respectively.
  173. .Pp
  174. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  175. directory with.
  176. .Pp
  177. \fBNNN_OPENER:\fR set to your desktop environment's default
  178. mime opener to override all custom mime associations.
  179. .br
  180. Examples: xdg-open, gio open, gvfs-open.
  181. .Pp
  182. \fBNNN_FALLBACK_OPENER:\fR set to your desktop environment's default
  183. mime opener to use as a fallback when no association is set for a file
  184. type. Custom associations are listed in the EXAMPLES section below.
  185. .Pp
  186. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  187. .Bd -literal
  188. -------------------------------------
  189. #!/bin/sh
  190. echo -n $1 | xsel --clipboard --input
  191. -------------------------------------
  192. .Ed
  193. .Sh KNOWN ISSUES
  194. If you are using urxvt you might have to set backspacekey to DEC.
  195. .Sh AUTHORS
  196. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  197. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  198. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  199. .Sh HOME
  200. .Em https://github.com/jarun/nnn