[TxMt] Different behavior for input as Selected Text versus Scope
Allan Odgaard
throw-away-2 at macromates.com
Wed May 7 01:58:01 UTC 2008
On 2 May 2008, at 03:26, Michael Manti wrote:
> I have written a command to "Reflow comments" in my Stata do files.
> The command is as follows:
> [...]
> If I invoke the command with the cursor in the middle [...] I get
> the desired output:
>
> However, if I instead select the entire block of text, I get the
> following mangled result:
> [...]
My guess is that when you fully select the comment, the scope of the
selection is not so that your command’s scope selector targets it,
and you get the default implementation of ⌃Q (assuming you invoke
this by the ⌃Q key equivalent).
More information about the textmate
mailing list