# 'twander' configuration file example # Unless you want to change key bindings, skip the first # section. Uncomment either the Unix or Win32 examples # as appropriate for your system. # # $Id: .twander,v 1.43 2003/01/07 21:34:38 tundra Exp $ ##### # Key Bindings ##### # The default key bindings are shown in the comments below. To # change a binding from its default value, conform to the following # rules: # # 1) Only change the right side of the assignment. The left side # is a variable name which is significant to twander and may # not be changed. # # 2) Follow the Tkinter conventions for key naming. This should # be pretty easy to do - just use the defaults below as a guide. # Do *not* quote the key names. Just use the <...> naming # convention as you see it below. # # 3) It is best if keyboard commands are all Control or Function keys. # If you assign anything to a simple key it may conflict with a user- # defined command. If you assign anything to a keypad/special # key it may conflict with that key's normal GUI behavior. # # 4) The key binding variables (the left side of the assignments) # are RESERVED and may not be used as names for your own user- # defined variables elsewhere in the configuration file. # # 5) When you're done with your changes make sure to uncomment # them so twander can read them it and override its defaults. # Then either restart the program or reload the configuration # file to assign the new bindings. # # 6) Note that you CANNOT change the bindings for Mouse Buttons. # They are documented below for completeness sake, but any # attempt to change them will cause \'twander\' to present # a warning message and ignore that line. ##### # Key Bindings Begin Here ##### # General Program Commands # # MOUSECTX = <ButtonRelease-3> # Invoke context menu # MOUSEDIR = <Shift-ButtonRelease-3> # Display the directory menu # QUITPROG = <Control-q> # Quit the program # READCONF = <Control-r> # Re-read the configuration file # REFRESH = <Control-l> # Refresh screen # TOGDETAIL = <Control-t> # Toggle detail view # # Directory Navigation # # CHANGEDIR = <Control-x> # Enter a new path # DIRHOME = <Control-h> # Goto $HOME # DIRBACK = <Control-b> # Goto previous directory # DIRROOT = <Control-j> # Goto root directory # DIRSTART = <Control-s> # Goto starting directory # DIRUP = <Control-u> # Go up one directory level # DRIVELIST = <Control-k> # On Win32, display Drive List View if possible # MOUSEBACK = <Control-Double-ButtonRelease-1> # Go back one directory with mouse # MOUSEUP = <Control-Double-ButtonRelease-3> # Go up one directory with mouse # # Selection Keys # # SELALL = <Control-comma> # Select all items # SELINV = <Control-i> # Select all items # SELNONE = <Control-period> # Unselect all items # SELNEXT = <Control-n> # Select next item # SELPREV = <Control-p> # Select previous item # SELEND = <Control-e> # Select bottom item # SELTOP = <Control-a> # Select top item # # Scrolling Commands # # PGDN = <Control-v> # Move page down # PGUP = <Control-c> # Move page up # PGRT = <Control-g> # Move page right # PGLFT = <Control-f> # Move page left # # Execute A Command # # RUNCMD = <Control-z> # Run arbitrary user command # SELKEY = <Return> # Select item w/keyboard # MOUSESEL = <Double-ButtonRelease-1> # Select item w/mouse # End of Key Bindings ##### # Example 'twander' Configuration For Unix ##### # User-defined variables make maintenance easier. # Remember, that the variable name is case-sensitive. # SHELL = bash -c # VSHELL = [XTERM] [SHELL] # XTERM = xterm -fn 9x15 -l -e # Command definitions are in the general format: # # command-key command-name command-string # # command-keys are case sensitive. Any single # character which can be typed from the keyboard can # be used as a command key, *except* the '#' character # (which is always seen as a comment delimiter) and # = dd [VSHELL] 'dd if=[PROMPT:In File?] of=[PROMPT:Out File?] | [$PAGER]' # V view [XTERM] [$PAGER] [DSELECTIONS] # a any-command [VSHELL] '[PROMPT:Enter Command] [PROMPT:Enter Command Arguments] | [$PAGER]' # d delete [XTERM] rm -i [DSELECTIONS] # e edit [$EDITOR] [DSELECTIONS] # l ls [VSHELL] '/bin/ls -al ./ | [$PAGER]' # p print lpr [DSELECTIONS] & # s showselected [XTERM] bash -c 'echo [DIR] "--->" [DSELECTION] "--->" [DSELECTIONS] "--->" [SELECTION] "--->" [SELECTIONS] | [$PAGER] ' # t xterm xterm -fn 10x20 -l -fb black -bg lightgreen #----------------------------------------------------------------------# ##### # Example 'twander' Configuration For Win32 ##### # EDT = [$EDITOR] # a anycmd [PROMPT:Enter Command:] # d del del /p [DSELECTIONS] # e edit [EDT] [DSELECTIONS] # V view [$PAGER] [DSELECTIONS] # l ls dir [DIR] | [$PAGER]