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.
 
 
 
 
 
 

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