On 3/12/06, Allan Odgaard throw-away-1@macromates.com wrote:
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.
Cute trick. Thank you.
- 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.
Thought so.
-- Dr. Drang (master of the two-word sentence)