My build of nnn with minor changes
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

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