File: ytree.conf

package info (click to toggle)
ytree 1.94-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 836 kB
  • ctags: 1,510
  • sloc: ansic: 15,271; makefile: 208
file content (144 lines) | stat: -rw-r--r-- 4,896 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
###############################################
# Ytree Defaults
# Modify this file and copy it to the hidden 
# file called .ytree placed in your home directory.
# You may also invoke it explicitly with the
# "-p <profile-filename> command line argument.
###############################################
#
[GLOBAL]
TREEDEPTH=2
FILEMODE=2
NUMBERSEP=.
NOSMALLWINDOW=0
# SEARCHCOMMAND=grep  {}

# Configure if the internal HEX-Viewer/Editor should display
# Adress-Offsets in hex (HEX) or decimal (DECIMAL)
HEXEDITOFFSET=HEX

# Make ytree start in file window mode, in a specified directory
# The "root" directory for ytree is specified on the command
# line; INITIALDIR must be a directory under this root directory.
# The form may be ".", "/full/path/userhome/test/alpha/beta",
# "./alpha/beta", "~/test/alpha/beta", or "beta"
# INITIALDIR=./alpha/beta

# You can create a custom view by defining the variable USERVIEW

# %tag: Tag-Symbol
# %fnm: Filename
# %atr: Attributes
# %lct: Link-Count
# %fsz: File-Size
# %mot: Modification Time
# %lnm: Symbolik Link-Name
# %uid: User-ID
# %gid: Group-ID
# %ino: Inode
# %act: Access Time
# %sct: Status Change Time

# USERVIEW=%tag%fnm %atr %lct %fsz %mot


# ARCEXPAND=arc p
# ARCLIST=arc v
# CAT=cat
# EDITOR=vim
# GUNZIP=gunzip -c
HEXDUMP=builtin
# LHAEXPAND=lharc p
# LHALIST=lharc v
# MANROFF=nroff -man
# MELT=melt
# PAGER=less -cen
# TAPEDEV=/dev/rmt0
# TAREXPAND=tar xOPf -
# TARLIST=tar tar tvf -
# UNCOMPRESS=gunzip
# ZIPEXPAND=unzip -c
# ZIPLIST=zipinfo -l
# ZOOEXPAND=zoo xp
# ZOOLIST=zoo vm
# RAREXPAND=unrar p -c- -INUL
# RARLIST=unrar l
# RPMEXPAND=builtin
# RPMLIST=rpm -q --dump -l -p
#

#############################
# Bracketed [] sections may appear in any order after the 
# initial global configuration section.
#############################

[VIEWER]
.jpg,.gif,.bmp,.tif,.ppm,.xpm=xv -
.1,.2,.3,.4,.5,.6,.7,.8,.n=nroff -man - | less
.ps=ghostview
.mid=timidity -id
.wav=splay
.au=auplay
.avi,.mpg,.mov=xanim
.htm,.html=lynx
.pdf,.PDF=acroread
.mp3=mpg123

######################################
# The values DIR1, DIR2, FILE1, and FILE2 in the [MENU] section redefine the text
# presented in menu lines 1 and 2 of the DIR and FILE windows, respectively.  The
# mapping of the keyboard is not changed here, just the text presented to the user.
######################################
 
# [MENU]
# DIR1=DIR-CUST  (A)ttribute (B)->a (D)elete  (F)ilespec (G)roup (k)-du (K)-dirpath (L)og (Q)uit                
# DIR2=COMMANDS  (M)akedir (O)wner (P)ath/owner (R)ename (S)howall (T)ag (U)ntag e(X)ecute   (^F) dirmode
# 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 
# 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 

######################################
# The [DIRMAP] and [FILEMAP] sections allow keyboard keys to be remapped or unmapped
# in directory mode and file mode, respectively.  The comma-separated list of keys to
# the left of the "=" is remapped to perform the action specified by the character to
# the right of the "=".  If no character is specified, the keys are unmapped (do nothing).
######################################
# [DIRMAP]
# <B> or <b> in dir window mode is remapped to <a> key action (Attribute)               
# B,b=a
# <P> or <p> in dir window mode is remapped to <o> key action (Owner)               
# P,p=o

# [FILEMAP]
# <I> in file window mode is remapped to <v> key action (View)               
# i,I=v
# <G> in file window mode is remapped to <g>
# G=g
# ytree default assignment of <g> to "group" is removed
# g=

######################################
# The [DIRCMD] and [FILECMD] sections allow new command actions to be defined
# in directory mode and file mode, respectively.  The command to the right of
# the "=" is executed when the key to the right of the "=" is pressed.  If the
# key is mapped (either by the default ytree key assignments or by a [DIRMAP]
# or [FILEMAP] entry,) this mapping is followed after the command is executed.
# Thus to change FILE mode "g" from "group" to "gcc" requires both a FILECMD
# assignment "g=gcc -O -c" and a FILEMAP assignment "g=" (to remove the default
# action "group" from the "g" key.)
#
# If [command] contains the characters "%s", the selected <filepath> is
# substituted for "%s".  Otherwise, the selected <filepath> is appended to [command].
######################################
# [DIRCMD]
# <k> in dir window mode does "du <dirname> | less"               
# k=du %s | less
# <K> in dir window mode does "echo <dirname> | less"               
# K=echo %s | less
# <p> in dir window mode does "echo <dirname> | less"              
# p=echo %s | less

# [FILECMD]
# <g>  in file window mode does "gcc -O -c <filename>"
# g=gcc -O -c
# <w>  in file window mode does "wc <filename> | less"               
# w=wc %s | less