Preview piped input and execute commands on it. Inspired by https://github.com/akavel/up and https://github.com/fiatjaf/jiq with a TUI built using https://github.com/charmbracelet/bubbletea.
Expects a SHELL
variable in your environment, will default to bash
if not set. Currently only supports shells that invoke string based commands via a -c
flag.
Upon exit, stderr and stdout from most recent execution are flushed back out to your terminal.
go install github.com/arpachuilo/pipe-preview@latest
tab
swap between input and previewctrl+p
copy input to clipboardctrl+o
copy preview to clipboardesc
/ctrl+q
/ctrl+c
exit