by blissofbeing · 14y ago · 0 comments
Nor am I that happy with http://livereload.com/ as it only updates on save.
As a front end dev, I want a live preview in my editor that autoupdates on each key press, this makes prototyping so much faster.
I guess its time to start working on a SublimeText2 Plugin...
A live preview window is a web preview window that is attached to another window (or buffer I suppose).
The live preview window is basically a web browser window that auto-updates on each keypress from the attached editor window.
Espresso and Chocolat have this functionality, but it looks like these editors simply refresh the whole page on every keypress. This constant refreshing causes a flicker on each keypress and makes me turn it off because I don't like the constant flickering.
Livereload is similar because it refreshes the entire browser window on every file save. Its not instant so its not an ideal solution for me.
TM1 seems to only update that text that is updated, no flickering, possibly through some iframe injection technique, I find the iframe injection technique[1] much easier on the eyes because there isn't a page flicker on each keypress.
So, on to make some plugins... :)
[1]http://net.tutsplus.com/tutorials/html-css-techniques/how-to...
The iframe idea is interesting. I'm not sure why it would be any less flickery, since it seems equivalent to what we do now: get the -mainFrame and call -loadHTMLString:baseURL: on it.
http://jsbin.com/#javascript,html,live
There is no flickering. If you could implement this into Chocolat I would use it everyday :)
And it's damn expensive; $100.00 when emacs is free. Look if you are going to charge for an editor, you better make sure it stays with the times. Something Coda has not.