diff --git a/twander.py b/twander.py index 179b6f5..02ed941 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.143 2004/03/11 07:24:28 tundra Exp $" +RCSID = "$Id: twander.py,v 3.144 2004/03/11 08:17:28 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -601,6 +601,27 @@ SELECTIONS = r'[SELECTIONS]' YESNO = r'[YESNO:' +# Shortcuts to the builtins available in RUNCMD + +RUNCMD_SC = {"[D]" : DIR, + "[DN]" : DSELECTION, + "[DS]" : DSELECTIONS, + "[SN]" : SELECTION, + "[SS]" : SELECTIONS, + "[1]" : MEM1, + "[2]" : MEM2, + "[3]" : MEM3, + "[4]" : MEM4, + "[5]" : MEM5, + "[6]" : MEM6, + "[7]" : MEM7, + "[8]" : MEM8, + "[9]" : MEM9, + "[10]" : MEM10, + "[11]" : MEM11, + "[12]" : MEM12 + } + #----------------------------------------------------------# # Prompts, & Application Strings # @@ -2818,7 +2839,12 @@ mycmd = cmd - # Keep track of whether or not the user asked for a refreshe after command completion + # Process any built-in shortcuts they may have used + + for sc in RUNCMD_SC.keys(): + mycmd = mycmd.replace(sc, RUNCMD_SC[sc]) + + # Keep track of whether or not the user asked for a refresh after command completion # We have to strip it here of CMDSHELL processing will work. do_refresh_after = FALSE