My build of nnn with minor changes
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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