davidgranstrom / scnvim

Neovim frontend for SuperCollider.
GNU General Public License v3.0
187 stars 25 forks source link

[FR]: Send commands to remote sclang #237

Open triss opened 3 months ago

triss commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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