Sublime Forum

Embedded Webkit for live preview and enhanced tools

#1

It would be cool to get an embedded version of Webkit in Sublime for a few reasons.

1, A live preview would be nice. I know a lot of people are very tied to it. I don’t need this all the time, but sometimes it is handy.

2, Enhanced, form based tools. Here’s where I think getting an embedded version of Webkit would really make Sublime shine. Building out a form based plugin which could have validation, if/then logic, etc. For example, some CSS3 gradient tools would be great and have it paste the code directly in the editor when you’re done. Having the option to run the files local or online would be good too. We could build out a “sublimeaddons.com” which hosted multiple “tools” which users could build on and quickly get within sublime.

0 Likes

#2

+1 from me. I have requested from Jon as well. He said he wasn’t planning on adding something on those lines until v3.x. Maybe we can change his mind?

I personally wanted to use it for a custom display from a plugin (2nd reason you noted).

0 Likes

#3

This is the only thing keeping me on TextMate; lack of LivePreview in S2

0 Likes

#4

-1 from me. I like Sublime because it is so lightweight and fast. There are tools (and I think I’ve even seen ST2 plugins…?) that will watch for changes to files and automatically reload a browser window for you. Just set up side-by-side windows and you’re away.

0 Likes

#5

I was goin to request the same some weeks ago, imagine the possibilities!

0 Likes

#6

+1 here. This would seal the deal for me on making the switch from my current tool set.

0 Likes

#7

I’ve made live preview plugins in the past using PyQt webkit for ST1.

I wrote a hybrid html/css/js | python app using PySide a few months back for work. You can expose Python objects to the javascript side and though it’s not completely automagical (you have to create some scaffolding) it does do the trick.

Integrating the PySide event loop in Sublime is just a matter of using set_timeout to call the QApplication processEvents method with the optional ms args so as not to block Sublime too long.

I think a Qt4.8 release of PySide containing 2.2WebKit is due soon (all the latest CSS3/HTML5 goodies)

0 Likes