386BSD 0.1 development
[unix-history] / usr / local / lib / utree.help
CommitLineData
695c3b3a
WJ
1#
2# UTREE.HELP
3# UTREE help pages
4# 3.00-um klin, Sun May 5 17:41:59 1991
5# Directory: /usr/local/lib (default)
6#
7# Copyright (c) 1991 by Peter Klingebiel & UNIX Magazin Muenchen.
8# For copying and distribution information see the file COPYRIGHT.
9#
10# Help about items is enclosed in two lines '#@item' and '#@'.
11# The string 'item' is used as item for the menuline, the lines
12# between these opening and closing lines are the help lines
13# for the topic 'item'. The upper case character in 'item' is used
14# as hotkey for selecting help about this topic.
15# Be sure that all items separated by a blank fit in one screen line!
16# Don't change the hot keys because they are hard coded in utree!
17#
18# SCCSID=@(#) utree.help (utree 3.00-m) May 5 1991
19
20#@Help h: About help
21
22 The utree help page menu lets you select help pages about the
23 following topics (menu hotkeys are enclosed in brackets):
24
25 (h) Help This help page.
26 (a) About About utree and some naming conventions.
27 (u) Usage Utree usage and command line options.
28 (g) Global Global commands for tree and file screen.
29 (t) Tree Commands for the tree screen.
30 (f) File Commands for the file screen.
31 (e) Edit Commands for the builtin line editor.
32 (v) Vars Utree variables and variable definition.
33 (c) Cmds Filetype dependent command definition.
34 (l) Line Line format for tree, file and filetype commands.
35 (k) Keys Function keys used by utree.
36 (p) Patterns File and time pattern matching.
37
38#@
39#@About a: About utree and key naming conventions
40
41 This is utree 3.00-um, a screen oriented filesystem browser.
42
43 Copyright (c) 1991 Peter Klingebiel & UNIX Magazin.
44 All rights reserved.
45
46 First utree version (utree 1.00) created in July 1988.
47
48
49
50 The naming conventions for keys in the help pages are:
51 'C-key' means <CONTROL>+<key> (Hit <CONTROL) AND <key>)
52 'M-key' means <ESCAPE> <key> (Hit <ESCAPE) THEN <key>)
53
54 Many function keys are supported by utree, i.e. the four
55 cursor keys, the next-page and previous-page keys, the
56 function keys F0 (or F10) .. F9 and many others.
57 (See the keys help page for more information)
58#@
59#@Usage u: About utree usage and command line options
60 Usage: utree [-abcgrqstuvw] [-d var=[val]] [-d typ:[cmd]]
61 [-i ind] [-l lev] [-x cmd] [-SV] [rootdir]
62
63 -S Ignore default minimal screen size.
64 -V Display program version.
65 -a Read in all (including hidden) directories.
66 -b No bell.
67 -c No clock display/update in echoline.
68 -d var=[val] Define/undefine variable var.
69 -d typ:[cmd] Set/unset type command for filetype typ.
70 -g No graphic characters.
71 -i ind Set tree indention to ind (default 4)
72 -l lev Build tree up to level lev.
73 -q Build tree up to level 2 (like -l 2).
74 -r Recreate tree list (always scan disk).
75 -s No hardware scrolling.
76 -t Sort file by modification times.
77 -u No scan tree for changes in tree.
78 -v No bold-reverse video attribute.
79 -w No warnings about unreadable directories.
80 -x cmd Use string cmd as initial input.
81 The options bcgsuvw may be pre-set in the environment variable UTREE.
82#@
83#@Global g: About global commands for tree and file screen
84 The following commands are common for tree and file screen:
85
86 C-z Exit utree.
87 C-c,C-g,C-y Cancel command or input.
88 C-l Refresh/redisplay screen.
89 C-t,TAB Move to next tagged directory or file.
90 M-h,h,? Display help menu and pages.
91 C-@,M-@,@ Mark current directory or file.
92 M-g,# Goto to previously marked file or directory.
93 a Display utree version.
94 d Display current date and time.
95 j Next directory or file (for vi fans).
96 k Previous directory or file (for vi fans).
97 n Change sort criteria (lexical/time) and resort files.
98 t Tag files in tree.
99 u Untag files tree.
100 w Display pathname of current directory.
101 = Show and set/reset variables.
102 : Show and set/unset filetype commands.
103 ! Execute a system command.
104 $ Escape to an interactive shell.
105#@
106#@Tree t: About utree directory tree screen commands
107
108 All tree commands can be given in lower or uppercase letters:
109
110 CR,NL,SP Change to file screen of current directory.
111 C-f Move to next directory on same level.
112 C-n Move to next directory.
113 C-b Move to previous directory on same level.
114 C-p Move to previous directory.
115 C-v Move one page forward.
116 M-v,C-w Move one page backward.
117 C-a Move to begin of directory tree.
118 C-e Move to end of directory tree.
119 TAB,C-t Move to next directory containing tagged files.
120 C-u,M-u Scroll up directory tree.
121 C-d,M-d Scroll down directory tree.
122 C-@,M-@,@ Mark current directory.
123 M-g,# Goto previously marked directory.
124 b Backup directory/tree.
125 c,> Change to a directory.
126 f Find files in directory/tree matching a pattern.
127 g Search for pattern in files.
128 i Show some directory information.
129 l List files in directory/tree matching a pattern.
130 m Create new directory.
131 n Change sort criteria and resort file list.
132 o Write list of tree, files or tagged files to file.
133 q Exit utree.
134 r Remove current directory.
135 s Show/change status of current directory.
136 t Tag files in tree.
137 u Untag files in tree.
138 + Enlarge tree window.
139 - Shrink tree window.
140 / Scan tree and rebuild directories if needed.
141 \ Scan directory for subdirectories and insert subtree.
142 0 Switch tree/user commands menuline.
143 1..9 Execute user defined tree command.
144
145 For further information about filename patterns for the commands find,
146 grep, list, tag and untag see the pattern help page.
147#@
148#@File f: About utree file screen commands
149
150 All file commands can be given in lower or upper case letters.
151 For most commands a lowercase letter hits the current file only,
152 an uppercase letter hits all selected (tagged) files.
153
154 CR,NL,SP,q Change back to tree screen.
155 C-f Move to next file.
156 C-b Move to previous file.
157 C-n Move to file on next line.
158 C-p Move to file on previous line.
159 C-v Move one page forward.
160 M-v,C-w Move one page backward.
161 C-a Move to first file.
162 C-e Move to last file.
163 TAB,C-t Move to next tagged file.
164 C-u,M-u Scroll up file screen.
165 C-d,M-d Scroll down file screen.
166 C-@,M-@,@ Mark current file.
167 M-g,# Goto previously marked file.
168 c,C Copy file/tagged files.
169 e,E Edit file/tagged files.
170 f Find files matching a pattern.
171 g Search for pattern in file/tagged files.
172 i,I Show some information about file/tagged files.
173 l List files matching a pattern.
174 m,M Rename/move file/tagged files.
175 n Change sort criteria and resort file list.
176 p,P Send file/tagged files to printer spooler.
177 r,R Remove file/tagged files.
178 s,S Show/change status of file/tagged files.
179 t,T Tag/select files for further processing.
180 u,U Untag file/tagged files.
181 v,V View file/tagged files.
182 x Execute current file or call a command for it.
183 > If current file is a directory, change to.
184 < Change back to parent directory.
185 / Rebuild file list (i.e. after shell escape).
186 0 Switch file/user commands menuline.
187 1..9 Execute user defined file command.
188
189 For further information about filename patterns for the commands find,
190 grep, list, tag and untag see the pattern help page.
191#@
192#@Edit e: About utree line editor commands
193
194 The builtin utree line editor knows the following functions:
195 (Function keys are supported if known by termcap/terminfo)
196
197 CR,NL Accept and send input line.
198 C-c,C-g,C-y Cancel input line and line editor.
199 C-o Switch insert/overwrite mode.
200 C-l Redisplay input line.
201 C-f,C-n Move cursor one character forward.
202 C-b,C-p Move cursor one character backward.
203 C-a Move cursor to beginning of line.
204 C-b Move cursor to end of line.
205 C-v,M-d Scroll forward line.
206 M-v,C-w,M-u Scroll backward line.
207 C-d Delete character under cursor.
208 C-h,DEL Delete character left from cursor.
209 C-x Delete line.
210 C-k Delete from cursor position to end of line.
211 C-t Transpose characters.
212 M-h Display help menu and pages.
213 C-@,M-@ Set mark at current position.
214 M-g Move cursor to previously set mark.
215#@
216#@Vars v: About utree variables
217
218 Utree knows about and uses the following variables which may be
219 set/unset at startup in the startupfile '$HOME/.utree', with the
220 commandline option '-d' or the variables command '=':
221
222 BL BELL Allow ringing of the bell.
223 CL CLOCK Show and update clock every second.
224 GC GRAPHCHARS Use graphical character set.
225 BR BOLDREVERSE Use bold+reverse video attribute.
226 TS TERMSCROLL Use terminal scrolling.
227 ST SCANTREE Allow scanning the tree for changes.
228 WC WARNDIRS Warning about unreadable directories.
229 TI TREEINDENT Set tree indention (2..9)
230 ED EDITOR Editor.
231 EO EDITOPTS Editor options.
232 PG PAGER File pager/viewer.
233 PO PAGEOPTS Pager options.
234 XD HEXDUMPER File hexdumper.
235 XO XDUMPOPTS Dumper options.
236 LP LINEPRINTER Printer spooler command.
237 LO LPRINTOPTS Printer options.
238 BK BACKUP Backup program.
239 BO BACKUPOPTS Backup options.
240 SH SHELL Interactive shell.
241
242 T1..9 TREECMD1..9 User defined commands 1..9 for tree screen.
243 F1..9 FILECMD1..9 User defined commands 1..9 for file screen.
244
245 Variables are set with a line 'shorthand=value' or 'variable=value'
246 (i.e. 't1=ps -ef'), unset with a line 'shorthand=' or 'variable='
247 (i.e. 't1='). When defining user tree or file commands some sprintf
248 like format characters lead in by a percent sign ('%') have a
249 special meaning and are expanded before the command is executed.
250 For further information about the command line format see the
251 line help page.
252
253 The last sharp sign (#) in a variable definition is used as leadin
254 for a menu item of the defined user file or tree command.
255 Example: the variable definition 'fc1=wc -l %F # Count' for user
256 defined file command 1 is expanded to 'wc -l filename' and in the
257 user command file menu 'Count' is displayed behind menu item 1.
258#@
259#@Cmds c: About filetype dependent commands
260
261 On file screen you can execute a file or a command on it with
262 the utree command execute ('x'). you are requested for parameters
263 if the current file is executable, for a command to execute on the
264 current file if he is not executable. For a type of file you can
265 define so called filetype commands which are called if the current
266 file matches this filetype (or extension).
267
268 Filetype commands can be set/unset at startup in the startupfile
269 '$HOME/.utree', with the commandline option '-d' or the filetype
270 command ':' similar to setting/unsetting variables.
271 Filetype commands are set with a line like 'filetype:command' (i.e.
272 '*.c:cc -c -O'). The command (i.e. 'cc -c -O') is then executed
273 if the current file matches the filetype pattern ('*.c' for 'foo.c').
274 Filetype commands are unset with a line 'filetype:' (i.e. '*.c:').
275
276 When defining filetype commands some sprintf like format characters
277 lead in by a percent sign ('%') have a special meaning and are
278 expanded before the command is executed. For further information
279 about filename patterns and the format characters and her meaning
280 see the pattern and line help pages.
281#@
282#@Line l: About line format for tree, file and filetype commands
283
284 When defining a user defined tree or file command or a
285 filetype command some sprintf like format characters are
286 known and expanded before the command is executed.
287 These format characters and their meaning are:
288
289 %D,%d Full pathname of current directory.
290 %F,%f Filename of current file or directory.
291 %P,%p Full pathname of current file or directory.
292 %B,%b Basename of current file or directory.
293 %S,%s Additional parameter(s) for a command which are requested
294 before the command is executed.
295
296 I.e. the command line 'command %s %f >%b.out' is expanded before
297 execution to 'command parameters filename basename.out' with filename
298 and basename.out ('%f', '%b.out') of the current file or directory and
299 parameters ('%s') which are requested before.
300
301 For further information about tree/file and filetype commands see
302 the vars and defs help pages.
303#@
304#@Keys k: About functions keys used by utree
305
306 The following function keys are supported by utree if they are
307 defined in your system's termcap or terminfo database:
308
309 CursorKeys Move left/right/up/down (C-b/C-f/C-p/C-n)
310 Home/Begin Move to beginning (C-a)
311 End Move to end (C-e)
312 NextPage/PageDown Move one page down (C-v)
313 PrevPage/PageUp Move one page up (C-w)
314 ScrollUp Scroll one line up (C-u)
315 ScrollDown Scroll one line down (C-d)
316 InsertChar Change to directory (>) or switch mode (C-o)
317 DeleteChar Change to parent dir (<) or delete char (C-d)
318 Clear Refresh screen or line (C-l)
319 Print Print a file or files (p)
320 Help Call the help menu (h)
321 Select/Mark Set a mark
322 Find Move to previously set mark
323 Enter Switch tree/file screen (NL,SP)
324 Command/Do Execute a system command (!)
325 FuncKey0/FuncKey10 Switch default/user menuline (0)
326 FuncKey1..9 Execute user defined commands 1..9 (1..9)
327#@
328#@Patterns p: About pattern matching
329
330 Some commands (list, find, grep, tag or untag) require filename
331 patterns for matching files using some special (meta) characters.
332
333 File pattern matching (shell like) interprets the following meta chars:
334 * matches all characters in a filename.
335 ? matches one character in a filename.
336 [class] matches all characters enclosed in '[' and ']'
337 where '!' and '-' have a special meaning, i.e.
338 [abc] matches the characters 'a', 'b' and 'c'.
339 [a-z_] matches the characters from 'a' to 'z' and '_'.
340 [!a-z_] matches all characters except 'a' to 'z' and '_'.
341
342 Time pattern matching interprets the following meta chars:
343 ># matches all files modified within # hours.
344 <# matches all files not modified within # hours.
345 you may specify time in minutes (m), hours(h, default), days(d) or
346 weeks (w), i.e. '>2d' matches all files modified within last 2 days.
347
348 To combine patterns use '&' for ANDing and '|' for ORing of patterns.
349 If a character is preceeded by a backslash (\) or enclosed in quotes
350 his interpretation is suppressed and he is used as he is.
351#@