My build of nnn with minor changes
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

nnn.1 4.5 KiB

10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
10年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. .Dd August 21, 2016
  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 /, &
  46. Change filter (more information below)
  47. .It Ic c
  48. Change into the given directory
  49. .It Ic d
  50. Toggle detail view
  51. .It Ic D
  52. Toggle current file details screen
  53. .It Ic \&.
  54. Toggle hide .dot files
  55. .It Ic s
  56. Toggle sort by file size
  57. .It Ic S
  58. Toggle disk usage analyzer mode
  59. .It Ic t
  60. Toggle sort by time modified
  61. .It Ic \&!
  62. Spawn SHELL in PWD (fallback sh)
  63. .It Ic z
  64. Run the system top utility.
  65. .It Ic e
  66. Open current entry in EDITOR (fallback vi)
  67. .It Ic p
  68. Open current entry in PAGER (fallback less)
  69. .It Ic ^K
  70. Invoke file name copier
  71. .It Ic ^L
  72. Force a redraw
  73. .It Ic \&?
  74. Toggle help screen
  75. .It Ic q
  76. Quit
  77. .El
  78. .Pp
  79. Backing up one directory level will set the cursor position at the
  80. directory you came out of.
  81. .Pp
  82. .Nm
  83. supports the following option:
  84. .Pp
  85. .Fl d
  86. Open in detail view mode.
  87. .Sh CONFIGURATION
  88. .Nm
  89. is configured by modifying
  90. .Pa config.h
  91. and recompiling the code.
  92. .Pp
  93. Environment variable
  94. .Ar NNN_OPENER
  95. overrides all hard-coded file associations.
  96. .Pp
  97. Hard-coded associations are specified by regexes matching on the currently selected filename. If a match is found the associated program is executed with the filename passed in as the argument. If no match is found the environment variable
  98. .Ar NNN_FALLBACK_OPENER
  99. is invoked, if set.
  100. .Pp
  101. No particular utility is set as the default opener as no standalone universal opener for all mime types exists.
  102. .Pp
  103. See the examples section below for more information.
  104. .Sh FILTERS
  105. Filters support regexes to display only the matched
  106. entries in the current directory view. This effectively allows
  107. searching through the directory tree for a particular entry.
  108. .Pp
  109. Filters do not stack on top of each other. They are applied anew
  110. every time.
  111. .Pp
  112. An empty filter expression resets the filter.
  113. .Pp
  114. If
  115. .Nm
  116. is invoked as root the default filter will also match hidden
  117. files.
  118. .Sh ENVIRONMENT
  119. The SHELL, EDITOR and PAGER environment variables take precedence
  120. when dealing with the !, e and p commands respectively.
  121. .Pp
  122. \fBNNN_OPENER:\fR set to your desktop environment's default
  123. mime opener to override all custom mime associations.
  124. .br
  125. Examples: xdg-open, gnome-open, gvfs-open.
  126. .Pp
  127. \fBNNN_FALLBACK_OPENER:\fR set to your desktop environment's default
  128. mime opener to use as a fallback when no association is set for a file
  129. type. Custom associations are listed in the EXAMPLES section below.
  130. .Pp
  131. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  132. .Bd -literal
  133. -------------------------------------
  134. #!/bin/sh
  135. echo -n $1 | xsel --clipboard --input
  136. -------------------------------------
  137. .Sh EXAMPLES
  138. The following example shows one possible configuration for
  139. file associations which is also the default if environment
  140. variable NNN_OPENER is not set:
  141. .Bd -literal
  142. -----------------------------------------------
  143. struct assoc assocs[] = {
  144. { "\\.(c|cpp|h|txt|log|sh)$", "vi" },
  145. { "\\.(wma|mp3|ogg|flac)$", "mpv" },
  146. { "\\.pdf$", "zathura" },
  147. };
  148. -----------------------------------------------
  149. Plain text files are opened with vi.
  150. .br
  151. Any other file types are opened with the 'xdg-open' command.
  152. .Ed
  153. .Sh KNOWN ISSUES
  154. If you are using urxvt you might have to set backspacekey to DEC.
  155. .Sh AUTHORS
  156. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  157. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  158. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  159. .Sh HOME
  160. .Em https://github.com/jarun/nnn