neurocyte / flow

Flow Control: a programmer's text editor
MIT License
429 stars 21 forks source link

Feature Request: Universal Repl #68

Open VisenDev opened 3 days ago

VisenDev commented 3 days ago

Extracted from #62

First steps

This would allow users to start a repl inside of flow, then send highlighted text to the repl for evaluation.

neurocyte commented 3 days ago

shell-command-on-region is called filter in flow. But you mean the process should be long running right?

VisenDev commented 3 days ago

shell-command-on-region is called filter in flow. But you mean the process should be long running right?

Yes, it would have to be persistent

neurocyte commented 3 days ago

I'm gonna say this is out of scope for flow at the moment then. Managing a long running background task is not something I really want to build directly into flow's core. It's a perfect task for a plugin though.

Actually, flow already has really good support for long running child processes (used for example to drive LSPs and ripgrep), but I'm not sure what generic interface you would like to see.

VisenDev commented 3 days ago

I'm gonna say this is out of scope for flow at the moment then.

Thats fine, I just wanted to create a proposal for it since I've been really enjoying the repl integration emacs has. (ie, Slime)

Actually, flow already has really good support for long running child processes (used for example to drive LSPs and ripgrep), but I'm not sure what generic interface you would like to see.

I wonder if there is a way to "jack in" to a process running in a different terminal pane and send it input thru stdio. I think kakoune has a plugin that does something like that https://asciinema.org/a/379916