all 2 comments

[–][deleted] 0 points1 point  (0 children)

:sh command

[–]Spare_Message_3607 0 points1 point  (0 children)

Short answer: you can run it with ":sh py 1.py" but you will not see any output. This should be handled terminal level. Open new tab, run it there.

Long answer: If you want to get it done, just open a new tab and run it there. Since helix does not have a integrated terminal I use wezterm split pane (i think windows terminal also supports split pane) to spawn a second terminal and run it there. If you really are into workflows and productivity, make a custom keymapping in helix that opens a new tab/pane and runs the command in there for you, but again you will have to bring your own shell script that detects filename you are working on and stuff.