The basic procedures as follows:
The New Command Wizard prompts you to select an application-specific
macro or global macro. If you select the former, the Wizard displays a
list of currently with active applications as well as those for which
you have previously added macros. Once you select an application, the
Wizard displays list of current window titles that application, as well
as space delimited substrings of those titles. You can select one of
these as is, or edit it, or type your own, which may not be
space-delimited. Then you go on to create the macro.
The documentation is not very detailed, but as far as I can tell, the
only thing you can specify is that of particular string is a substring a
the window title. I tried the Unix regular expression notation ^ for
the beginning of a line, on the off chance that that would work, but it
doesn't. If you have complete control over the window title, as with an
xterm window, you can probably work around this limitation, but more
complicated cases, such as a Emacs window editing a file ending in .tex,
might pose difficulties. You also do not seem to be able to define a
macro which is specific to a particular window title, but not specific
to any application (making it difficult to write macros for one
particular kind of file which you may edit with different applications).
David Fox
davidfox@@fas.harvard.edu
--------------------------------------------------------------------------
This of course is the way to talk to dragons, if you don't want to
reveal your proper name (which is wise), and don't want to infuriate
them by a flat refusal (which is also very wise). No dragon can resist
the fascination of riddling talk and of wasting time trying to
understand it.
--- J. R. R. Tolkien, The Hobbit
![]() |