[TxMt] bug - TM's Web Preview won't update from linked Css stylesheet

Thomas Aylott - subtleGradient textmate at subtleGradient.com
Mon Feb 11 14:39:38 UTC 2008


On Feb 10, 2008, at 12:29 PM, Steven Rowat wrote:

> Or am I missing some hidden command or path configuration that will  
> allow this to work?

I think I've mentioned it before, but I use my own little omni-preview  
passthrough script available here:
http://textmate.svn.subtlegradient.com/Bundles/tAylott_subtleGradient.tmbundle/Support/bin/42_TextMate_live_preview.rb

Be warned it's extremely janky and lame. But it works really well for  
me for what it does.

For HTML
	If you have a TM_PROJECT_SITEURL env var set it'll change the base of  
your html doc to use that.
	It makes all external Javascript and CSS urls unique to avoid caching.
	

It converts markup and textile on the fly.
It also has some stuff in there for previewing Ruby on Rails rhtml  
files somehow, but I forget how that works.
It also has my blog template hardcoded so I can preview a blog post as  
it would look on my blog.
for general source files it'll do a live diff between your unsaved  
document and your saved document. Clicking on a line will take you to  
that line in your source.
For Javascript it'll run the script and catch and write out any errors  
in execution. Doesn't work very well.

It's all just based on the current scope, so you should be able to  
just set up the filter once and forget about it.

This is really old code, so I'm really not sure what half of it does  
anymore, but I find it to be EXTREMELY handy.

—Thomas Aylott – subtleGradient—




More information about the textmate mailing list