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

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