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