Skip to content
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

[FR]: Send commands to remote sclang #237

Open
triss opened this issue Apr 16, 2024 · 2 comments
Open

[FR]: Send commands to remote sclang #237

triss opened this issue Apr 16, 2024 · 2 comments

Comments

@triss
Copy link

triss commented Apr 16, 2024

I'm working on a Bela Pepper and would love to be able to run not just server code but language code remotely.

In a dream world I'd also see a post window showing the results of the evaluation on the other machine

I'm considering seeing if it's possible to connect via SSH but running nvim on the system is unlikely to be as comfortable as what I have set up on the Desktop.

Is it possible to have scnvim talk to sclang on another machine?

@davidgranstrom
Copy link
Owner

This is not supported out-of-the-box, since the sclang process is spawned by nvim and and (sc) code is sent via stdin.

With that said, it could be possible to set up something up by overriding a couple of scnvim's actions. You would probably need to create some type of wrapper script such as this to start the sclang process on the remote machine. You would then create some overrides, e.g. editor.on_send action to send your (sc) code to the remote instance. It will take some work for sure, but would be interesting to know if you succeed! It could perhaps become something we could add to the wiki, or maybe even create a dedicated extension.

@triss
Copy link
Author

triss commented Apr 19, 2024

Thanks for the pointers! May well take a look over the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants