Skip to content

fix(workspace): restore copying from file previews - #1028

Merged
nixuuu merged 1 commit into
devfrom
fix/windows-preview-copy
Nov 19, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/windows-preview-copy

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 19, 2026

Copy link
Copy Markdown
Member

Changes

  • Restore drag selection in the read-only source preview by opting the reader into the app's text selection styles. The regression began when the virtual reader replaced the selectable code view.
  • Copy the selected source offsets as plain text. This preserves blank lines and avoids inserting newlines between parts of a long source line. The file toolbar still copies all loaded text.
  • Add a manual regression check to the workspace documentation.

Verification

  • On nix-pc, before the fix, dragging across source text in Chromium left the selection empty and Ctrl+C left the clipboard unchanged. The file toolbar, rendered Markdown and editor copied successfully in the same session.
  • On nix-pc, tested commit 707de5c04ca2e9d429b14f2f58264cc212805da2 in Chromium against the real workspace file view with local fixtures, at 1280 px and 390 px in both themes. Read the clipboard after one- and multi-line drag selections, Ctrl+C, Ctrl+A then Ctrl+C, the selection menu and the file toolbar. Verified that blank lines, indentation and long source lines survive copying, and that line numbers are excluded. Also checked rendered Markdown and the editable file view. Native Windows Electron was not run.
  • Web typecheck, edited-file formatting and lint, and git diff --check passed locally. GitHub Actions runs the repository checks. No user-facing text changed.

Fixes: #645

@nixuuu
nixuuu enabled auto-merge (squash) November 19, 2026 13:15
@nixuuu
nixuuu merged commit aa80f6a into dev Nov 19, 2026
8 checks passed
@nixuuu
nixuuu deleted the fix/windows-preview-copy branch November 19, 2026 13:16
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