diff --git a/.twander b/.twander index 872591c..64dae93 100644 --- a/.twander +++ b/.twander @@ -1,5 +1,5 @@ # 'twander' Configuration File Example -# $Id: .twander,v 1.77 2006/12/19 16:51:24 tundra Exp $ +# $Id: .twander,v 1.78 2007/01/02 21:46:10 tundra Exp $ # # Contains list of all possible variables (and defaults, if any) for: # @@ -108,7 +108,7 @@ # # 4) The Program Function Names (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. +# 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. @@ -140,9 +140,9 @@ # TOGDETAIL = # Toggle detail view # TOGLENGTH = # Toggle length display between actual and normalized # TOGWIN32ALL = # Toggle win32all Features, If Available -# +# # Directory Navigation -# +# # CHANGEDIR = # Enter a new path # DIRHOME = # Goto $HOME # DIRBACK = # Goto previous directory @@ -152,9 +152,9 @@ # DRIVELIST = # On Win32, display Drive List View if possible # MOUSEBACK = # Go back one directory with mouse # MOUSEUP = # Go up one directory with mouse -# +# # Selection Keys -# +# # SELALL = # Select all items # SELINV = # Select all items # SELNONE = # Unselect all items @@ -162,16 +162,16 @@ # SELPREV = # Select previous item # SELEND = # Select bottom item # SELTOP = # Select top item -# +# # Scrolling Commands -# +# # PGDN = # Move page down # PGUP = # Move page up # PGRT = # Move page right # PGLFT = # Move page left -# +# # Execute Commands -# +# # RUNCMD = # Run arbitrary user command # SELKEY = # Select item w/keyboard # MOUSESEL = # Select item w/mouse @@ -289,23 +289,23 @@ #-# # with the program that handles it. A "type" is merely #-# # a string that uses Unix-style shell globbing to #-# # define which filenames are to be included. -#-# +#-# #-# ASSOC *.txt vim [SELECTION] -#-# +#-# #-# # The right-hand-side of an association statement can #-# # contain pretty much anything you can use in a command #-# # definition. -#-# +#-# #-# ASSOC *.[Tt] {PROMPT:Do You Really Want To Edit This?} vim [SELECTION] -#-# +#-# #-# # A special association for "default" operation is also #-# # supported. If the user clicks on a file type without #-# # a specific association, the default association (if any) #-# # will be applied. -#-# +#-# #-# ASSOC * emacs [SELECTION] -#-# -#-# +#-# +#-# #-# # You can also *exclude* specific file types from ever #-# # being associated. This has higher precedence than #-# # than the association command does. So, if you place @@ -313,11 +313,11 @@ #-# # defined an association for that type, it will never #-# # be applied. Exclusions consist of one or more lines #-# # in the following form: -#-# +#-# #-# # ASSOC ! space-separated-list-of-file-types -#-# +#-# #-# ASSOC ! *.pyo *.tx? *.r[az] -#-# +#-# #-# # You can removed a previously defined association #-# # by leaving the right-hand-side of the statement #-# # blank. This is primarily useful within conditional @@ -327,127 +327,127 @@ #-# #-# # This sequence first defines and then removes an #-# # association for text files: -#-# +#-# #-# ASSOC *.txt MyFineEditor [SELECTION] #-# ASSOC *.txt -#-# +#-# #-# # You can do this for any association statement. -#-# +#-# #-# ASSOC * #-# ASSOC ! -#-# -#-# +#-# +#-# #-# # Special variable(s) used below to trigger conditional logic -#-# +#-# #-# # If you comment out or remove the following statement, the command #-# # associated with the = key (dd) disappears. -#-# +#-# #-# POWERUSER = Anything-You-Want -#-# -#-# +#-# +#-# #-# # Override the default colors -#-# +#-# #-# BCOLOR = beige #-# FCOLOR = black -#-# +#-# #-# # We can set system options in a user-specific way #-# # by combining conditionals with environment variables -#-# +#-# #-# .if [$USER] == root -#-# +#-# #-# BCOLOR = red #-# FCOLOR = yellow -#-# +#-# #-# .endif -#-# +#-# #-# # We can also test for inequality in conditionals #-# # In this case, if we're not running as root, #-# # we'll override the help menu background color -#-# -#-# +#-# +#-# #-# .if [$USER]!= root #-# HBCOLOR = gray #-# .endif -#-# +#-# #-# # User-defined variables make maintenance easier. #-# # Remember, that the variable name is case-sensitive. -#-# +#-# #-# # We define some things in an OS-specific manner -#-# -#-# +#-# +#-# #-# # Definitions for Unix-like systems -#-# -#-# +#-# +#-# #-# .if [.OS] ==posix -#-# +#-# #-# DELCMD = rm -i #-# DIRCMD = ls -al #-# EDITOR = [$EDITOR] #-# PAGER = [$PAGER] #-# QUOTE = ' #-# SHELL = bash -c -#-# TERMINAL = xterm -fn 10x20 -l -fb black -bg lightgreen +#-# TERMINAL = xterm -fn 10x20 -l -fb black -bg lightgreen #-# VSHELL = [XTERM] [SHELL] #-# XTERM = [TERMINAL] -e -#-# +#-# #-# # We can nest conditionals too, for example ... -#-# +#-# #-# GUI-Editor = Nope # Assume our editor is not GUI-aware -#-# +#-# #-# .if [$EDITOR]== /usr/local/bin/emacs # But emacs is #-# GUI-Editor = Yup #-# .endif -#-# +#-# #-# # Assign shortcuts for common Unix directories -#-# +#-# #-# DIRSC1 = /etc #-# DIRSC10 = /usr/local/bin -#-# +#-# #-# # Unix Wildcards -#-# +#-# #-# WILDSELECT = \.gz # Items containing the string: .gz #-# WILDFILTER = rwx # Items containing the string: rwx -#-# +#-# #-# # We can also have conditions which depend on whether a #-# # variable is defined or not - we don't care about its value -#-# +#-# #-# .if [POWERUSER] #-# DD = [VSHELL] 'dd if={PROMPT:In File?} of={PROMPT:Out File?==>OutFile} | [$PAGER]' #-# .endif -#-# +#-# #-# .endif -#-# -#-# +#-# +#-# #-# # Definitions for Win32 systems -#-# +#-# #-# .if [.OS]==nt -#-# +#-# #-# DELCMD = del /p #-# DIRCMD = dir #-# EDITOR = write #-# GUI-Editor = Yup #-# PAGER = more -#-# SHELL = -#-# QUOTE = +#-# SHELL = +#-# QUOTE = #-# TERMINAL = cmd #-# VSHELL = -#-# XTERM = -#-# +#-# XTERM = +#-# #-# # Assign shortcuts for common Win32 directories -#-# +#-# #-# DIRSC1 = C:\Documents and Settings #-# DIRSC10 = C:\Program Files -#-# +#-# #-# # Win32 Wildcards -#-# +#-# #-# WILDSELECT = \.txt # Items containing the string: .txt #-# WILDSELECT = \.exe # Items containing the string: .exe #-# WILDFILTER = SYSTEM # Items containing the string: SYSTEM -#-# +#-# #-# .endif -#-# -#-# -#-# +#-# +#-# +#-# #-# # Command definitions are in the general format: #-# # #-# # command-key command-name command-string @@ -456,73 +456,73 @@ #-# # 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). -#-# -#-# +#-# +#-# #-# # Some commands run anywhere -#-# +#-# #-# a anycmd [VSHELL] {PROMPT:Enter Command:} -#-# d delete [XTERM] [DELCMD] [SELECTIONS] +#-# d delete [XTERM] [DELCMD] [SELECTIONS] #-# l dir-list [VSHELL] [QUOTE] [DIRCMD] | [$PAGER] [QUOTE] #-# T new-terminal [TERMINAL] #-# V view [XTERM] [PAGER] [DSELECTIONS] -#-# +#-# #-# #-# # Some commands are only defined under some conditions #-# # In the following example, variable DD is only defined #-# # for posix systems AND if the POWERUSER variable has #-# # been set - this is all defined in the posix-specific #-# # section above. -#-# +#-# #-# .if [DD] -#-# +#-# #-# = dd [DD] -#-# +#-# #-# .endif -#-# -#-# -#-# +#-# +#-# +#-# #-# # Some commands are condition-specific -#-# +#-# #-# .if [GUI-Editor]== Yup #-# e edit [EDITOR] [SELECTIONS] #-# .endif -#-# -#-# +#-# +#-# #-# .if [GUI-Editor] !=Yup #-# e edit [XTERM] [EDITOR] [DSELECTIONS] #-# .endif -#-# -#-# +#-# +#-# #-# # Execution variables allow you to run a *program* and have its #-# # text output assigned to a 'twander' configuration variable. #-# # Note that they are delimited with backticks: -#-# +#-# #-# D showdate [VSHELL] 'echo [`date`] | [PAGER]' -#-# -#-# +#-# +#-# #-# # If the execution variable you want to run produces #-# # multiple lines of text, you may need to quote it #-# # to get things to work properly: -#-# +#-# #-# D showfiles [VSHELL] 'echo "[`ls`]" | [PAGER]' -#-# -#-# +#-# +#-# #-# # You can also force 'twander' to strip the newlines out of #-# # multiline output from an execution variable by inserting #-# # a '-' at the beginning of the command name: -#-# +#-# #-# D showfiles [VSHELL] 'echo "[`-ls`]" | [PAGER]' -#-# -#-# # Execution variables are evaluated at the time the +#-# +#-# # Execution variables are evaluated at the time the #-# # they are actually *used* in a command invocation, #-# # NOT when the configuration file is being read in. #-# # This is true even if you first assign them to #-# # a variable: -#-# +#-# #-# CURRENTDATE = [`date`] #-# D showcurrentdate [VSHELL] 'echo [CURRENTDATE] | [PAGER]' -#-# +#-# #-# # Each time 'showcurrentdate' gets run, the CURRENTDATE #-# # variable will be set to the output of the 'date' command. #-# # This is unlike most variables used in 'twander' that are