Joachim's web pages [Home] [AlphaTcl]

Misc scripts

Tcl scripts for for Alpha (require Alpha8).

See also the dictionary scripts

  • embrace v.1.1.1 (21/01/2003)
    This is a suite of keybindings and procs operating on the word under (behind) the cursor. The principal functions are to put the word into any kind of braces, quotes, or tags, or take it out of any kind of braces, quotes, or tags. Each keybinding toggles the braces, quotes, or tags. Other functions are similar to functions already found in Alpha: transform the word to uppercase, lowercase, titlecase, or mixedcase; find another occurrence of it (forwards or backwards), hilite it or delete it. The operations can also apply to more than one word, through infix key bindings.
  • windowZoom.
    Package defining key binding for easy handling of window sizes following font sizes. See the AlphaTcl distribution for this package.
  • sortLines
    Leaner and more modern version of sortLines. Just like the old one it is based on lsort, and the main feature of the new version is that it does nearly nothing but passing everything to lsort. The benefit of that is that it accepts the full range of switches to lsort: -ascii, -command, -decreasing, -dictionary, -increasing, -index, -integer, -real, or -unique. In particular one can sort lines according to custom compare procs using the -command switch --- this was the motivation for rewriting the code. (The old proc has its own implementation of a subset of these switches, and uses a different syntax for them. (Most likely, when that proc was written, some ten years ago, Tcl didn't have all those switches built in...))
  • joinLines
    Modern reimplementation and refinement of joinLines (part of vi mode in older versions of Alpha). This version is very careful about whitespace adjustments and cursor position, it also works on several lines in a selection, and it is single-stroke undo-able.


Last updated: 30th of January 2003 by Joachim Kock.