My build of nnn with minor changes
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

163 рядки
4.3 KiB

  1. .Dd April 13, 2017
  2. .Dt NNN 1
  3. .Os
  4. .Sh NAME
  5. .Nm nnn
  6. .Nd free, fast, friendly file browser
  7. .Sh SYNOPSIS
  8. .Nm nnn
  9. .Op Ar -d
  10. .Op Ar dir
  11. .Sh DESCRIPTION
  12. .Nm
  13. (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.
  14. .Pp
  15. .Nm
  16. defaults to the current directory if
  17. .Ar dir
  18. is not specified.
  19. .Pp
  20. .Nm
  21. supports both vi-like and emacs-like key bindings in the default
  22. configuration. The default key bindings are listed below.
  23. .Pp
  24. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  25. .It Ic [Up], k, ^P
  26. Move to previous entry
  27. .It Ic [Down], j, ^N
  28. Move to next entry
  29. .It Ic [PgUp], ^U
  30. Scroll up half a page
  31. .It Ic [PgDn], ^D
  32. Scroll down half a page
  33. .It Ic [Home], g, ^, ^A
  34. Move to the first entry
  35. .It Ic [End], G, $, ^E
  36. Move to the last entry
  37. .It Ic [Right], [Enter], l, ^M
  38. Open file or enter directory
  39. .It Ic [Left], [Backspace], h, ^H
  40. Back up one directory level
  41. .It Ic ~
  42. Change to the HOME directory
  43. .It Ic -
  44. Change to the last visited directory
  45. .It Ic o
  46. Open directory in desktop file manager
  47. .It Ic /, &
  48. Change filter (more information below)
  49. .It Ic c
  50. Change into the given directory
  51. .It Ic d
  52. Toggle detail view
  53. .It Ic D
  54. Toggle current file details screen
  55. .It Ic \&.
  56. Toggle hide .dot files
  57. .It Ic s
  58. Toggle sort by file size
  59. .It Ic S
  60. Toggle disk usage analyzer mode
  61. .It Ic t
  62. Toggle sort by time modified
  63. .It Ic \&!
  64. Spawn SHELL in PWD (fallback sh)
  65. .It Ic z
  66. Run the system top utility.
  67. .It Ic e
  68. Open current entry in EDITOR (fallback vi)
  69. .It Ic p
  70. Open current entry in PAGER (fallback less)
  71. .It Ic ^K
  72. Invoke file name copier
  73. .It Ic ^L
  74. Force a redraw
  75. .It Ic \&?
  76. Toggle help screen
  77. .It Ic q
  78. Quit
  79. .El
  80. .Pp
  81. Backing up one directory level will set the cursor position at the
  82. directory you came out of.
  83. .Pp
  84. .Nm
  85. supports the following options:
  86. .Pp
  87. .Fl d
  88. start in detail view mode
  89. .Pp
  90. .Fl S
  91. start in disk usage analyzer mode
  92. .Pp
  93. .Fl v
  94. show version and exit
  95. .Sh CONFIGURATION
  96. .Nm
  97. is configured by modifying
  98. .Pa config.h
  99. and recompiling the code.
  100. .Pp
  101. See the environment and examples sections below for more options and information.
  102. .Sh FILTERS
  103. Filters support regexes to display only the matched
  104. entries in the current directory view. This effectively allows
  105. searching through the directory tree for a particular entry.
  106. .Pp
  107. Filters do not stack on top of each other. They are applied anew
  108. every time.
  109. .Pp
  110. An empty filter expression resets the filter.
  111. .Pp
  112. If
  113. .Nm
  114. is invoked as root the default filter will also match hidden
  115. files.
  116. .Sh ENVIRONMENT
  117. The SHELL, EDITOR and PAGER environment variables take precedence
  118. when dealing with the !, e and p commands respectively.
  119. .Pp
  120. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  121. directory with.
  122. .Pp
  123. \fBNNN_OPENER:\fR set to your desktop environment's default
  124. mime opener to override all custom mime associations.
  125. .br
  126. Examples: xdg-open, gio open, gvfs-open.
  127. .Pp
  128. \fBNNN_FALLBACK_OPENER:\fR set to your desktop environment's default
  129. mime opener to use as a fallback when no association is set for a file
  130. type. Custom associations are listed in the EXAMPLES section below.
  131. .Pp
  132. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  133. .Bd -literal
  134. -------------------------------------
  135. #!/bin/sh
  136. echo -n $1 | xsel --clipboard --input
  137. -------------------------------------
  138. .Sh EXAMPLES
  139. The following example shows one possible configuration for
  140. file associations which is also the default if environment
  141. variable NNN_OPENER is not set:
  142. .Bd -literal
  143. -----------------------------------------------
  144. struct assoc assocs[] = {
  145. { "\\.(c|cpp|h|txt|log|sh)$", "vi" },
  146. { "\\.(wma|mp3|ogg|flac)$", "mpv" },
  147. { "\\.pdf$", "zathura" },
  148. };
  149. -----------------------------------------------
  150. Plain text files are opened with vi.
  151. .br
  152. Any other file types are opened with the 'xdg-open' command.
  153. .Ed
  154. .Sh KNOWN ISSUES
  155. If you are using urxvt you might have to set backspacekey to DEC.
  156. .Sh AUTHORS
  157. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  158. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  159. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  160. .Sh HOME
  161. .Em https://github.com/jarun/nnn