Tangentially, has there been any work in having more structured scrollback, say one buffer for every command, which can be collapsed, pinned or copied individually? Presently there's the minor annoyance when (accidentally) running any program with lots of output, which is that all the scrollback above it becomes inaccessible. Yeah, could have run them in different splits or redirected to begin with, but sometimes you…
Is this different from cells in a notebook (eg Jupyter)?
Another difference might be, that the result is just the result, not some structure in a JSON file, like it would be in a Jupyter notebook.