diff --git a/.twander b/.twander index 23c1352..3b6fc40 100644 --- a/.twander +++ b/.twander @@ -1,5 +1,5 @@ # 'twander' Configuration File Example -# $Id: .twander,v 1.50 2003/02/25 07:13:19 tundra Exp $ +# $Id: .twander,v 1.51 2003/03/04 23:30:25 tundra Exp $ # # Contains list of all possible variables (and defaults, if any) for: # @@ -7,15 +7,18 @@ # Key Bindings # Directory Shortcuts # -# Contains examples of: +# This file ends with an example configuration file containing: # # Variable Definitions +# Directory Shortcuts +# Wildcards # Command Definitions +# Conditional Expressions # -# EVERYTHING HERE IS COMMENTED OUT. COPY WHAT YOU WANT TO +# THIS ENTIRE FILE IS COMMENTED OUT. COPY WHAT YOU WANT TO # CHANGE AND EDIT TO TASTE. THAT WAY YOU STILL WILL HAVE # THE ORIGINAL FILE CONTENT AS A REFERENCE FROM WHICH TO WORK. - + @@ -52,6 +55,9 @@ # NONAVIGATE = False # QUOTECHAR = " # REFRESHINT = 3000 +# SORTBYFIELD = Name +# SORTREVERSE = False +# SORTSEPARATE = True # STARTDIR = Defaults To Wherever Program Was Started # STARTX = 0 # STARTY = 0 @@ -199,6 +205,20 @@ # MEMSET12 = +# Sorting Keys + +# SORTBYNONE = # Select sorting parameters +# SORTBYPERMS = +# SORTBYLINKS = +# SORTBYOWNER = +# SORTBYGROUP = +# SORTBYLENGTH = +# SORTBYTIME = +# SORTBYNAME = +# SORTREV = +# SORTSEP = + + ############################################################################## @@ -228,55 +248,165 @@ ##### -# Examples Of Variables And Command Definitions +# Example 'twander' Configuration File ##### -##### -# Example 'twander' Configuration For Unix -##### +# To easily enable this example configuration, globally +# replace the string: "#-# " with a null or blank string. - -# 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] -# d delete [XTERM] rm -i [DSELECTIONS] -# e edit [$EDITOR] [DSELECTIONS] # Use this version for GUI-aware editors (like emacs) -# e edit [XTERM] [$EDITOR] [DSELECTIONS] # Use this version non-GUI editors (like vi) -# 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] - - +#-# # 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 +#-# VSHELL = [XTERM] [SHELL] +#-# XTERM = [TERMINAL] -e +#-# +#-# # We can nest conditionals too, for example ... +#-# +#-# GUI-Editor = False # Assume our editor is not GUI-aware +#-# +#-# .if [$EDITOR]==/usr/local/bin/emacs # But emacs is +#-# GUI-Editor = True +#-# .endif +#-# +#-# # Assign shortcuts for common Unix directories +#-# +#-# DIRSC1 = /etc +#-# DIRSC10 = /usr/local/bin +#-# +#-# # Unix Wildcards +#-# +#-# WILDCARD = \.gz # Items containing the string: .gz +#-# WILDCARD = 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?] | [$PAGER]' +#-# .endif +#-# +#-# .endif +#-# +#-# +#-# # Definitions for Win32 systems +#-# +#-# .if [.OS]==nt +#-# +#-# DELCMD = del /p +#-# DIRCMD = dir +#-# EDITOR = write +#-# GUI-Editor = False +#-# PAGER = more +#-# SHELL = +#-# QUOTE = +#-# TERMINAL = cmd +#-# VSHELL = +#-# XTERM = +#-# +#-# # Assign shortcuts for common Win32 directories +#-# +#-# DIRSC1 = [$SystemDrive]\Documents and Settings +#-# DIRSC10 = [$SystemDrive]\Program Files +#-# +#-# # Win32 Wildcards +#-# +#-# WILDCARD = \.txt # Items containing the string: .txt +#-# WILDCARD = \.exe # Items containing the string: .exe +#-# WILDCARD = SYSTEM # Items containing the string: SYSTEM +#-# +#-# .endif +#-# +#-# +#-# +#-# # 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 +#-# +#-# +#-# # Some commands run anywhere +#-# +#-# a anycmd [VSHELL] [PROMPT:Enter Command:] +#-# d delete [XTERM] [DELCMD] [SELECTIONS] +#-# l dir-list [VSHELL] [QUOTE] [DIRCMD] | [$PAGER] [QUOTE] +#-# T new-terminal [TERMINAL] +#-# V view [XTERM] [PAGER] [DSELECTIONS] +#-# +#-# # Finally, 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]==True +#-# e edit [EDITOR] [SELECTIONS] +#-# .endif +#-# +#-# +#-# .if [GUI-Editor]==False +#-# e edit [XTERM] [EDITOR] [DSELECTIONS] +#-# .endif +#-# +#-# +#-# # End of sample twander configuration