My build of nnn with minor changes
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

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