Comment by inatreecrown2

Comment by inatreecrown2 20 hours ago

1 reply

I need the ability to run the current file with a shell script / program. Like Vim offers with :!whatever %

Last time I checked Helix did not offer this. Has this changed?

mechanicum 14 hours ago

These have been available since mid-2022:

  :insert-output Run shell command, inserting output before each selection.
  :append-output Run shell command, appending output after each selection.
  :pipe, :| Pipe each selection to the shell command.
  :pipe-to Pipe each selection to the shell command, ignoring output.
  :run-shell-command, :sh, :! Run a shell command
The placeholder for the current file is %{buffer_name} (not as bad as it looks, the command line has tab completion for basically everything).