rover.1 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. .TH ROVER 1 rover\-1.0.0
  2. .SH NAME
  3. rover \- file browser for the terminal
  4. .SH SYNOPSIS
  5. .B rover
  6. [\fB\-d\fR|\fB\-\-save\-cwd\fR \fIFILE\fR]
  7. [\fB\-m\fR|\fB\-\-save\-marks\fR \fIFILE\fR]
  8. [\fIDIR\fR [\fIDIR\fR [\fIDIR\fR [...]]]]
  9. .br
  10. .B rover
  11. \fB\-h\fR|\fB\-\-help\fR
  12. .br
  13. .B rover
  14. \fB\-v\fR|\fB\-\-version\fR
  15. .SH DESCRIPTION
  16. Browse current working directory or the ones specified.
  17. .SH OPTIONS
  18. .TP
  19. \fB\-d\fR, \fB\-\-save\-cwd\fR
  20. write last visited path to \fIFILE\fR before exiting
  21. .TP
  22. \fB\-m\fR, \fB\-\-save\-marks\fR
  23. append path of marked entries to \fIFILE\fR before exiting;
  24. if \fIFILE\fR doesn't exist, it'll be created
  25. .TP
  26. \fB\-h\fR, \fB\-\-help\fR
  27. print help message and exit
  28. .TP
  29. \fB\-v\fR, \fB\-\-version\fR
  30. print program version and exit
  31. .SH CONCEPTS
  32. .SS TABS
  33. .PP
  34. Rover is operated via a tabbed interface. There are always ten tabs in total,
  35. numbered from 0 to 9. At any given moment, one (and only one) tab is visible on
  36. the screen. The number of the tab currently visible is shown on the top right
  37. corner of the screen. To view a different tab, one just needs to press its
  38. corresponding number. Each tab has a \fBcurrent working directory\fR (\fBCWD\fR)
  39. associated to it, also shown on the top of the screen. The \fBCWD\fR of the
  40. visible tab is changed as the user navigates through the file system.
  41. .PP
  42. It's also possible to set the \fBCWD\fR of tabs at Rover start-up by passing the
  43. desired paths as command-line arguments. The tab number 0 always starts at
  44. \fB$HOME\fR. If more than nine directories are specified, only the first nine
  45. are used for tabs 1\-9 and the rest are ignored. Tabs for which an invalid path
  46. was assigned will also start at \fB$HOME\fR. Remaining tabs not specified on
  47. the command line start at the current working directory of the parent process.
  48. .SS ENTRIES
  49. .PP
  50. An \fBentry\fR is anything that may be found inside a directory in some file
  51. system. It may be a file, a directory, a link, a socket, a FIFO, etc. In its
  52. most basic usage, Rover will gather a list of entries inside the \fBCWD\fR
  53. and present it on the screen.
  54. .PP
  55. There is always one (and only one) highlighted entry visible. This is both the
  56. \fBcursor\fR location and the current \fBselection\fR. The highlighting moves as
  57. the user navigates the entry list with cursor commands. Simple operations, like
  58. entering a subdirectory or renaming a file, are done by first selecting the
  59. relevant entry and then issuing the appropriate command (see the \fBCOMMANDS\fR
  60. section). For commands that operate on more than one entry at once (batch
  61. commands), selection is not sufficient, since it's not possible to select more
  62. than one entry. Batch commands are performed on marked entries.
  63. .SS MARKS
  64. .PP
  65. For some file operations, it is convenient to first \fBmark\fR all entries that
  66. are to be processed, so that the appropriate command only needs to be issued
  67. once. For such purpose, Rover allows an arbitrary number of entries to be
  68. marked, with the limitation that they must be all in the same directory.
  69. .PP
  70. Unlike simple selection, the effect of marks is not constrained by visibility.
  71. This is so one can mark a number of entries in some directory, navigate to another
  72. directory, and then finally issue a copy or move command. Moreover, marks are
  73. shared over all tabs. This allows one to mark some entries in one tab that is
  74. pointed to the "source" directory of the operation and then issue the command on
  75. another tab that is pointed to the "destination" directory.
  76. .SH COMMANDS
  77. .TP
  78. .B q
  79. Quit rover.
  80. .TP
  81. .B j/k
  82. Move cursor down/up.
  83. .TP
  84. .B J/K
  85. Move cursor down/up 10 lines.
  86. .TP
  87. .B g/G
  88. Move cursor to top/bottom of listing.
  89. .TP
  90. .B l
  91. Enter selected directory.
  92. .TP
  93. .B h
  94. Go to parent directory.
  95. .TP
  96. .B H
  97. Go to \fB$HOME\fR directory.
  98. .TP
  99. .B t
  100. Go to the target of the selected link.
  101. .TP
  102. .B y
  103. Copy location to clipboard.
  104. .TP
  105. .B p
  106. Go to location in clipboard.
  107. .TP
  108. .B r
  109. Refresh directory listing.
  110. .TP
  111. .B <RETURN>
  112. Open \fB$SHELL\fR on the current directory.
  113. .TP
  114. .B <SPACE>
  115. Open \fB$PAGER\fR with the selected file.
  116. .TP
  117. .B e
  118. Open \fB$VISUAL\fR or \fB$EDITOR\fR with the selected file.
  119. .TP
  120. .B o
  121. Open \fB$OPEN\fR with the selected file.
  122. .TP
  123. .B /
  124. Start incremental search.
  125. .TP
  126. .B f/d/s
  127. Toggle file/directory/hidden listing.
  128. .TP
  129. .B n/N
  130. Create new file/directory.
  131. .TP
  132. .B R
  133. Rename selected file or directory.
  134. .TP
  135. .B E
  136. Toggle execute permission of the selected file.
  137. .TP
  138. .B D
  139. Delete selected file or (empty) directory.
  140. .TP
  141. .B m
  142. Toggle mark on the selected entry.
  143. .TP
  144. .B M
  145. Toggle mark on all visible entries.
  146. .TP
  147. .B a
  148. Mark all visible entries.
  149. .TP
  150. .B X/C/V
  151. Delete/copy/move all marked entries.
  152. .TP
  153. .B 0-9
  154. Change tab.
  155. .SH LINE EDITING
  156. .PP
  157. Some commands will prompt for an input string. For example, in order to rename a
  158. file, the user must supply the new name. This string will appear at the bottom
  159. of the screen and must be edited interactively using the keyboard. Printable
  160. keys will insert characters at the cursor position. The following shortcuts are
  161. available for line editing:
  162. .TP
  163. .B <TAB>
  164. Finish editing and \fBcancel\fR command.
  165. .TP
  166. .B <RETURN>
  167. Finish editing and \fBconfirm\fR command.
  168. .TP
  169. .B <LEFT>/<RIGHT>
  170. Move insertion cursor left/right.
  171. .TP
  172. .B <UP>/<DOWN>
  173. Move insertion cursor to beginning/end of string.
  174. .TP
  175. .B <BACKSPACE>
  176. Remove one character before cursor.
  177. .TP
  178. .B <DELETE>
  179. Remove one character after cursor.
  180. .TP
  181. .B <CONTROL>+u
  182. Clear line (remove all characters).
  183. .SH ENVIRONMENT VARIABLES
  184. .TP
  185. .B HOME
  186. Full path of the home directory.
  187. .TP
  188. .B PATH
  189. Colon\-separated path list for program directories.
  190. .TP
  191. .B SHELL
  192. Name of shell program (e.g. \fI/bin/sh\fP).
  193. .TP
  194. .B PAGER
  195. Name of pager program (e.g. \fIless\fP).
  196. .TP
  197. .B VISUAL
  198. Name of visual editor program (e.g. \fIvim\fP or \fIemacs\fP).
  199. .TP
  200. .B EDITOR
  201. Name of line editor program (e.g. \fIed\fP or \fIex\fP).
  202. .TP
  203. .B CLIP
  204. Path of clipboard file (e.g. \fI/tmp/clipboard\fP).
  205. The user must have read and write permissions on this path.
  206. If this variable is not defined, Rover will use an internal, in-memory, clipboard.
  207. .TP
  208. .B RVSEL
  209. Rover writes the name of the selected entry to this variable before running a
  210. subprocess. This allows one to use the selection as part of an arbitrary command
  211. by first invoking a shell from Rover (see the \fBCOMMANDS\fR section) and then
  212. typing something like \fBgrep abc "$RVSEL"\fR.
  213. .TP
  214. .B OPEN
  215. This variable can be set to a command accepting a single argument: a filename.
  216. The command is supposed to open the given file with an appropriate program.
  217. .TP
  218. .B ROVER_SHELL, ROVER_PAGER, ROVER_VISUAL, ROVER_EDITOR, ROVER_OPEN
  219. If any of these variables are set, they override \fBSHELL\fR, \fBPAGER\fR,
  220. \fBVISUAL\fR, \fBEDITOR\fR and \fBOPEN\fR, respectively.
  221. .SH CONFIGURATION
  222. .PP
  223. If you want to change Rover key bindings or colors, you can edit the
  224. \fIconfig.h\fP file in the source distribution and recompile the program. Rover
  225. will not use or create any external file during its execution, except when asked
  226. to do so by user commands or command-line options.
  227. .SH NOTES
  228. .PP
  229. \fBImportant\fR: Currently, Rover never asks for confirmation before overwriting
  230. existing files while copying/moving marked entries. Please be careful to not
  231. accidentally lose your data.
  232. .SH LINKS
  233. Rover homepage: <http://lecram.github.io/p/rover/>.
  234. .SH SEE ALSO
  235. \fBnoice(1)\fR, \fBmc(1)\fR, \fBvifm(1)\fR, \fBranger(1)\fR