diff --git a/twander.py b/twander.py index d7f59fc..3ee68a9 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.197 2006/12/14 06:26:01 tundra Exp $" +RCSID = "$Id: twander.py,v 3.198 2006/12/14 07:23:06 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -301,6 +301,7 @@ AFTERCLEAR = True # Clear all selections following REFRESHAFTER AFTERWAIT = 1 # Seconds to wait before REFRESHAFTER AUTOREFRESH = True # Automatically refresh the directory display? +CMDMENUSORT = False # Sort the command menu? CMDSHELL = "" # No CMDSHELL processing DEBUGLEVEL = 0 # No debug output DEFAULTSEP = "==>" # Default separator in PROMPT and YES definitions @@ -1333,6 +1334,11 @@ # Now load the menu with the final set of commands + # First see if the user wanted the list sorted + + if CMDMENUSORT: + UI.Commands.sort() + for cmdkey in UI.Commands: cmdname = UI.CmdTable[cmdkey][0] UI.CmdBtn.menu.add_command(label=PadString(cmdname, CMDMENU_WIDTH) + "(" + cmdkey + ")", @@ -5213,6 +5219,7 @@ "ADAPTREFRESH":ADAPTREFRESH, "AFTERCLEAR":AFTERCLEAR, "AUTOREFRESH":AUTOREFRESH, + "CMDMENUSORT":CMDMENUSORT, "FORCEUNIXPATH":FORCEUNIXPATH, "HIDEDOTFILES":HIDEDOTFILES, "INVERTFILTER":INVERTFILTER,