Skip to content

Copy mode and home - #53

Merged
d1manson merged 3 commits into
mainfrom
copy-mode-and-home
Oct 27, 2026
Merged

d1manson merged 3 commits into
mainfrom
copy-mode-and-home

Conversation

@d1manson

Copy link
Copy Markdown
Collaborator

Copying

  • Cmd/Ctrl C copies the selected cell as real text plus one image per plot, instead of a single composite image. The text is a bold title (trial · tetrode · cell) followed by the spike count and peak rates, with no paragraph margins. It pastes cleanly into Word, Google Docs and PowerPoint.
  • Holding Cmd/Ctrl C for a second opens copy mode. The hovered tile starts selected. Clicking tiles adds or removes them, and "Select all" (or Cmd/Ctrl A) selects every cell. The clipboard is rewritten after every change. Esc, Done or leaving the window ends it, and tiles outside the selection fade.
  • Plots are captured off-screen (new WaveGPU.capture and a shared drawAnalysis), so cells scrolled out of view are included.

Tile-wall prompts

  • Swap, split, merge (while dragging a tile) and copy share one instruction prompt above the tile wall. The split prompt replaces the old hint at the bottom of the screen.

Toolbar, focus and navigation

  • Esc hides or shows the toolbar when nothing else uses it: an open split, swap, drag or copy mode, a focused panel, or the lasso. While it's hidden, a button at the top right brings it back.
  • An unfocused window gets a vignette, so it's clear its keyboard shortcuts are inactive.
  • The start screen is now a browser-history entry. The first recording opened is pushed after it, so Back returns home, asking first if cut edits are unexported.
  • The toolbar's new Waveform icon returns to the start screen after a confirmation.

Visuals

  • Narrower gap between waveform channels (about 2.5 px instead of about 20 px).
  • Polished app icon (SVG), with favicon.ico regenerated from it.

Testing

  • Lint, unit tests and the full Playwright suite pass.
  • New e2e coverage: clipboard contents, copy mode (including cells out of view), blur ending copy mode, the Esc toolbar toggle, Back to the start screen, and home confirmation.
  • The favicon test now checks both icon links.

🤖 Generated with Claude Code

d1manson and others added 3 commits October 27, 2026 19:56
…ed vignette

Holding Cmd/Ctrl C opens copy mode: click tiles (or select all) and the
clipboard is rewritten with each cell's stats and plots, captured
off-screen so cells outside the view are included. Swap, split, merge and
copy share one prompt style above the tile wall. Esc hides or shows the
toolbar when nothing else uses it, and an unfocused window is vignetted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hed icon

The start screen is now a history entry, so the first recording opened is
pushed after it and Back returns home (asking first if edits are
unexported). The toolbar's Waveform icon returns home after a
confirmation. The icon is redrawn as an SVG, with favicon.ico regenerated
from it. Copying no longer shows a notice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@d1manson
d1manson merged commit 5bcaf58 into main Oct 27, 2026
4 checks passed
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