neurocyte / flow

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

Feature Request: Ability to run a shell command inside flow #67

Open VisenDev opened 1 week ago

VisenDev commented 1 week ago

Similar to :! in vim or alt-! in emacs

neurocyte commented 1 week ago

I usually do this sort of thing with my terminal emulator or terminal multiplexer. I'm not sure what practical value it has these days when nearly every terminal has splits and/or tabs and key bindings to run commands. If you want something to drive a repl I think perhaps a plugin of some sort might be a better way to go.

VisenDev commented 1 week ago

perhaps, I usually only use a single terminal pane so sometimes it is convenient to be able to quickly run a command from my editor

neurocyte commented 1 week ago

Would you want to have the command output sent to an editor buffer? Or have flow suspend itself and hand over the tty? Flow doesn't support any kind of job control atm, so this could be a lot more complicated than it might seem. Stdio should be pretty simple though.

VisenDev commented 1 week ago

Would you want to have the command output sent to an editor buffer? Or have flow suspend itself and hand over the tty? Flow doesn't support any kind of job control atm, so this could be a lot more complicated than it might seem. Stdio should be pretty simple though.

My initial thought would be that suspending temporarily should be the most robust because then you can take advantage of the terminal emulator's builtin escape code processing. Sending output to a buffer is not important

We don't need to support anything fancy. For more complex terminal tasks, I agree using a tab is better - but for a really quick git status check and similar things, it is convenient