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

8 роки тому
10 роки тому
10 роки тому
10 роки тому
10 роки тому
10 роки тому
10 роки тому
10 роки тому
8 роки тому
8 роки тому
8 роки тому
8 роки тому
8 роки тому
8 роки тому
8 роки тому
10 роки тому
9 роки тому
8 роки тому
8 роки тому
8 роки тому
10 роки тому
10 роки тому
10 роки тому
10 роки тому
9 роки тому
8 роки тому
8 роки тому
10 роки тому
8 роки тому
10 роки тому
8 роки тому
8 роки тому
8 роки тому
10 роки тому
10 роки тому
10 роки тому
10 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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, file associations and navigation. 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. Show details of selected file
  53. .It Ic \&.
  54. Toggle hide .dot files
  55. .It Ic s
  56. Toggle sort by file size
  57. .It Ic t
  58. Toggle sort by time modified
  59. .It Ic \&!
  60. Spawn SHELL in PWD (fallback sh)
  61. .It Ic z
  62. Run the system top utility.
  63. .It Ic e
  64. Open current entry in EDITOR (fallback vi)
  65. .It Ic p
  66. Open current entry in PAGER (fallback less)
  67. .It Ic ^K
  68. Invoke file name copier
  69. .It Ic ^L
  70. Force a redraw
  71. .It Ic \&?
  72. Show help
  73. .It Ic q
  74. Quit
  75. .El
  76. .Pp
  77. Backing up one directory level will set the cursor position at the
  78. directory you came out of.
  79. .Pp
  80. .Nm
  81. supports the following option:
  82. .Pp
  83. .Fl d
  84. Open in detail view mode.
  85. .Sh CONFIGURATION
  86. .Nm
  87. is configured by modifying
  88. .Pa config.h
  89. and recompiling the code.
  90. .Pp
  91. Environment variable
  92. .Ar NNN_OPENER
  93. overrides all hard-coded file associations.
  94. .Pp
  95. 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
  96. .Ar NNN_FALLBACK_OPENER
  97. is invoked, if set.
  98. .Pp
  99. No particular utility is set as the default opener as no standalone universal opener for all mime types exists.
  100. .Pp
  101. See the examples section below for more 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_OPENER:\fR set to your desktop environment's default
  121. mime opener to override all custom mime associations.
  122. .br
  123. Examples: xdg-open, gnome-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