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

178 строки
4.4 KiB

  1. .Dd April 13, 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 -S
  11. .Op Ar -v
  12. .Op Ar -h
  13. .Op Ar PATH
  14. .Sh DESCRIPTION
  15. .Nm
  16. (Noice is Not Noice) is a performance-optimized fork of the noice terminal file browser with improved desktop integration, navigation, disk usage analyzer mode, comprehensive file details and much more. It remains a simple and efficient file browser that stays out of your way.
  17. .Pp
  18. .Nm
  19. defaults to the current directory if
  20. .Ar PATH
  21. is not specified.
  22. .Pp
  23. .Nm
  24. supports both vi-like and emacs-like key bindings in the default
  25. configuration. The default key bindings are listed below.
  26. .Pp
  27. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  28. .It Ic [Up], k, ^P
  29. Move to previous entry
  30. .It Ic [Down], j, ^N
  31. Move to next entry
  32. .It Ic [PgUp], ^U
  33. Scroll up half a page
  34. .It Ic [PgDn], ^D
  35. Scroll down half a page
  36. .It Ic [Home], g, ^, ^A
  37. Move to the first entry
  38. .It Ic [End], G, $, ^E
  39. Move to the last entry
  40. .It Ic [Right], [Enter], l, ^M
  41. Open file or enter directory
  42. .It Ic [Left], [Backspace], h, ^H
  43. Back up one directory level
  44. .It Ic ~
  45. Change to the HOME directory
  46. .It Ic -
  47. Change to the last visited directory
  48. .It Ic o
  49. Open directory in NNN_DE_FILE_MANAGER
  50. .It Ic /, &
  51. Change filter (more information below)
  52. .It Ic c
  53. Change into the given directory
  54. .It Ic d
  55. Toggle detail view
  56. .It Ic D
  57. Toggle current file details screen
  58. .It Ic m
  59. Show concise mediainfo
  60. .It Ic M
  61. Show full mediainfo
  62. .It Ic \&.
  63. Toggle hide .dot files
  64. .It Ic s
  65. Toggle sort by file size
  66. .It Ic S
  67. Toggle disk usage analyzer mode
  68. .It Ic t
  69. Toggle sort by time modified
  70. .It Ic \&!
  71. Spawn SHELL in PWD (fallback sh)
  72. .It Ic z
  73. Run the system top utility.
  74. .It Ic e
  75. Open current entry in EDITOR (fallback vi)
  76. .It Ic p
  77. Open current entry in PAGER (fallback less)
  78. .It Ic ^K
  79. Invoke file name copier
  80. .It Ic ^L
  81. Force a redraw
  82. .It Ic \&?
  83. Toggle help screen
  84. .It Ic q
  85. Quit
  86. .It Ic Q
  87. Quit and change directory
  88. .El
  89. .Pp
  90. Backing up one directory level will set the cursor position at the
  91. directory you came out of.
  92. .Pp
  93. .Nm
  94. supports the following options:
  95. .Pp
  96. .Fl d
  97. start in detail view mode
  98. .Pp
  99. .Fl S
  100. start in disk usage analyzer mode
  101. .Pp
  102. .Fl v
  103. show version and exit
  104. .Pp
  105. .Fl h
  106. show program help and exit
  107. .Sh CONFIGURATION
  108. .Nm
  109. invokes
  110. .Pa nlay
  111. to play a file if it recognizes a file by extension.
  112. .Pa nlay
  113. is a
  114. highly customizable bash shell script which invokes a player depending on the
  115. type of file. Read more on
  116. .Pa nlay
  117. at:
  118. .br
  119. .Em https://github.com/jarun/nnn/wiki/all-about-nlay
  120. .Pp
  121. .Nm
  122. is configured by modifying
  123. .Pa config.def.h
  124. and recompiling the code. config.h is generated as a backup of config.def.h.
  125. .Pp
  126. See the environment and examples sections below for more options and information.
  127. .Pp
  128. Configuring
  129. .Nm
  130. to change to the last visited directory on quit requires shell integration in a
  131. few easy steps. Please visit the project page (linked below) for the
  132. instructions.
  133. .Sh FILTERS
  134. Filters support regexes to display only the matched
  135. entries in the current directory view. This effectively allows
  136. searching through the directory tree for a particular entry.
  137. .Pp
  138. Filters do not stack on top of each other. They are applied anew
  139. every time.
  140. .Pp
  141. An empty filter expression resets the filter.
  142. .Pp
  143. If
  144. .Nm
  145. is invoked as root the default filter will also match hidden files.
  146. .Sh ENVIRONMENT
  147. The SHELL, EDITOR and PAGER environment variables take precedence
  148. when dealing with the !, e and p commands respectively.
  149. .Pp
  150. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  151. directory with.
  152. .Pp
  153. \fBNNN_OPENER:\fR set to your desktop environment's default
  154. mime opener to override all custom mime associations.
  155. .br
  156. Examples: xdg-open, gio open, gvfs-open.
  157. .Pp
  158. \fBNNN_FALLBACK_OPENER:\fR set to your desktop environment's default
  159. mime opener to use as a fallback when no association is set for a file
  160. type. Custom associations are listed in the EXAMPLES section below.
  161. .Pp
  162. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  163. .Bd -literal
  164. -------------------------------------
  165. #!/bin/sh
  166. echo -n $1 | xsel --clipboard --input
  167. -------------------------------------
  168. .Ed
  169. .Sh KNOWN ISSUES
  170. If you are using urxvt you might have to set backspacekey to DEC.
  171. .Sh AUTHORS
  172. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  173. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  174. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  175. .Sh HOME
  176. .Em https://github.com/jarun/nnn