2003-01-20 |
Whoops - Had to features both mapped to Control-y (Clear History
...
and Toggle win32all). Moved Clear History to Control-y.
tundra
committed
on 20 Jan 2003
|
Fixed problem with program blowing-up if it encountered
...
a file with an extended character in its name when win32all
options were in force. Cause by the way the Win32 api
returns string names for user and group. Fixed by coercing
them with an str(...) call.
Fixed problem with each new directory causing *2* calls
to BuildDirList - leftover debugging print statement was
the problem. Should speed up larger directories considerably.
tundra
committed
on 20 Jan 2003
|
2003-01-19 |
Changed default width to 110.
...
When win32all features are toggled from keyboard, the display
is refreshed so update is seen immediately.
KeyToggleWin32All() now only works if USEWIN32ALL is True.
However, a separate internal program flag (WIN32ALLON) is
used to keep track of whether or not these features are
currently requested by the user. This way setting USEWIN32ALL
to false both inhibits these features and prevents the
toggle feature from reenabling them. Previously, even if
USEWIN32ALL was False, the user could toggle the features
back on with the TOGWIN32 program feature.
ProcessOptions() now ends with a call to RefreshDirList()
to make sure any interface features are properly updated.
Previously, the user either had to wait for the next
scheduled autorefresh or initiate one manually.
tundra
committed
on 19 Jan 2003
|
Added ability to display true Win32 user/group info if win32all installed.
...
Added USEWIN32ALL option to enable/disable this feature.
Added function TOGWIN32ALL (^w) to toggle this feature on and off.
tundra
committed
on 19 Jan 2003
|
Where debug and help menus display common information, made titles the same.
...
Added code to pickup the user name from win32all if it is present.
Implemented code to display native Win32 file mode information if win32all present.
tundra
committed
on 19 Jan 2003
|
2003-01-18 |
Broke Internal Program Variables and User-Settable Options
...
into two separate Help menus to keep them reasonable length.
Internal Program Variables are now sorted in both debug
output and in the Help menu.
Added username to titlebar if we can get it.
Restructured win32all imports slightly to make the mechanism
more general.
tundra
committed
on 18 Jan 2003
|
Dropped "break" from the return at the end of the accelerator handler
...
logic. This was inhibiting other Alt- keys from being used as locally defined.
Removed -b, -f, -n, -w, and -s command line flags since color/font parameters
can now be set via configuration file options.
Added options MAXDIRBUF and MAXHISTBUF to bound the data storage used
by UI.AllDirs and UI.CmdHist respectively.
tundra
committed
on 18 Jan 2003
|
Ended RIGHTS in a period.
...
Added option variables for setting Menubar color, and Menu/Help
item colors/font: MBARCOL, MBCOLOR, MFCOLOR, MFNAME, MFSZ, MFWT,
HBCOLOR, HFCOLOR, HFNAME, HFSZ, HFWT.
tundra
committed
on 18 Jan 2003
|
2003-01-17 |
Added " &' to the end of the non-threaded execution command so it
...
does not lock up the main interface in a modal wait.
Implemented the Help Menu w/accelerator key.
tundra
committed
on 17 Jan 2003
|
Added USETHREADS option - allows user to select traditional
...
process mechanics for command execution on Unix systems.
Ignored on Win32.
tundra
committed
on 17 Jan 2003
|
Added logic to reset options to their defaults before processing
...
the configuration file, either initially or on a reload.
This allows the user to comment out an options statment in
the configuration file and have the program go back to
default behavior. Also cleaned up debug output to separate
internal and user-settable options when asked to dump variable
information.
tundra
committed
on 17 Jan 2003
|
Added NODETAILS option which prevents details from ever being
...
displayed.
Added NONAVIGATE option which prevents any navigation away from
starting directory
tundra
committed
on 17 Jan 2003
|
Reassigned Command History popup to Ctrl-Shift-Button3.
...
Mask unneeded Mod2-Mod5 bits. Linux reports NumLock in Mod2
which can cause the program to not respond properly if on.
Changed semantics of Command History slightly: Commands
entered manually will be saved in the history without the
variables expanded. All other command invocations
save the command with all variables dereferenced.
tundra
committed
on 17 Jan 2003
|
2003-01-16 |
Program now catches/warns/ignores DIRSC numbers outside
...
the range of 1-12.
Cleaned up and generalized the "ignore" masks needed for
the various Unix/Win32 event state variations.
Implemented Alt-Button3 as the mouse shortcut to the History Menu.
tundra
committed
on 16 Jan 2003
|
Added ability for manually entered commands to reference environment
...
variables [$NAME] and User-Defined variables [NAME]. This necessitated
factoring out the variable parsing logic into a separate function
callable both by the configuration file parsing logic (for user-defined
commands) as well as the command execution logic (for manually entered
commands).
tundra
committed
on 16 Jan 2003
|
Fixed problem which cause History Menu to be sorted.
...
Added ability for manually entered commands to reference
built-in variables. To support this, the built-in
variable parser was factored out into a separate function
since it is now needed both by the keystroke command processor
and the manual command processor.
tundra
committed
on 16 Jan 2003
|
2003-01-15 |
Added [YESNO: ...] built-in variable.
...
Made program more forgiving by converting as many existing
errors to warnings with recovery and continued operation.
Some reformatting of warning messages for consistency.
tundra
committed
on 15 Jan 2003
|
Fixed problem on Unix when user rapidly selected a
...
symlink which pointed back at itself - Tk seems to get
confused about what message box it has up, and throws
a benign error. The Tk call is now protected by
try/except so the error is not seen on stdout.
Retructured options processing into a common routine
so that options get properly set to their defaults
even if the specified configuration file cannot
be found.
tundra
committed
on 15 Jan 2003
|
Bit 0 of DEBUGLEVEL is now observed on reload of the config file.
...
Added logic to enforce rule that RHS of a String option cannot
be blank.
Undid forced case collapse of Win32 file names. Instead, now
under Win32, both directory and file names are sorted using
a case-insensitive algorithm.
Factored menu update logic into a single, common handler
which can talk to either standard functions or event
handlers (via the 'fakeevent' option).
Both MAXDIR and MAXHIST are now observed on a config file reload.
However, they do not actually remove content from their respective
data structures. They merely limit what is visible. This allows
a subsequent change to restore the view of previous entries.
tundra
committed
on 15 Jan 2003
|
2003-01-14 |
Finished support for the remainining options which can
...
be set in the configuration file: Boolean (AUTOREFRESH, WARN) and
String (BCOLOR, FCOLOR, FNAME, FWT, QUOTECHAR, STARTDIR).
Restructured the command line processing to make sure the
environment variable and then the command line override
any options set in the configuration file and to skip
any options processing if the user just want help or
version information. Also resturctured the debug logic
to properly display requested information if the user
reloads a configuration file from a running instance of
the program.
tundra
committed
on 14 Jan 2003
|
2003-01-13 |
Change Directory was preserving last manual entry even
...
when MAXDIR=0. Fixed.
tundra
committed
on 13 Jan 2003
|
Collapsed all Win32 file names to lower-case so that sorted display
...
makes more sense. Also fixed bug in which the same Win32 directory
entered in different case would appear twice in the Directory Menu.
Added 'last entry' as default offering in the Change Directory
dialog much like the Run Command dialog already has.
The Clear History feature now additionally clears the
directory stack, the Change Directory 'last entry' buffer, as
well as the Directory Menu itself.
The directory menu logic now honors the MAXDIR option variable.
Fixed bug which left Command Menu enabled after reloading a
configuration file which had no commands defined.
All of the numeric options are now settable from within the
configuration file: DEBUGLEVEL, FSZ, HEIGHT, MAXDIR, MAXNESTING,
MAXHIST, REFRESHINT, and WIDTH.
tundra
committed
on 13 Jan 2003
|
Added try/except protection around command execution attempts.
...
Set GUI options like size and fonts *after* the configuration
file is read to allow the file to override the defaults.
Changed 'Last Command' semantics to include items selected
from Command History, but only if they were manually modified.
Changed logic of MAXNESTING to operate correctly when this
variable is set to 0 - this inhibits all user-define variable substitution.
Added MAXHIST variable and supporting logic to bound the size of
the Command History.
Began adding the infrastructure to support setting options in the
configuration file. MAXHIST, MAXNESTING, HEIGHT, WIDTH now
can be set this way.
Began implementing MAXDIR to bound size of Directory Menu
contents.
Changed semantics of how options are read at startup.
The Configuration File (if any) is read before any other
environment or command line options are processed. This
allows the configuration file to override program defaults
via options specified by the user in that file.
tundra
committed
on 13 Jan 2003
|
2003-01-11 |
Commands selected from History Menu no longer as saved
...
as the 'last command'. Only commands actually entered
manually from the RUNCMD dialog are saved as 'last'.
Added command to clear all history - CLRHIST.
tundra
committed
on 11 Jan 2003
|
Refactored accelerator logic and menu popup logic into common
...
routines.
Added full Command History features and menu.
tundra
committed
on 11 Jan 2003
|
Fixed a problem with mouse/keyboard input because different
...
configurations of Win32 (even of same OS) cause different
control bits to be set when the Alt key is pressed.
Changed logic in DirListHandler() slightly to only add
a trailing PSEP to a directory if it does not already have
one. Necessitated because of the Win32 Drive List View
which already has trailing '\' for each entry.
tundra
committed
on 11 Jan 2003
|
2003-01-10 |
Consolidated all the program execution points into a single,
...
common routine, ExecuteCommand(), with a Command History stack added.
Changed Run Command dialog to default with last command executed,
if any, in the entry field.
tundra
committed
on 10 Jan 2003
|
Fine-tuned the accelerator key logic.
...
Added the Directory Shortcut feature.
tundra
committed
on 10 Jan 2003
|
2003-01-09 |
Moved SetSelection() into GUI object where it belongs.
...
Fixed bug which caused program to exit on Unix if a
UID/GID was encountered which had no corresponding name.
Added logic to implemente menu accelerator keys.
tundra
committed
on 9 Jan 2003
|
2003-01-07 |
Restrutured all mouse events to go through one of two
...
mouse event dispatcher to make it easier to distinquish
between mouse events modified by Ctrl, Shift, etc. keys.
Implemented a single list which contains the names of
all Key/Mouse assignments which may not be rebound in
the configuration file.
Implemented a feature to popup the visited directories list
using the mouse (MOUSEDIR).
tundra
committed
on 7 Jan 2003
|