Skip to content

arpachuilo/pipe-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pipe Preview

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.

pipe preview

Installation

Via go install

go install github.com/arpachuilo/pipe-preview@latest

Keybinds

  • tab swap between input and preview
  • ctrl+p copy input to clipboard
  • ctrl+o copy preview to clipboard
  • esc / ctrl+q / ctrl+c exit

About

Preview and run commands on piped input

Resources

License

Stars

Watchers

Forks

Languages