Repository navigation
Conversation
A Copy contents button sits beside Reveal in the file header. It copies the editor's text, so unsaved edits come along, and shows a check for a moment. Truncated, binary, empty and still-loading reads have no button, nor does the rendered Markdown view. Also logs T3 through 0dc32b5c8b in the T3 watch ledger. Inspired by: pingdotgg/t3code@07fe456146
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What T3 added (pingdotgg/t3code@07fe456146): a copy button in the file preview toolbar that copies the whole file. It shows "Copied" with a check for a moment, and is hidden for media, documents and truncated reads.
How Godspeed does it
FileDocument::copyable_text(crates/ui/src/files/document.rs) returns the file only when the read is complete: not loading or errored, not truncated, has text, and isn't empty.files-copy-contentstoolbar button in the Files header (render_breadcrumb,crates/ui/src/files/preview.rs) sits before "Open in default editor". It copies the editor's live text, so unsaved edits come along, and falls back to the text as read. The icon turns into a check and the tooltip reads "Copied" for 1.2s, the same as the Markdown code-block copy. The rendered Markdown view doesn't show the button.0dc32b5c8bindocs/godspeed/T3-WATCH.md(217 commits) and adds rows toT3-GAPS.md.Screenshots not available (this agent doesn't launch the GUI).
Tests run
only_a_complete_non_empty_read_can_be_copiedcargo build -p godspeed: ok.cargo check --workspace --tests: ok.cargo test -p zeron-ui --lib: 2188 passed, 0 failed.Check by eye
The T3-WATCH ledger rows sit on top of main's ledger, so they may conflict with the open t3-watch PRs #112 and #114.
🤖 Generated with Claude Code