On 10/3/2006, at 0:20, Dr. Drang wrote:
[...] Is there a foolproof way of getting the caret to land right after the selection?
What you can do is let the command insert as snippet. You will need to escape $, , and ` in the result, but then you have full control over where the caret should go (or what should be selected), after having the text piped through the command.
- Is there a way for a command to call a macro?
- Can a macro be made to behave differently depending on whether
text is selected or not?
Afraid the answer is no to both.