Newer
Older
twander / .twander
  1. # 'twander' Configuration File Example
  2. # $Id: .twander,v 1.67 2005/02/14 09:41:24 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. # Command Definitions
  16. # Conditional Expressions
  17. #
  18. # THIS ENTIRE FILE IS COMMENTED OUT. COPY WHAT YOU WANT TO
  19. # CHANGE AND EDIT TO TASTE. THAT WAY YOU STILL WILL HAVE
  20. # THE ORIGINAL FILE CONTENT AS A REFERENCE FROM WHICH TO WORK.
  21.  
  22.  
  23.  
  24.  
  25. ##############################################################################
  26.  
  27. #####
  28. # Program Option Statements
  29. #####
  30.  
  31. # ACTUALLENGTH = False # Display actual file lengths
  32. # ADAPTREFRESH = True # Enable adaptive refreshing
  33. # AFTERCLEAR = True # Clear selection after forced refresh
  34. # AFTERWAIT = 1 # Wait time (sec) after forced refresh
  35. # AUTOREFRESH = True # Automatically reread current directory periodically
  36. # BCOLOR = black # Main window background color
  37. # CMDSHELL = # Command to use when spawning shell commands
  38. # DEBUGLEVEL = 0 # Level of debug output desired
  39. # DEFAULTSEP = ===> # Default separator string in PROMPT and YESNO constructs
  40. # DOTFILE = . # What 'dotfiles' begin with
  41. # FCOLOR = green # Main window foreground color
  42. # FNAME = Courier # Main window font name
  43. # FORCEUNIXPATH = False # Force Unix-Style paths when doing built-in substitutions
  44. # FSZ = 12 # Main window font size
  45. # FWT = bold # Main window font width
  46. # HBCOLOR = lightgreen # Help background color
  47. # HEIGHT = 600 # Initial window height (pixels)
  48. # HFCOLOR = black # Help foreground color
  49. # HFNAME = Courier # Help font name
  50. # HFSZ = 10 # Help font size
  51. # HFWT = italic # Help font weight
  52. # HIDEDOTFILES = False # Hide all dotfiles from view - i.e, Dir/filenames beginning with DOTFILE
  53. # INVERTFILTER = False # Invert the sense of the logic for filtering by wildcard
  54. # MAXMENU = 32 # Maximum number of displayed menu items
  55. # MAXMENUBUF = 250 # Maximum number of (internally) tracked menu items
  56. # MAXNESTING = 32 # Maximum depth of variable definition nesting
  57. # MBARCOL = beige # Menu bar color
  58. # MBCOLOR = beige # Menu bar background color
  59. # MFCOLOR = black # Menu bar foreground color
  60. # MFNAME = Courier # Menu bar font name
  61. # MFSZ = 12 # Menu bar font size
  62. # MFWT = bold # Menu bar font weight
  63. # NODETAILS = False # Suppress display of file details
  64. # NONAVIGATE = False # Prevent navigation out of start directory
  65. # QUOTECHAR = " # Character to use when quoting built-in variables
  66. # REFRESHINT = 3000 # Interval (ms) at which to re-read current directory
  67. # SORTBYFIELD = Name # Field to use as sort key
  68. # SORTREVERSE = False # Reverse sort order
  69. # SORTSEPARATE = True # Separate directories and files in display
  70. # STARTDIR = ... # Defaults to directory in which program started
  71. # STARTX = 0 # Main window starting X coordinate
  72. # STARTY = 0 # Main window starting Y coordinate
  73. # SYMDIR = True # Sort symbolic links pointing to directories as directories
  74. # USETHREADS = True # Use threads to launch commands
  75. # USEWIN32ALL = True # Use Win32All extensions on Win32 (if present)
  76. # WARN = True # Enable warnings
  77. # WIDTH = 800 # Initial window width (pixels)
  78. # WILDNOCASE = False # Set's case-insensitivity for wildcard matches - True on Win32 by default
  79.  
  80.  
  81. ##############################################################################
  82.  
  83.  
  84. #####
  85. # Key Binding Statements
  86. #####
  87.  
  88. # The default key bindings are shown in the comments below. To
  89. # change a binding from its default value, conform to the following
  90. # rules:
  91. #
  92. # 1) Only change the right side of the assignment. The left side
  93. # is a variable name which is significant to twander and may
  94. # not be changed.
  95. #
  96. # 2) Follow the Tkinter conventions for key naming. This should
  97. # be pretty easy to do - just use the defaults below as a guide.
  98. # Do *not* quote the key names. Just use the <...> naming
  99. # convention as you see it below.
  100. #
  101. # 3) It is best if keyboard commands are all Control or Function keys.
  102. # If you assign anything to a simple key it may conflict with a user-
  103. # defined command. If you assign anything to a keypad/special
  104. # key it may conflict with that key's normal GUI behavior.
  105. #
  106. # 4) The Program Function Names (the left side of the assignments)
  107. # are RESERVED and may not be used as names for your own user-
  108. # defined variables elsewhere in the configuration file.
  109. #
  110. # 5) When you're done with your changes make sure to uncomment
  111. # them so twander can read them it and override its defaults.
  112. # Then either restart the program or reload the configuration
  113. # file to assign the new bindings.
  114. #
  115. # 6) Note that you CANNOT change the bindings for Mouse Buttons.
  116. # They are documented below for completeness sake, but any
  117. # attempt to change them will cause \'twander\' to present
  118. # a warning message and ignore that line. If you attempt
  119. # to even just uncomment them below, you will get an error
  120. # because 'twander' thinks you are trying to redefine them.
  121.  
  122.  
  123. # General Program Commands
  124. #
  125. # CLRHIST = <Control-y> # Clear Command History
  126. # FONTDECR = <Control-bracketleft> # Decrease Font Size
  127. # FONTINCR = <Control-bracketright> # Increase Font Size
  128. # MOUSECTX = <ButtonRelease-3> # Invoke context menu
  129. # MOUSEDIR = <Shift-ButtonRelease-3> # Display the directory menu
  130. # MOUSEHIST = <Shift-Control-ButtonRelease-3> # Pop-up History Menu
  131. # MOUSESC = <Control-ButtonRelease-3> # Pop-up Shortcut Menu
  132. # MOUSESORT = <Alt-Shift-ButtonRelease-3> # Pop-up Sorting Menu
  133. # QUITPROG = <Control-q> # Quit the program
  134. # READCONF = <Control-r> # Re-read the configuration file
  135. # REFRESH = <Control-l> # Refresh screen
  136. # TOGAUTO = <Control-o> # Toggle Autorefreshing
  137. # TOGDETAIL = <Control-t> # Toggle detail view
  138. # TOGLENGTH = <Control-0> # Toggle length display between actual and normalized
  139. # TOGWIN32ALL = <Control-w> # Toggle win32all Features, If Available
  140. #
  141. # Directory Navigation
  142. #
  143. # CHANGEDIR = <Control-x> # Enter a new path
  144. # DIRHOME = <Control-h> # Goto $HOME
  145. # DIRBACK = <Control-b> # Goto previous directory
  146. # DIRROOT = <Control-j> # Goto root directory
  147. # DIRSTART = <Control-s> # Goto starting directory
  148. # DIRUP = <Control-u> # Go up one directory level
  149. # DRIVELIST = <Control-k> # On Win32, display Drive List View if possible
  150. # MOUSEBACK = <Control-Double-ButtonRelease-1> # Go back one directory with mouse
  151. # MOUSEUP = <Control-Double-ButtonRelease-3> # Go up one directory with mouse
  152. #
  153. # Selection Keys
  154. #
  155. # SELALL = <Control-comma> # Select all items
  156. # SELINV = <Control-i> # Select all items
  157. # SELNONE = <Control-period> # Unselect all items
  158. # SELNEXT = <Control-n> # Select next item
  159. # SELPREV = <Control-p> # Select previous item
  160. # SELEND = <Control-e> # Select bottom item
  161. # SELTOP = <Control-a> # Select top item
  162. #
  163. # Scrolling Commands
  164. #
  165. # PGDN = <Control-v> # Move page down
  166. # PGUP = <Control-c> # Move page up
  167. # PGRT = <Control-g> # Move page right
  168. # PGLFT = <Control-f> # Move page left
  169. #
  170. # Execute Commands
  171. #
  172. # RUNCMD = <Control-z> # Run arbitrary user command
  173. # SELKEY = <Return> # Select item w/keyboard
  174. # MOUSESEL = <Double-ButtonRelease-1> # Select item w/mouse
  175.  
  176. # Directory Shortcuts
  177.  
  178. # KDIRSC1 = <F1> # Go To Specified Directory
  179. # KDIRSC2 = <F2>
  180. # KDIRSC3 = <F3>
  181. # KDIRSC4 = <F4>
  182. # KDIRSC5 = <F5>
  183. # KDIRSC6 = <F6>
  184. # KDIRSC7 = <F7>
  185. # KDIRSC8 = <F8>
  186. # KDIRSC9 = <F9>
  187. # KDIRSC10 = <F10>
  188. # KDIRSC11 = <F11>
  189. # KDIRSC12 = <F12>
  190.  
  191.  
  192. # Program Memories
  193.  
  194. # MEMCLR1 = <Control-F1> # Clear Individual Program Memory
  195. # MEMCLR2 = <Control-F2>
  196. # MEMCLR3 = <Control-F3>
  197. # MEMCLR4 = <Control-F4>
  198. # MEMCLR5 = <Control-F5>
  199. # MEMCLR6 = <Control-F6>
  200. # MEMCLR7 = <Control-F7>
  201. # MEMCLR8 = <Control-F8>
  202. # MEMCLR9 = <Control-F9>
  203. # MEMCLR10 = <Control-F10>
  204. # MEMCLR11 = <Control-F11>
  205. # MEMCLR12 = <Control-F12>
  206.  
  207. # MEMCLRALL = <Control-m> # Clear All Program Memories
  208.  
  209. # MEMSET1 = <Alt-F1> # Set Individual Program Memory
  210. # MEMSET2 = <Alt-F2>
  211. # MEMSET3 = <Alt-F3>
  212. # MEMSET4 = <Alt-F4>
  213. # MEMSET5 = <Alt-F5>
  214. # MEMSET6 = <Alt-F6>
  215. # MEMSET7 = <Alt-F7>
  216. # MEMSET8 = <Alt-F8>
  217. # MEMSET9 = <Alt-F9>
  218. # MEMSET10 = <Alt-F10>
  219. # MEMSET11 = <Alt-F11>
  220. # MEMSET12 = <Alt-F12>
  221.  
  222.  
  223. # Sorting Keys
  224.  
  225. # SORTBYNONE = <Shift-F10> # Select sorting parameters
  226. # SORTBYPERMS = <Shift-F1>
  227. # SORTBYLINKS = <Shift-F2>
  228. # SORTBYOWNER = <Shift-F3>
  229. # SORTBYGROUP = <Shift-F4>
  230. # SORTBYLENGTH = <Shift-F5>
  231. # SORTBYTIME = <Shift-F6>
  232. # SORTBYNAME = <Shift-F7>
  233. # SORTREV = <Shift-F11>
  234. # SORTSEP = <Shift-F12>
  235.  
  236. # Wildcard Features
  237.  
  238. # MOUSEWILDFILTER = <Alt-Control-ButtonRelease-2> # Pop-up Filter Wildcard Menu
  239. # MOUSEWILDSEL = <Alt-Control-ButtonRelease-3> # Pop-up Selection Wildcard Menu
  240. # FILTERWILD = <Control-equal> # Filter file list with wildcard
  241. # SELWILD = <Control-backslash> # Select using wildcards
  242. # TOGFILT = <Control-minus> # Toggle logical sense of wildcard filtering
  243. # TOGHIDEDOT = <Control-9> # Toggle hiding dotfiles
  244.  
  245.  
  246.  
  247. ##############################################################################
  248.  
  249.  
  250. #####
  251. # Directory Shortcut Statements
  252. #
  253. # Enter Any Valid Path To The Right Of The Equals Sign
  254. # To Associate A Function Key With That Directory Path
  255. #
  256. #####
  257.  
  258. # DIRSC1 = /path/to/a/directory/or/drive
  259. # DIRSC2 = /path/to/a/directory/or/drive
  260. # DIRSC3 = /path/to/a/directory/or/drive
  261. # DIRSC4 = /path/to/a/directory/or/drive
  262. # DIRSC5 = /path/to/a/directory/or/drive
  263. # DIRSC6 = /path/to/a/directory/or/drive
  264. # DIRSC7 = /path/to/a/directory/or/drive
  265. # DIRSC8 = /path/to/a/directory/or/drive
  266. # DIRSC9 = /path/to/a/directory/or/drive
  267. # DIRSC10 = /path/to/a/directory/or/drive
  268. # DIRSC11 = /path/to/a/directory/or/drive
  269. # DIRSC12 = /path/to/a/directory/or/drive
  270.  
  271.  
  272. ##############################################################################
  273.  
  274.  
  275. #####
  276. # Example 'twander' Configuration File
  277. #####
  278.  
  279. # To easily enable this example configuration, globally
  280. # replace the string: "#-# " with a null or blank string.
  281.  
  282. #-# # Special variable(s) used below to trigger conditional logic
  283. #-#
  284. #-# # If you comment out or remove the following statement, the command
  285. #-# # associated with the = key (dd) disappears.
  286. #-#
  287. #-# POWERUSER = Anything-You-Want
  288. #-#
  289. #-#
  290. #-# # Override the default colors
  291. #-#
  292. #-# BCOLOR = beige
  293. #-# FCOLOR = black
  294. #-#
  295. #-# # We can set system options in a user-specific way
  296. #-# # by combining conditionals with environment variables
  297. #-#
  298. #-# .if [$USER] == root
  299. #-#
  300. #-# BCOLOR = red
  301. #-# FCOLOR = yellow
  302. #-#
  303. #-# .endif
  304. #-#
  305. #-# # We can also test for inequality in conditionals
  306. #-# # In this case, if we're not running as root,
  307. #-# # we'll override the help menu background color
  308. #-#
  309. #-#
  310. #-# .if [$USER]!= root
  311. #-# HBCOLOR = gray
  312. #-# .endif
  313. #-#
  314. #-# # User-defined variables make maintenance easier.
  315. #-# # Remember, that the variable name is case-sensitive.
  316. #-#
  317. #-# # We define some things in an OS-specific manner
  318. #-#
  319. #-#
  320. #-# # Definitions for Unix-like systems
  321. #-#
  322. #-#
  323. #-# .if [.OS] ==posix
  324. #-#
  325. #-# DELCMD = rm -i
  326. #-# DIRCMD = ls -al
  327. #-# EDITOR = [$EDITOR]
  328. #-# PAGER = [$PAGER]
  329. #-# QUOTE = '
  330. #-# SHELL = bash -c
  331. #-# TERMINAL = xterm -fn 10x20 -l -fb black -bg lightgreen
  332. #-# VSHELL = [XTERM] [SHELL]
  333. #-# XTERM = [TERMINAL] -e
  334. #-#
  335. #-# # We can nest conditionals too, for example ...
  336. #-#
  337. #-# GUI-Editor = Nope # Assume our editor is not GUI-aware
  338. #-#
  339. #-# .if [$EDITOR]== /usr/local/bin/emacs # But emacs is
  340. #-# GUI-Editor = Yup
  341. #-# .endif
  342. #-#
  343. #-# # Assign shortcuts for common Unix directories
  344. #-#
  345. #-# DIRSC1 = /etc
  346. #-# DIRSC10 = /usr/local/bin
  347. #-#
  348. #-# # Unix Wildcards
  349. #-#
  350. #-# WILDSELECT = \.gz # Items containing the string: .gz
  351. #-# WILDFILTER = rwx # Items containing the string: rwx
  352. #-#
  353. #-# # We can also have conditions which depend on whether a
  354. #-# # variable is defined or not - we don't care about its value
  355. #-#
  356. #-# .if [POWERUSER]
  357. #-# DD = [VSHELL] 'dd if={PROMPT:In File?} of={PROMPT:Out File?==>OutFile} | [$PAGER]'
  358. #-# .endif
  359. #-#
  360. #-# .endif
  361. #-#
  362. #-#
  363. #-# # Definitions for Win32 systems
  364. #-#
  365. #-# .if [.OS]==nt
  366. #-#
  367. #-# DELCMD = del /p
  368. #-# DIRCMD = dir
  369. #-# EDITOR = write
  370. #-# GUI-Editor = Yup
  371. #-# PAGER = more
  372. #-# SHELL =
  373. #-# QUOTE =
  374. #-# TERMINAL = cmd
  375. #-# VSHELL =
  376. #-# XTERM =
  377. #-#
  378. #-# # Assign shortcuts for common Win32 directories
  379. #-#
  380. #-# DIRSC1 = C:\Documents and Settings
  381. #-# DIRSC10 = C:\Program Files
  382. #-#
  383. #-# # Win32 Wildcards
  384. #-#
  385. #-# WILDSELECT = \.txt # Items containing the string: .txt
  386. #-# WILDSELECT = \.exe # Items containing the string: .exe
  387. #-# WILDFILTER = SYSTEM # Items containing the string: SYSTEM
  388. #-#
  389. #-# .endif
  390. #-#
  391. #-#
  392. #-#
  393. #-# # Command definitions are in the general format:
  394. #-# #
  395. #-# # command-key command-name command-string
  396. #-# #
  397. #-# # command-keys are case sensitive. Any single
  398. #-# # character which can be typed from the keyboard can
  399. #-# # be used as a command key, *except* the '#' character
  400. #-# # (which is always seen as a comment delimiter) and
  401. #-#
  402. #-#
  403. #-# # Some commands run anywhere
  404. #-#
  405. #-# a anycmd [VSHELL] {PROMPT:Enter Command:}
  406. #-# d delete [XTERM] [DELCMD] [SELECTIONS]
  407. #-# l dir-list [VSHELL] [QUOTE] [DIRCMD] | [$PAGER] [QUOTE]
  408. #-# T new-terminal [TERMINAL]
  409. #-# V view [XTERM] [PAGER] [DSELECTIONS]
  410. #-#
  411. #-# # Finally, some commands are only defined under some conditions
  412. #-# # In the following example, variable DD is only defined
  413. #-# # for posix systems AND if the POWERUSER variable has
  414. #-# # been set - this is all defined in the posix-specific
  415. #-# # section above.
  416. #-#
  417. #-# .if [DD]
  418. #-#
  419. #-# = dd [DD]
  420. #-#
  421. #-# .endif
  422. #-#
  423. #-#
  424. #-#
  425. #-# # Some commands are condition-specific
  426. #-#
  427. #-# .if [GUI-Editor]== Yup
  428. #-# e edit [EDITOR] [SELECTIONS]
  429. #-# .endif
  430. #-#
  431. #-#
  432. #-# .if [GUI-Editor] !=Yup
  433. #-# e edit [XTERM] [EDITOR] [DSELECTIONS]
  434. #-# .endif
  435. #-#
  436. #-#
  437. #-# # End of sample twander configuration