My build of nnn with minor changes
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

192 lines
4.9 KiB

  1. .Dd May 12, 2017
  2. .Dt NNN 1
  3. .Os
  4. .Sh NAME
  5. .Nm nnn
  6. .Nd the missing terminal file browser for X
  7. .Sh SYNOPSIS
  8. .Nm
  9. .Op Ar -d
  10. .Op Ar -i
  11. .Op Ar -p custom_nlay
  12. .Op Ar -S
  13. .Op Ar -v
  14. .Op Ar -h
  15. .Op Ar PATH
  16. .Sh DESCRIPTION
  17. .Nm
  18. (Noice is Not Noice) is a performance-optimized fork of the noice terminal file browser with extensive desktop integration, customizable text file or action handler, simplified navigation, navigate-as-you-type mode, disk usage analyzer mode, comprehensive file details and much more. It remains a simple and efficient file browser that stays out of your way.
  19. .Pp
  20. .Nm
  21. defaults to the current directory if
  22. .Ar PATH
  23. is not specified.
  24. .Pp
  25. .Nm
  26. supports both vi-like and emacs-like key bindings in the default
  27. configuration. The default key bindings are listed below.
  28. .Pp
  29. .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
  30. .It Ic [Up], k, ^P
  31. Move to previous entry
  32. .It Ic [Down], j, ^N
  33. Move to next entry
  34. .It Ic [PgUp], ^U
  35. Scroll up half a page
  36. .It Ic [PgDn], ^D
  37. Scroll down half a page
  38. .It Ic [Home], g, ^, ^A
  39. Move to the first entry
  40. .It Ic [End], G, $, ^E
  41. Move to the last entry
  42. .It Ic [Right], [Enter], l, ^M
  43. Open file or enter directory
  44. .It Ic [Left], [Backspace], h, ^H
  45. Back up one directory level
  46. .It Ic [Insert]
  47. Toggle navigate-as-you-type mode
  48. .It Ic ~
  49. Change to the HOME directory
  50. .It Ic &
  51. Change to initial directory
  52. .It Ic -
  53. Change to the last visited directory
  54. .It Ic /
  55. Change filter (more information below)
  56. .It Ic ^/
  57. Search directory in desktop search tool
  58. .It Ic \&.
  59. Toggle hide .dot files
  60. .It Ic c
  61. Change into the given directory
  62. .It Ic d
  63. Toggle detail view
  64. .It Ic D
  65. Toggle current file details screen
  66. .It Ic m
  67. Show concise mediainfo
  68. .It Ic M
  69. Show full mediainfo
  70. .It Ic s
  71. Toggle sort by file size
  72. .It Ic S
  73. Toggle disk usage analyzer mode
  74. .It Ic t
  75. Toggle sort by time modified
  76. .It Ic \&!
  77. Spawn SHELL in PWD (fallback sh)
  78. .It Ic e
  79. Open current entry in EDITOR (fallback vi)
  80. .It Ic o
  81. Open directory in NNN_DE_FILE_MANAGER
  82. .It Ic p
  83. Open current entry in PAGER (fallback less)
  84. .It Ic ^K
  85. Invoke file name copier
  86. .It Ic ^L
  87. Force a redraw
  88. .It Ic \&?
  89. Toggle help screen
  90. .It Ic Q
  91. Quit and change directory
  92. .It Ic q, ^Q
  93. Quit
  94. .El
  95. .Pp
  96. Backing up one directory level will set the cursor position at the
  97. directory you came out of.
  98. .Pp
  99. .Nm
  100. supports the following options:
  101. .Pp
  102. .Fl d
  103. start in detail view mode
  104. .Pp
  105. .Fl i
  106. start in navigate-as-you-type mode
  107. .Pp
  108. .Fl "p custom_nlay"
  109. path to custom nlay
  110. .Pp
  111. .Fl S
  112. start in disk usage analyzer mode
  113. .Pp
  114. .Fl v
  115. show version and exit
  116. .Pp
  117. .Fl h
  118. show program help and exit
  119. .Sh CONFIGURATION
  120. .Nm
  121. uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on OS X) as the desktop
  122. opener. If \fBNNN_OPENER\fR (see ENVIRONMENT section below) is not set,
  123. .Nm
  124. invokes
  125. .Pa nlay
  126. to view text files (recognized by extension) or run actions. It is a highly
  127. customizable bash shell script. Read more on
  128. .Pa nlay
  129. at:
  130. .br
  131. .Em https://github.com/jarun/nnn/wiki/all-about-nlay
  132. .Pp
  133. Configuring
  134. .Nm
  135. to change to the last visited directory on quit requires shell integration in a
  136. few easy steps. Please visit the project page (linked below) for the
  137. instructions.
  138. .Sh FILTERS
  139. Filters support regexes to display only the matched
  140. entries in the current directory view. This effectively allows
  141. searching through the directory tree for a particular entry. Matching entries
  142. are shown instantly (search-as-you-type).
  143. .Pp
  144. Filters do not stack on top of each other. They are applied anew
  145. every time. There are 4 ways to reset a filter: \fI^L\fR, an empty filter
  146. expression, a search with no results or an extra backspace at the filter prompt
  147. (like vi).
  148. .Pp
  149. If you want to list all matches starting with the filter expression (a common
  150. use case), start the expression with a
  151. .Pa ^
  152. (caret) symbol.
  153. .Pp
  154. If
  155. .Nm
  156. is invoked as root the default filter will also match hidden files.
  157. .Pp
  158. In the \fInavigate-as-you-type mode\fR directories are opened in filter mode,
  159. allowing continuous navigation. Works best with the \fBarrow keys\fR.
  160. .Sh ENVIRONMENT
  161. The SHELL, EDITOR and PAGER environment variables take precedence
  162. when dealing with the !, e and p commands respectively.
  163. .Pp
  164. \fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
  165. directory with.
  166. .Pp
  167. \fBNNN_OPENER:\fR set \fIxdg-open\fR (on Linux) or \fIopen(1)\fR desktop opener
  168. to handle all file types.
  169. .Bd -literal
  170. export NNN_OPENER=1
  171. .Ed
  172. .Pp
  173. \fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal
  174. screensaver.
  175. .Pp
  176. \fBNNN_COPIER:\fR set to a clipboard copier script. For example, on Linux:
  177. .Bd -literal
  178. -------------------------------------
  179. #!/bin/sh
  180. echo -n $1 | xsel --clipboard --input
  181. -------------------------------------
  182. .Ed
  183. .Sh KNOWN ISSUES
  184. If you are using urxvt you might have to set backspacekey to DEC.
  185. .Sh AUTHORS
  186. .An Lazaros Koromilas Aq Mt lostd@2f30.org ,
  187. .An Dimitris Papastamos Aq Mt sin@2f30.org ,
  188. .An Arun Prakash Jana Aq Mt engineerarun@gmail.com .
  189. .Sh HOME
  190. .Em https://github.com/jarun/nnn