[TxMt] Re: Bundle snippets scope selector -- excluding scope?
Harald Lapp
harald.lapp at gmail.com
Wed Nov 27 12:33:19 UTC 2013
2013/11/26 Rob McBroom <mailinglist0 at skurfer.com>:
> On 26 Nov 2013, at 5:23, Harald Lapp wrote:
>
>> the PHP bundle defines a tab-trigger for "array" that expands to $...
>> = array ... thats fine as long as i am really in the scope
>> "source.php". but when i am writing documentation (phpdoc -- which is
>> in fact "source.php", too) it's really annoying when the 'array'
>> keyword and such get's expanded.
>
>
> The most obvious answer is “Don’t hit ⇥ if you don’t want the expansion”.
>
> If that’s not an option for some reason, you can exclude certain parts of
> the document (assuming you’re in a different scope, like a comment).
it's not an option, because this is (imo) what snippets are for:
pressing "tab" to move to the next field in the snippet (template).
pressing a "space" before the "tab" is what i currently do, but i
often forget it and it is not how it should work, imo.
> See http://manual.macromates.com/en/scope_selectors#excluding_elements
thanks, that seems to be what i am looking for. so i would have to
define a scope "phpdoc" (for example) and use this to get the desired
effect?
harald
--
http://www.pixelio.de/
Deine kostenlose Bilddatenbank für lizenzfreie Fotos
More information about the textmate
mailing list