[TxMt] get all scopes?

Michael Sheets mummer at whitefalls.org
Tue Jul 25 07:10:40 UTC 2006


On Jul 24, 2006, at 9:35 PM, Eric Coleman wrote:

> I can't find a decent looking theme that I really like.  What I am  
> wondering is what's the easiest way to get the entire list of  
> scopes for a particular language?

Allan gave this to me a long time ago (in terminal enter):

zsh
cd /Library/Application\ Support/TextMate/Bundles/
for f in *.tmbundle/Syntaxes/*.(plist|tmLanguage); do pl < $f|grep  
'name = "'; done|perl -pe 's/.*name = "(.*?)".*/$1/'|sort|uniq|mate

That's what I've been using during my cleanup. :) Of course that gets  
the scopes for everything, just edit the file match to whatever you  
want.



More information about the textmate mailing list