Brought vi command line editing up to the same level as
commonly found in bash/ksh/etc.
Addition of many edit-mode commands
Addition of / and ? searches of command history.
initialisation of new vi_state stucture members
slight change to command window text object
instantiation to allow use of text object's undo
Bulk of changes and additions.
Some changes to key bindings, and the addition of one
more input "mode"
Changes to hist_prev()/hist_next() to allow pattern
Addition of "hist cur" subcommand (returns current
Note1: There exists another file,
src/tclscripts/lib/Command.tcl, which also implements
much of what text.tcl implements, but as a class. It
seems unused, and I left it alone. If that class is or
should be used, I would happily consider updating it.
Note2: There is an implicit space at the end of lines
in the command window; this causes some slight
functionality differences. I was inclined to remove
it, for consistency reasons, but thought I should seek
input before doing so. It appears to be only a
programming convinience to do with the highlight
cursor. read: someone was lazy.
Note3: compiled/tested against 7.6.4.
Note4: tested rather thoroughly, but not completely
exhaustively. If bugs are encountered, I will gladly
assist in their rectification. You may add "swcto" to
the SourceForge project to facilitate this if you wish.