1###############################################
2# Ytree Defaults
3# Modify this file and copy it to the hidden
4# file called .ytree placed in your home directory.
5# You may also invoke it explicitly with the
6# "-p <profile-filename> command line argument.
7###############################################
8#
9[GLOBAL]
10TREEDEPTH=2
11FILEMODE=2
12NUMBERSEP=.
13NOSMALLWINDOW=0
14#LISTJUMP search: 0== standard (one key); 1==incremental
15LISTJUMPSEARCH=0
16# SEARCHCOMMAND=grep  {}
17
18# Configure if the internal HEX-Viewer/Editor should display
19# Adress-Offsets in hex (HEX) or decimal (DECIMAL)
20HEXEDITOFFSET=HEX
21
22# Make ytree start in file window mode, in a specified directory
23# The "root" directory for ytree is specified on the command
24# line; INITIALDIR must be a directory under this root directory.
25# The form may be ".", "/full/path/userhome/test/alpha/beta",
26# "./alpha/beta", "~/test/alpha/beta", or "beta"
27# INITIALDIR=./alpha/beta
28
29# You can create a custom view by defining the variable USERVIEW
30
31# %tag: Tag-Symbol
32# %fnm: Filename
33# %atr: Attributes
34# %lct: Link-Count
35# %fsz: File-Size
36# %mot: Modification Time
37# %lnm: Symbolik Link-Name
38# %uid: User-ID
39# %gid: Group-ID
40# %ino: Inode
41# %act: Access Time
42# %sct: Status Change Time
43
44# USERVIEW=%tag%fnm %atr %lct %fsz %mot
45
46
47# ARCEXPAND=arc p
48# ARCLIST=arc v
49# CAT=cat
50# EDITOR=vim
51# GUNZIP=gunzip -c
52HEXDUMP=builtin
53# LHAEXPAND=lharc p
54# LHALIST=lharc v
55# MANROFF=nroff -man
56# MELT=melt
57# PAGER=less -cen
58# TAPEDEV=/dev/rmt0
59# TAREXPAND=tar xOPf -
60# TARLIST=tar tar tvf -
61# UNCOMPRESS=gunzip
62# ZIPEXPAND=unzip -c
63# ZIPLIST=zipinfo -l
64# ZOOEXPAND=zoo xp
65# ZOOLIST=zoo vm
66# RAREXPAND=unrar p -c- -INUL
67# RARLIST=unrar l
68# RPMEXPAND=builtin
69# RPMLIST=rpm -q --dump -l -p
70#
71
72#############################
73# Bracketed [] sections may appear in any order after the
74# initial global configuration section.
75#############################
76
77[VIEWER]
78.jpg,.gif,.bmp,.tif,.ppm,.xpm=xv -
79.1,.2,.3,.4,.5,.6,.7,.8,.n=nroff -man - | less
80.ps=ghostview
81.mid=timidity -id
82.wav=splay
83.au=auplay
84.avi,.mpg,.mov=xanim
85.htm,.html=lynx
86.pdf,.PDF=acroread
87.mp3=mpg123
88
89######################################
90# The values DIR1, DIR2, FILE1, and FILE2 in the [MENU] section redefine the text
91# presented in menu lines 1 and 2 of the DIR and FILE windows, respectively.  The
92# mapping of the keyboard is not changed here, just the text presented to the user.
93######################################
94
95# [MENU]
96# DIR1=DIR-CUST  (A)ttribute (B)->a (D)elete  (F)ilespec (G)roup (k)-du (K)-dirpath (L)og (Q)uit
97# DIR2=COMMANDS  (M)akedir (O)wner (P)ath/owner (R)ename (S)howall (T)ag (U)ntag e(X)ecute   (^F) dirmode
98# FILE1=FILE-CUST (A)ttribute (C)opy (D)elete (E)dit (F)ilespec (G)cc (H)ex (I)->v (L)ogin (M)ove  (Q)uit
99# FILE2=COMMANDS  (O)wner (P)ipe (R)ename (S)ort (T)ag (U)ntag (V)iew (W)c e(X)ecute pathcop(Y) (^F)ilemode
100
101######################################
102# The [DIRMAP] and [FILEMAP] sections allow keyboard keys to be remapped or unmapped
103# in directory mode and file mode, respectively.  The comma-separated list of keys to
104# the left of the "=" is remapped to perform the action specified by the character to
105# the right of the "=".  If no character is specified, the keys are unmapped (do nothing).
106######################################
107# [DIRMAP]
108# <B> or <b> in dir window mode is remapped to <a> key action (Attribute)
109# B,b=a
110# <P> or <p> in dir window mode is remapped to <o> key action (Owner)
111# P,p=o
112
113# [FILEMAP]
114# <I> in file window mode is remapped to <v> key action (View)
115# i,I=v
116# <G> in file window mode is remapped to <g>
117# G=g
118# ytree default assignment of <g> to "group" is removed
119# g=
120
121######################################
122# The [DIRCMD] and [FILECMD] sections allow new command actions to be defined
123# in directory mode and file mode, respectively.  The command to the right of
124# the "=" is executed when the key to the right of the "=" is pressed.  If the
125# key is mapped (either by the default ytree key assignments or by a [DIRMAP]
126# or [FILEMAP] entry,) this mapping is followed after the command is executed.
127# Thus to change FILE mode "g" from "group" to "gcc" requires both a FILECMD
128# assignment "g=gcc -O -c" and a FILEMAP assignment "g=" (to remove the default
129# action "group" from the "g" key.)
130#
131# If [command] contains the characters "%s", the selected <filepath> is
132# substituted for "%s".  Otherwise, the selected <filepath> is appended to [command].
133######################################
134# [DIRCMD]
135# <k> in dir window mode does "du <dirname> | less"
136# k=du %s | less
137# <K> in dir window mode does "echo <dirname> | less"
138# K=echo %s | less
139# <p> in dir window mode does "echo <dirname> | less"
140# p=echo %s | less
141
142# [FILECMD]
143# <g>  in file window mode does "gcc -O -c <filename>"
144# g=gcc -O -c
145# <w>  in file window mode does "wc <filename> | less"
146# w=wc %s | less
147