howl-editor/howl

Piping into howl

Janfel opened this issue · 2 comments

It would be nice if one could pipe text into a Howl buffer like this:

echo "foo" | howl
echo "foo" | howl --reuse

This should open a new window with a single buffer titled "<STDIN>" or similar containing the text "foo". When using the flag --reuse, the buffer should open in an existing window.

howl <(echo "foo") might work, though you have to copy/paste it into another buffer.

Personally, I just pipe into xclip/xsel and paste it into Howl.

howl <(echo "foo") doesn't work with bash/zsh. howl =(echo "foo") (zsh) works, but only because the shell creates a temporary file. Piping into xclip and pasting feels awkward, because i. a. Howl automatically restores a previous session when called without files, with no way of disabling this behaviour.