[TxMt] showInSymbolList not working

Gavin Kistner gavin at refinery.com
Tue Feb 28 15:53:10 UTC 2006


I'm trying to play with symbol list definitions, and things aren't  
working for me.

I've created a language to play with:

{	scopeName = 'source.gk';
	fileTypes = ( 'gk' );
	patterns = (
		{	name = 'heading';
			match = '^((=+) (.+) \2)\s*$';
			captures =
			{	1 = { name = 'heading.gk'; };
				2 = { name = 'heading.depth'; };
				3 = { name = 'heading.title'; };
			};
		},
	);
}

And a source file that matches it:

= Heading 1 =

== Heading 1.1 ==
It's the end of the world as we know it, and I feel fine.
   * And this
   * Is wh a...z t I mean
...and there we go
== Heading 1.2 ==

= Heading 2 =


Using colorings in my own Theme, I can tell that the scope "source.gk  
heading.gk" is being applied to the headings. Now I want them to show  
up in the symbol list.

I've created a new Preferences part in the bundle:

/* preferences */
{ showInSymbolList = 1; }

and set the scope for that Preference to "source.gk heading.gk".  
Unfortunately, nothing shows up in the Symbol list.


If I quit and restart TextMate, the contents of the Preference are  
unchanged. (I noticed that if I put bad syntax into this preference  
and quit/restart, the change doesn't stick. It would be nice if there  
was a better way to "Test" if the preference is valid or not.)

I'm using Version 1.5 (906) under MacOS X 10.4.5. I can send a full  
dump from System Profiler if the above does not explain why symbols  
aren't working for me.



More information about the textmate mailing list