My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

210 line
5.2 KiB

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