wavetermdev / waveterm

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

Export/Import Tab or Workspace #418

Open reform-chipper opened 7 months ago

reform-chipper commented 7 months ago

Allow exporting a single tab (or perhaps a workspace) into a proprietary file that can be later opened with Wave and executed. Export to something like a PDF or Markdown would also be cool, but is secondary.

The broader goal is to have something like a Jupyter Notebook for shell commands.

Simple example of this vision:

image

All related issues:

https://github.com/wavetermdev/waveterm/issues/415 - Editable Command Blocks https://github.com/wavetermdev/waveterm/issues/416 - Command Block Reordering https://github.com/wavetermdev/waveterm/issues/417 - Editable Markdown Blocks https://github.com/wavetermdev/waveterm/issues/418 - Export/Import Tab or Workspace https://github.com/wavetermdev/waveterm/issues/419 - Allow All Blocks in a Tab To Be Executed Again https://github.com/wavetermdev/waveterm/issues/420 - Allow Tab or Workspace Shell to be Restarted https://github.com/wavetermdev/waveterm/issues/421 - Undo for Deleting a Command Block

sawka commented 7 months ago

Yes, this is on the roadmap. I'm experimenting with exporting to/from markdown (we just need to figure out how to deal with the proprietary data).

Quick question -- for your workbooks, would you want to export the output or not export the output (or having a setting to control that)?

reform-chipper commented 7 months ago

For me personally it would be better to have the output. If you open a notebook after 6 months and forget most of what you did, it's handy to see what the "correct" output looked like.

reform-chipper commented 7 months ago

I think Runme notebooks are a modified markdown, could be a start. They have other issues which prevent me from benefiting from them, but the format itself looks nice.