[TxMt] symbol selector definition

Allan Odgaard throw-away-1 at macromates.com
Tue Nov 29 16:57:35 UTC 2005


On 29/11/2005, at 16:03, Jamal Johnson wrote:

> sorry for the confusion. i'm actually wondering how the 'symbols'  
> are created / determined?

The language grammar assign names to the various elements in the  
language (see these by pressing ctrl-shift P with the caret on a  
language element).

Then a bundle preferences item (see Bundle Editor and hunt for the  
“Symbol List: …” items) will set the showInSymbolList to 1 and use a  
scope selector (which is like a CSS selector) to target which  
elements should have get setting (and thus be included).

So only stuff matched by the language grammar can be included in the  
pop-up. It is of course possible to change the language grammar to  
match more, but it sounds like you should first check the  
TmCodeBrowser plug-in suggested by Haris, which use ctags to collect  
the symbols.





More information about the textmate mailing list