[TxMt] Different behavior for input as Selected Text versus Scope
Michael Manti
statboy3000 at gmail.com
Thu May 8 01:14:14 UTC 2008
On May 6, 2008, at 9:58 PM, Allan Odgaard wrote:
> 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).
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
Ah! Thank you. I was checking the scope with the cursor at the
beginning or end of the text, but without selecting it. Hence my
confusion.
More information about the textmate
mailing list