Skip to content

ui_gpui: copy markdown source of a text selection (cmd-C/ctrl-C) - #175

Merged
stippi merged 1 commit into
mainfrom
feature/markdown-source-copy
Jul 31, 2026
Merged

ui_gpui: copy markdown source of a text selection (cmd-C/ctrl-C)#175
stippi merged 1 commit into
mainfrom
feature/markdown-source-copy

Conversation

@stippi

@stippi stippi commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Point the gpui-component patch at the fork's markdown-source-copy branch (adds TextView::selectable_source) and enable it for assistant message blocks. Selecting text in a rendered markdown block and pressing cmd-C/ ctrl-C now copies the markdown source of the selection (e.g. bold, list markers, code fences) instead of the rendered plain text, matching the hover copy button which already copies full-block source.

The fork commit sits on top of the zed pin (pin-zed-1a246efd), so the dependency graph still resolves to a single gpui.

Point the gpui-component patch at the fork's markdown-source-copy branch
(adds TextView::selectable_source) and enable it for assistant message
blocks. Selecting text in a rendered markdown block and pressing cmd-C/
ctrl-C now copies the markdown *source* of the selection (e.g. **bold**,
list markers, code fences) instead of the rendered plain text, matching
the hover copy button which already copies full-block source.

The fork commit sits on top of the zed pin (pin-zed-1a246efd), so the
dependency graph still resolves to a single gpui.
@stippi
stippi merged commit 8c0baf1 into main Jul 31, 2026
5 checks passed
@stippi
stippi deleted the feature/markdown-source-copy branch July 31, 2026 10:33
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.

1 participant