"Fossies" - the Fresh Open Source Software Archive 
Member "twander-3.231/.twander" (1 Jul 2009, 20795 Bytes) of package /linux/privat/old/twander-3.231.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 # 'twander' Configuration File Example
2 # $Id: .twander,v 1.85 2009/07/01 21:14:36 tundra Exp $
3 #
4 # Contains list of all possible variables (and defaults, if any) for:
5 #
6 # Program Options
7 # Key Bindings
8 # Directory Shortcuts
9 #
10 # This file ends with an example configuration file containing:
11 #
12 # Variable Definitions
13 # Directory Shortcuts
14 # Wildcards
15 # Associations
16 # Command Definitions
17 # Conditional Expressions
18 # Execution Variables
19 #
20 # THIS ENTIRE FILE IS COMMENTED OUT. COPY WHAT YOU WANT TO
21 # CHANGE AND EDIT TO TASTE. THAT WAY YOU STILL WILL HAVE
22 # THE ORIGINAL FILE CONTENT AS A REFERENCE FROM WHICH TO WORK.
23
24
25
26
27 ##############################################################################
28
29 #####
30 # Program Option Statements
31 #####
32
33 # ACTUALLENGTH = False # Display actual file lengths
34 # ADAPTREFRESH = True # Enable adaptive refreshing
35 # AFTERCLEAR = True # Clear selection after forced refresh
36 # AFTERWAIT = 1 # Wait time (sec) after forced refresh
37 # AUTOREFRESH = True # Automatically reread current directory periodically
38 # BCOLOR = black # Main window background color
39 # CMDMENUSORT = False # Sort command menu?
40 # CMDSHELL = # Command to use when spawning shell commands
41 # DEBUGLEVEL = 0 # Level of debug output desired
42 # DEFAULTSEP = ===> # Default separator string in PROMPT and YESNO constructs
43 # DOTFILE = . # What 'dotfiles' begin with
44 # FCOLOR = green # Main window foreground color
45 # FNAME = Courier # Main window font name
46 # FORCEUNIXPATH = False # Force Unix-Style paths when doing built-in substitutions
47 # FSZ = 12 # Main window font size
48 # FWT = bold # Main window font width
49 # HBCOLOR = lightgreen # Help background color
50 # HEIGHT = 600 # Initial window height (pixels)
51 # HFCOLOR = black # Help foreground color
52 # HFNAME = Courier # Help font name
53 # HFSZ = 10 # Help font size
54 # HFWT = italic # Help font weight
55 # HIDEDOTFILES = False # Hide all dotfiles from view - i.e, Dir/filenames beginning with DOTFILE
56 # INVERTFILTER = False # Invert the sense of the logic for filtering by wildcard
57 # ISODATE = False # Display date/time in ISO 8601 format
58 # MAXMENU = 32 # Maximum number of displayed menu items
59 # MAXMENUBUF = 250 # Maximum number of (internally) tracked menu items
60 # MAXNESTING = 32 # Maximum depth of variable definition nesting
61 # MBARCOL = beige # Menu bar color
62 # MBCOLOR = beige # Menu bar background color
63 # MFCOLOR = black # Menu bar foreground color
64 # MFNAME = Courier # Menu bar font name
65 # MFSZ = 12 # Menu bar font size
66 # MFWT = bold # Menu bar font weight
67 # NODETAILS = False # Suppress display of file details
68 # NONAVIGATE = False # Prevent navigation out of start directory
69 # QUOTECHAR = " # Character to use when quoting built-in variables
70 # REFRESHINT = 3000 # Interval (ms) at which to re-read current directory
71 # SCALEPRECISION = 1 # # of digits of precision to use when displaying scaled lengths
72 # SORTBYFIELD = Name # Field to use as sort key
73 # SORTREVERSE = False # Reverse sort order
74 # SORTSEPARATE = True # Separate directories and files in display
75 # STARTDIR = ... # Defaults to directory in which program started
76 # STARTX = 0 # Main window starting X coordinate
77 # STARTY = 0 # Main window starting Y coordinate
78 # SYMDIR = True # Sort symbolic links pointing to directories as directories
79 # SYMEXPAND = True # Expand symlink to show its target
80 # SYMRESOLV = False # Show absolute path of symlink target
81 # USETHREADS = True # Use threads to launch commands
82 # USEWIN32ALL = True # Use Win32All extensions on Win32 (if present)
83 # WARN = True # Enable warnings
84 # WIDTH = 800 # Initial window width (pixels)
85 # WILDNOCASE = False # Set's case-insensitivity for wildcard matches - True on Win32 by default
86
87
88 ##############################################################################
89
90
91 #####
92 # Key Binding Statements
93 #####
94
95 # The default key bindings are shown in the comments below. To
96 # change a binding from its default value, conform to the following
97 # rules:
98 #
99 # 1) Only change the right side of the assignment. The left side
100 # is a variable name which is significant to twander and may
101 # not be changed.
102 #
103 # 2) Follow the Tkinter conventions for key naming. This should
104 # be pretty easy to do - just use the defaults below as a guide.
105 # Do *not* quote the key names. Just use the <...> naming
106 # convention as you see it below.
107 #
108 # 3) It is best if keyboard commands are all Control or Function keys.
109 # If you assign anything to a simple key it may conflict with a user-
110 # defined command. If you assign anything to a keypad/special
111 # key it may conflict with that key's normal GUI behavior.
112 #
113 # 4) The Program Function Names (the left side of the assignments)
114 # are RESERVED and may not be used as names for your own user-
115 # defined variables elsewhere in the configuration file.
116 #
117 # 5) When you're done with your changes make sure to uncomment
118 # them so twander can read them it and override its defaults.
119 # Then either restart the program or reload the configuration
120 # file to assign the new bindings.
121 #
122 # 6) Note that you CANNOT change the bindings for Mouse Buttons.
123 # They are documented below for completeness sake, but any
124 # attempt to change them will cause 'twander' to present
125 # a warning message and ignore that line. If you attempt
126 # to even just uncomment them below, you will get an error
127 # because 'twander' thinks you are trying to redefine them.
128
129
130 # General Program Commands
131 #
132 # CLRHIST = <Control-y> # Clear Command History
133 # FONTDECR = <Control-bracketleft> # Decrease Font Size
134 # FONTINCR = <Control-bracketright> # Increase Font Size
135 # MOUSECTX = <ButtonRelease-3> # Invoke context menu
136 # MOUSEDIR = <Shift-ButtonRelease-3> # Display the directory menu
137 # MOUSEHIST = <Shift-Control-ButtonRelease-3> # Pop-up History Menu
138 # MOUSESC = <Alt-Control-ButtonRelease-1> # Pop-up Shortcut Menu
139 # MOUSESORT = <Alt-Shift-ButtonRelease-3> # Pop-up Sorting Menu
140 # QUITPROG = <Control-q> # Quit the program
141 # READCONF = <Control-r> # Re-read the configuration file
142 # REFRESH = <Control-l> # Refresh screen
143 # TOGAUTO = <Control-o> # Toggle Autorefreshing
144 # TOGDETAIL = <Control-t> # Toggle detail view
145 # TOGLENGTH = <Control-0> # Toggle length display between actual and normalized
146 # TOGSYMDIR = <Control-asciitilde> # Toggle sorting of symbolic links pointing to directories
147 # TOGSYMEXPAND = <Control-exclam> # Toggle symbolic link expansion
148 # TOGSYMRESOLV = <Control-at> # Toggle absolute symbolic link resolution
149 # TOGWIN32ALL = <Control-w> # Toggle win32all Features, If Available
150 #
151 # Directory Navigation
152 #
153 # CHANGEDIR = <Control-x> # Enter a new path
154 # DIRHOME = <Control-h> # Goto $HOME
155 # DIRBACK = <Control-b> # Goto previous directory
156 # DIRROOT = <Control-j> # Goto root directory
157 # DIRSTART = <Control-s> # Goto starting directory
158 # DIRUP = <Control-u> # Go up one directory level
159 # DRIVELIST = <Control-k> # On Win32, display Drive List View if possible
160 # MOUSEBACK = <Control-Double-ButtonRelease-1> # Go back one directory with mouse
161 # MOUSEUP = <Control-Double-ButtonRelease-3> # Go up one directory with mouse
162 #
163 # Selection Keys
164 #
165 # SELALL = <Control-comma> # Select all items
166 # SELINV = <Control-i> # Select all items
167 # SELNONE = <Control-period> # Unselect all items
168 # SELNEXT = <Control-n> # Select next item
169 # SELPREV = <Control-p> # Select previous item
170 # SELEND = <Control-e> # Select bottom item
171 # SELTOP = <Control-a> # Select top item
172 #
173 # Scrolling Commands
174 #
175 # PGDN = <Control-v> # Move page down
176 # PGUP = <Control-c> # Move page up
177 # PGRT = <Control-g> # Move page right
178 # PGLFT = <Control-f> # Move page left
179 #
180 # Execute Commands
181 #
182 # RUNCMD = <Control-z> # Run arbitrary user command
183 # SELKEY = <Return> # Select item w/keyboard
184 # MOUSESEL = <Double-ButtonRelease-1> # Select item w/mouse
185
186 # Directory Shortcuts
187
188 # KDIRSC1 = <F1> # Go To Specified Directory
189 # KDIRSC2 = <F2>
190 # KDIRSC3 = <F3>
191 # KDIRSC4 = <F4>
192 # KDIRSC5 = <F5>
193 # KDIRSC6 = <F6>
194 # KDIRSC7 = <F7>
195 # KDIRSC8 = <F8>
196 # KDIRSC9 = <F9>
197 # KDIRSC10 = <F10>
198 # KDIRSC11 = <F11>
199 # KDIRSC12 = <F12>
200 # KDIRSCSET = <Control-8> # Override Selected Shortcut w/Current Directory
201
202 # Program Memories
203
204 # MEMCLR1 = <Control-F1> # Clear Individual Program Memory
205 # MEMCLR2 = <Control-F2>
206 # MEMCLR3 = <Control-F3>
207 # MEMCLR4 = <Control-F4>
208 # MEMCLR5 = <Control-F5>
209 # MEMCLR6 = <Control-F6>
210 # MEMCLR7 = <Control-F7>
211 # MEMCLR8 = <Control-F8>
212 # MEMCLR9 = <Control-F9>
213 # MEMCLR10 = <Control-F10>
214 # MEMCLR11 = <Control-F11>
215 # MEMCLR12 = <Control-F12>
216
217 # MEMCLRALL = <Control-m> # Clear All Program Memories
218
219 # MEMSET1 = <Alt-F1> # Set Individual Program Memory
220 # MEMSET2 = <Alt-F2>
221 # MEMSET3 = <Alt-F3>
222 # MEMSET4 = <Alt-F4>
223 # MEMSET5 = <Alt-F5>
224 # MEMSET6 = <Alt-F6>
225 # MEMSET7 = <Alt-F7>
226 # MEMSET8 = <Alt-F8>
227 # MEMSET9 = <Alt-F9>
228 # MEMSET10 = <Alt-F10>
229 # MEMSET11 = <Alt-F11>
230 # MEMSET12 = <Alt-F12>
231
232
233 # Sorting Keys
234
235 # SORTBYNONE = <Shift-F10> # Select sorting parameters
236 # SORTBYPERMS = <Shift-F1>
237 # SORTBYLINKS = <Shift-F2>
238 # SORTBYOWNER = <Shift-F3>
239 # SORTBYGROUP = <Shift-F4>
240 # SORTBYLENGTH = <Shift-F5>
241 # SORTBYTIME = <Shift-F6>
242 # SORTBYNAME = <Shift-F7>
243 # SORTREV = <Shift-F11>
244 # SORTSEP = <Shift-F12>
245
246 # Wildcard Features
247
248 # MOUSEWILDFILTER = <Alt-Control-ButtonRelease-2> # Pop-up Filter Wildcard Menu
249 # MOUSEWILDSEL = <Alt-Control-ButtonRelease-3> # Pop-up Selection Wildcard Menu
250 # FILTERWILD = <Control-equal> # Filter file list with wildcard
251 # SELWILD = <Control-backslash> # Select using wildcards
252 # TOGFILT = <Control-minus> # Toggle logical sense of wildcard filtering
253
254 # Hide Dotfiles
255
256 # TOGHIDEDOT = <Control-9> # Toggle hiding dotfiles
257
258
259
260 ##############################################################################
261
262
263 #####
264 # Directory Shortcut Statements
265 #
266 # Enter Any Valid Path To The Right Of The Equals Sign
267 # To Associate A Function Key With That Directory Path
268 #
269 #####
270
271 # DIRSC1 = /path/to/a/directory/or/drive
272 # DIRSC2 = /path/to/a/directory/or/drive
273 # DIRSC3 = /path/to/a/directory/or/drive
274 # DIRSC4 = /path/to/a/directory/or/drive
275 # DIRSC5 = /path/to/a/directory/or/drive
276 # DIRSC6 = /path/to/a/directory/or/drive
277 # DIRSC7 = /path/to/a/directory/or/drive
278 # DIRSC8 = /path/to/a/directory/or/drive
279 # DIRSC9 = /path/to/a/directory/or/drive
280 # DIRSC10 = /path/to/a/directory/or/drive
281 # DIRSC11 = /path/to/a/directory/or/drive
282 # DIRSC12 = /path/to/a/directory/or/drive
283
284
285 ##############################################################################
286
287
288 #####
289 # Example 'twander' Configuration File
290 #####
291
292 # To easily enable this example configuration, globally
293 # replace the string: "#-# " with a null or blank string.
294
295 #-# # Associations allow you to "associate" a type of file
296 #-# # with the program that handles it. A "type" is merely
297 #-# # a string that uses Unix-style shell globbing to
298 #-# # define which filenames are to be included.
299 #-#
300 #-# ASSOC *.txt vim [SELECTION]
301 #-#
302 #-# # The right-hand-side of an association statement can
303 #-# # contain pretty much anything you can use in a command
304 #-# # definition.
305 #-#
306 #-# ASSOC *.[Tt] {PROMPT:Do You Really Want To Edit This?} vim [SELECTION]
307 #-#
308 #-# # A special association for "default" operation is also
309 #-# # supported. If the user clicks on a file type without
310 #-# # a specific association, the default association (if any)
311 #-# # will be applied.
312 #-#
313 #-# ASSOC * emacs [SELECTION]
314 #-#
315 #-#
316 #-# # You can also *exclude* specific file types from ever
317 #-# # being associated. This has higher precedence than
318 #-# # than the association command does. So, if you place
319 #-# # a file type on the exclusion list, even if you've
320 #-# # defined an association for that type, it will never
321 #-# # be applied. Exclusions consist of one or more lines
322 #-# # in the following form:
323 #-#
324 #-# # ASSOC ! space-separated-list-of-file-types
325 #-#
326 #-# ASSOC ! *.pyo *.tx? *.r[az]
327 #-#
328 #-# # You can remove a previously defined association
329 #-# # by leaving the right-hand-side of the statement
330 #-# # blank. This is primarily useful within conditional
331 #-# # blocks where you want the existence of an association
332 #-# # for a particular file type to depend on some condition
333 #-# # such as, for instance, the type of OS your're running.
334 #-#
335 #-# # This sequence first defines and then removes an
336 #-# # association for text files:
337 #-#
338 #-# ASSOC *.txt MyFineEditor [SELECTION]
339 #-# ASSOC *.txt
340 #-#
341 #-# # You can do this for any association statement.
342 #-#
343 #-# ASSOC *
344 #-# ASSOC !
345 #-#
346 #-# # Associations are case insensitive on Win32 systems and case
347 #-# # sensitive elswhere. You can force associations to be
348 #-# # case-insensitive on Unix-like systems by prepending the match
349 #-# # pattern with the "/" character:
350 #-#
351 #-# ASSOC ! /*tXt # Exludes files ending in txt, TXT, TxT, TXt, ...
352 #-# ASSOC /*txT emacs [SELECTION] # Invokes emacs for files ending as above
353 #-#
354 #-# # Note that exclusion has higher precedence than association
355 #-# # so the association with emacs above would never actually happen
356 #-#
357 #-# # To undo a case insensitive assocation you must use the *exact*
358 #-# # pattern (including the "/" character) you used to establish
359 #-# # the association in the first place. Here case still matters.
360 #-#
361 #-#
362 #-# # Special variable(s) used below to trigger conditional logic
363 #-#
364 #-# # If you comment out or remove the following statement, the command
365 #-# # associated with the = key (dd) disappears.
366 #-#
367 #-# POWERUSER = Anything-You-Want
368 #-#
369 #-#
370 #-# # Override the default colors
371 #-#
372 #-# BCOLOR = beige
373 #-# FCOLOR = black
374 #-#
375 #-# # We can set system options in a user-specific way
376 #-# # by combining conditionals with environment variables
377 #-#
378 #-# .if [$USER] == root
379 #-#
380 #-# BCOLOR = red
381 #-# FCOLOR = yellow
382 #-#
383 #-# .endif
384 #-#
385 #-# # We can also test for inequality in conditionals
386 #-# # In this case, if we're not running as root,
387 #-# # we'll override the help menu background color
388 #-#
389 #-#
390 #-# .if [$USER]!= root
391 #-# HBCOLOR = gray
392 #-# .endif
393 #-#
394 #-# # User-defined variables make maintenance easier.
395 #-# # Remember, that the variable name is case-sensitive.
396 #-#
397 #-# # We define some things in an OS-specific manner
398 #-#
399 #-#
400 #-# # Definitions for Unix-like systems
401 #-#
402 #-#
403 #-# .if [.OS] ==posix
404 #-#
405 #-# DELCMD = rm -i
406 #-# DIRCMD = ls -al
407 #-# EDITOR = [$EDITOR]
408 #-# PAGER = [$PAGER]
409 #-# QUOTE = '
410 #-# SHELL = bash -c
411 #-# TERMINAL = xterm -fn 10x20 -l -fb black -bg lightgreen
412 #-# VSHELL = [XTERM] [SHELL]
413 #-# XTERM = [TERMINAL] -e
414 #-#
415 #-# # We can nest conditionals too, for example ...
416 #-#
417 #-# GUI-Editor = Nope # Assume our editor is not GUI-aware
418 #-#
419 #-# .if [$EDITOR]== /usr/local/bin/emacs # But emacs is
420 #-# GUI-Editor = Yup
421 #-# .endif
422 #-#
423 #-# # Assign shortcuts for common Unix directories
424 #-#
425 #-# DIRSC1 = /etc
426 #-# DIRSC10 = /usr/local/bin
427 #-#
428 #-# # Unix Wildcards
429 #-#
430 #-# WILDSELECT = \.gz # Items containing the string: .gz
431 #-# WILDFILTER = rwx # Items containing the string: rwx
432 #-#
433 #-# # We can also have conditions which depend on whether a
434 #-# # variable is defined or not - we don't care about its value
435 #-#
436 #-# .if [POWERUSER]
437 #-# DD = [VSHELL] 'dd if={PROMPT:In File?} of={PROMPT:Out File?==>OutFile} | [$PAGER]'
438 #-# .endif
439 #-#
440 #-# .endif
441 #-#
442 #-#
443 #-# # Definitions for Win32 systems
444 #-#
445 #-# .if [.OS]==nt
446 #-#
447 #-# DELCMD = del /p
448 #-# DIRCMD = dir
449 #-# EDITOR = write
450 #-# GUI-Editor = Yup
451 #-# PAGER = more
452 #-# SHELL =
453 #-# QUOTE =
454 #-# TERMINAL = cmd
455 #-# VSHELL =
456 #-# XTERM =
457 #-#
458 #-# # Assign shortcuts for common Win32 directories
459 #-#
460 #-# DIRSC1 = C:\Documents and Settings
461 #-# DIRSC10 = C:\Program Files
462 #-#
463 #-# # Win32 Wildcards
464 #-#
465 #-# WILDSELECT = \.txt # Items containing the string: .txt
466 #-# WILDSELECT = \.exe # Items containing the string: .exe
467 #-# WILDFILTER = SYSTEM # Items containing the string: SYSTEM
468 #-#
469 #-# .endif
470 #-#
471 #-#
472 #-#
473 #-# # Command definitions are in the general format:
474 #-# #
475 #-# # command-key command-name command-string
476 #-# #
477 #-# # command-keys are case sensitive. Any single
478 #-# # character which can be typed from the keyboard can
479 #-# # be used as a command key, *except* the '#' character
480 #-# # (which is always seen as a comment delimiter).
481 #-#
482 #-#
483 #-# # Some commands run anywhere
484 #-#
485 #-# a anycmd [VSHELL] {PROMPT:Enter Command:}
486 #-# d delete [XTERM] [DELCMD] [SELECTIONS]
487 #-# l dir-list [VSHELL] [QUOTE] [DIRCMD] | [$PAGER] [QUOTE]
488 #-# T new-terminal [TERMINAL]
489 #-# V view [XTERM] [PAGER] [DSELECTIONS]
490 #-#
491 #-#
492 #-# # Some commands are only defined under some conditions
493 #-# # In the following example, variable DD is only defined
494 #-# # for posix systems AND if the POWERUSER variable has
495 #-# # been set - this is all defined in the posix-specific
496 #-# # section above.
497 #-#
498 #-# .if [DD]
499 #-#
500 #-# = dd [DD]
501 #-#
502 #-# .endif
503 #-#
504 #-#
505 #-#
506 #-# # Some commands are condition-specific
507 #-#
508 #-# .if [GUI-Editor]== Yup
509 #-# e edit [EDITOR] [SELECTIONS]
510 #-# .endif
511 #-#
512 #-#
513 #-# .if [GUI-Editor] !=Yup
514 #-# e edit [XTERM] [EDITOR] [DSELECTIONS]
515 #-# .endif
516 #-#
517 #-#
518
519 #-# # Execution variables allow you to run a *program* and have its
520 #-# # text output assigned to a 'twander' configuration variable.
521 #-# # Note that they are delimited with backticks:
522 #-#
523 #-# D showdate [VSHELL] 'echo [`date`] | [PAGER]'
524 #-#
525 #-#
526 #-# # If the execution variable you want to run produces
527 #-# # multiple lines of text, you may need to quote it
528 #-# # to get things to work properly:
529 #-#
530 #-# D showfiles [VSHELL] 'echo "[`ls`]" | [PAGER]'
531 #-#
532 #-#
533 #-# # You can also force 'twander' to strip the newlines out of
534 #-# # multiline output from an execution variable by inserting
535 #-# # a '-' at the beginning of the command name:
536 #-#
537 #-# D showfiles [VSHELL] 'echo "[`-ls`]" | [PAGER]'
538 #-#
539 #-# # Execution variables are evaluated at the time the
540 #-# # they are actually *used* in a command invocation,
541 #-# # NOT when the configuration file is being read in.
542 #-# # This is true even if you first assign them to
543 #-# # a variable:
544 #-#
545 #-# CURRENTDATE = [`date`]
546 #-# D showcurrentdate [VSHELL] 'echo [CURRENTDATE] | [PAGER]'
547 #-#
548 #-# # Each time 'showcurrentdate' gets run, the CURRENTDATE
549 #-# # variable will be set to the output of the 'date' command.
550 #-# # This is unlike most variables used in 'twander' that are
551 #-# # evaluated once when the configuration file is first read in.
552
553 #-# # End of sample twander configuration