-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating Stylus to external text editors #91
Comments
Is it possible to provide support for the use case in #86 e.g. the ability to open&watch an arbitrary existing file? |
We have it now on openstyles/stylus-external-editor@9057f60 It is now possible to call |
Wow, this sounds too good to be true. What interface is used between the extension and node? |
Here is the summary on how the stylus-external-editor extension can be tested on Chrome/Opera:
You should get an empty style file in your default text editor (Mac and Windows are tested). Whenever a change is made, you will get a notification in the background console of stylus-external-editor |
hmmm, nothing! See https://github.com/openstyles/native-client/blob/master/host.js#L61-L66 |
Here is the summary on how the stylus-external-editor extension can be tested on Firefox:
You should get an empty style file in your default text editor (Mac and Windows are tested). Whenever a change is made, you will get a notification in the background console of stylus-external-editor |
I don't mind if we go with the C++ version. I personally like how the entire native side is written in our extension side for NodeJS version. Anyway, if the C++ works as expected and can be compiled for all major operation systems, we can drop the NodeJS client. |
@tambry I thought this was supposed to be a small C application? When did it turn into bloatware holding not 1 but 2 Node EXEs? http://github.com/andy-portmen/native-client/releases |
@svnpenn I didn't implement that. I would never implement such a bloated solution. I'm unable to implement my solution yet, as I'm waiting on this Chromium issue (Firefox equivalent). You can try staring the Chromium issue. The issue has been assigned for Chromium 62, which will release on 17th October. Only one more month of waiting! |
So I am working on a new extension that brings the power of external editing to Stylus. We can integrate it directly to Stylus when the project is usable.
For now here is the summary:
{method: 'spec'}
{permissions:[], script: "/*NodeJS script here*/"}
Notes:
The text was updated successfully, but these errors were encountered: