Posts Tagged ‘TextMate’

Any TextMate Mavens in the House?

Monday, January 7th, 2008

I just posted this to the TextMate users mailing list, but blogs seem to be a great way to harness the wisdom of crowds as well…

In Rails 2.0, the new default for view extensions is ‘html.erb’ instead of ‘rhtml’, and ‘builder.erb’ instead of ‘rxml’.

The only problem is that TextMate uses a generic white icon in the project drawer for all files with the ‘erb’ extension. I’d much rather have sexy icons in the project drawer for each distinct file type, as ‘rhtml’ files have currently.

What I’ve Tried

See this pastie as to how I modified TextMate’s Info.plist (XML tags were not getting escaped by WordPress).

Saved Info.plist, then Quit completely out of TextMate. Next, opened up an existing rails project, but the ‘index.html.erb’ for example, still showed the generic TextMate icon in the project drawer, not the tiny blue globe one that ‘rhtml’ files use. (I really like the way it strikes the eye… what can I say?)

Any ideas?

ps. this is probably completely unrelated, but I also went through Finder and did the ‘get info’ -> ‘change all’ trick to open all ‘ html.erb’ files in TextMate, yet the icon in Finder remains the generic white OSX one, not TextMate’s. Figured that’s an OS X thing but thought I’d mention it just in case.


Shanti A. Braford blogs here.

If you really want to know, just read this.



  

Powered by FeedBlitz