Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for chunked text and markdown outputs #2174

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

jonatanklosko
Copy link
Member

Text and markdown outputs now have an optional :chunk setting. Adjacent chunk outputs are merged. This also kills the internal :stdout output in favour of {:terminal_text, "...", %{chunk: true}}. Importantly this also works inside frames.

text_chunks.mov

FTR initially I considered having a special output similar to frame, but I realised that (1) it would basically duplicate all frame behaviours; (2) theoretically we may want to render text-stream in per-user frame, but then the text-stream should also be user-specific, so we would need to pass :to to both and it gets confusing.

@github-actions
Copy link

github-actions bot commented Aug 21, 2023

Uffizzi Preview deployment-34011 was deleted.

@jonatanklosko jonatanklosko merged commit a11b1df into main Aug 22, 2023
7 checks passed
@jonatanklosko jonatanklosko deleted the jk-text-stream branch August 22, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants