[txmt-dev] Re: Working with indentation rules

Jacob Carlborg doob at me.com
Wed Sep 18 17:14:17 UTC 2013


On 2013-09-18 12:21, Allan Odgaard wrote:

> It will automatically work, if you assign the scopes to the braces.

Nice.

> The snippet is in the Source bundle, to find it, enter {‸} in a C file,
> then use Bundles → Select Bundle Item… (⌃⌘T) switch to key equivalent
> (⌘4) and press return (↩): this should find the snippet, you can inspect
> it by pressing the link arrow or ⌥↩, here you can see that it is scoped to:
>
>      source & (
>          (L:punctuation.section.*.begin    & R:punctuation.section.*.end)
>        | (L:punctuation.definition.*.begin &
> R:punctuation.definition.*.end)
>      ) - string

I couldn't find it using Select Bundle Item. I'm guessing that's because 
it's not in the Bundle -> Source menu. But I can see it if I go to 
Bundles -> Edit Bundles -> Source -> Other Actions.

-- 
/Jacob Carlborg



More information about the textmate-dev mailing list