My build of nnn with minor changes
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

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