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.
 
 
 
 
 
 

181 lines
4.6 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. is configured by modifying
  110. .Pa config.h
  111. and recompiling the code.
  112. .Pp
  113. See the environment and examples sections below for more options and information.
  114. .Pp
  115. Configuring
  116. .Nm
  117. to change to the last visited directory on quit requires shell integration in a
  118. few easy steps. Please visit the project page (linked below) for the
  119. instructions.
  120. .Sh FILTERS
  121. Filters support regexes to display only the matched
  122. entries in the current directory view. This effectively allows
  123. searching through the directory tree for a particular entry.
  124. .Pp
  125. Filters do not stack on top of each other. They are applied anew
  126. every time.
  127. .Pp
  128. An empty filter expression resets the filter.
  129. .Pp
  130. If
  131. .Nm
  132. is invoked as root the default filter will also match hidden files.
  133. .Sh ENVIRONMENT
  134. The SHELL, EDITOR and PAGER environment variables take precedence
  135. when dealing with the !, e and p commands respectively.
  136. .Pp
  137. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  138. directory with.
  139. .Pp
  140. \fBNNN_OPENER:\fR set to your desktop environment's default
  141. mime opener to override all custom mime associations.
  142. .br
  143. Examples: xdg-open, gio open, gvfs-open.
  144. .Pp
  145. \fBNNN_FALLBACK_OPENER:\fR set to your desktop environment's default
  146. mime opener to use as a fallback when no association is set for a file
  147. type. Custom associations are listed in the EXAMPLES section below.
  148. .Pp
  149. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  150. .Bd -literal
  151. -------------------------------------
  152. #!/bin/sh
  153. echo -n $1 | xsel --clipboard --input
  154. -------------------------------------
  155. .Ed
  156. .Sh EXAMPLES
  157. The following example shows one possible configuration for
  158. file associations which is also the default if environment
  159. variable NNN_OPENER is not set:
  160. .Bd -literal
  161. -----------------------------------------------
  162. struct assoc assocs[] = {
  163. { "\\.(c|cpp|h|txt|log|sh)$", "vi" },
  164. { "\\.(wma|mp3|ogg|flac)$", "mpv" },
  165. { "\\.pdf$", "zathura" },
  166. };
  167. -----------------------------------------------
  168. Plain text files are opened with vi.
  169. .br
  170. Any other file types are opened with the 'xdg-open' command.
  171. .Ed
  172. .Sh KNOWN ISSUES
  173. If you are using urxvt you might have to set backspacekey to DEC.
  174. .Sh AUTHORS
  175. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  176. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  177. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  178. .Sh HOME
  179. .Em https://github.com/jarun/nnn