sorry for dupe posting :(
this would not allow for commands that take the whole document as input and the current selection as output, and autocompletion thingies wouldn't work _that_ good, so considering this I'm on +1 for allan's proposal. by the way, I'd like an option to show the output as a popup menu (or something like that): this would perfectly suit autocompletion. think about it, al.
Domenico