fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.29k stars 117 forks source link

Submit form changes in textarea from Sublime #48

Closed usrbowe closed 9 years ago

usrbowe commented 9 years ago

I am wondering, is it possible to submit form via Sublime?

Use case

If I am having opened code from textarea via GhostText in Sublime, and I edited something. Now I want to submit these changes to original textarea which is inside

. So I hit some shortcut and these data will be submited via form action.

Solutions

1) Extracting action url and then send it from Sublime (which should be possible. I saw some httprequest addon for Sublime). 2) Sending action to Chrome from Sublime. And this action will submit this form inside Chrome. + Refreshing data from textarea, after submiting form (in case, when you send form and page will redirect back to original with same textarea, but new data inside).

Is this idea possible for impelmenting?

Cacodaimon commented 9 years ago

This feature has already been discussed here #44