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.
 
 
 
 
 
 

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