wavetermdev / waveterm

An open-source, cross-platform terminal for seamless workflows
https://www.waveterm.dev
Apache License 2.0
4.46k stars 118 forks source link

Add Ability to Use Output from a Previous Block in a New Command (re-pipe-able blocks) #335

Open sawka opened 8 months ago

sawka commented 8 months ago

(from youtube comments)

Also, the history should be reference-able and pipe-able, so I could pipe output of one of those blocks into some new command - this would make these blocks actually useful.

Not sure exactly how to do this and what the implementation could look like (is it just the text from the blocks, or should it include the formatting, or should it replay the entire pty stream with ANSI escapes?). But the concept is interesting and something we can do. Being able to reference a previous block and pipe it into a new command feels powerful.

hayalci commented 8 months ago

For inspiration, Extra terminal emulator has this feature: https://extraterm.org/features.html "Reusing Command Output"