gselt: a GTK selection tool
Adam Sampson <ats@offog.org>

This tool shows a borderless GTK window with various buttons in
depending on the current selection. It's configured by a ".gselt" file
in your $HOME directory, which contains lines with the following
format:

X!Y!Z

X: extended regular expression to match the selection against. If it
   matches, this button will be shown.

Y: text to write on the button.

Z: command to execute when the button is clicked. \1 .. \9
   will be replaced with back references 1 to 9 in the regular
   expression; \& (or, for backwards compatibility, %s) will be
   replaced with the entire selection.

By default, the window will pop up in the top right corner of the
screen; if you'd prefer it to pop up under the mouse pointer, then
invoke gselt as "gselt -m".

An example .gselt file can be found as "dot-gselt".

Ideas? Comments? Mail me at the address above.
