Skip to content

Add Copy and drag-out for tray and library captures - #17

Merged
Marc-André Moreau (mamoreau-devolutions) merged 2 commits into
masterfrom
copilot/editor-copy-and-drag-drop
Oct 31, 2026
Merged

Marc-André Moreau (mamoreau-devolutions) merged 2 commits into
masterfrom
copilot/editor-copy-and-drag-drop

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor

Summary

  • Add a Copy option to tray and library capture context menus, copying edited images as image data and video or multi-selection as files.
  • Allow captures to be dragged from the tray or library into other applications using native Windows shell drag-and-drop; edited images are flattened to PNG and drops are copy-only.
  • Document the new actions and verify Copy through the UI self-test.

Validation

  • cargo build -p jiffshot
  • cargo test -p jiffshot -p jiffshot-capture
  • UI self-test confirmed copied image data; simulated drag-and-drop delivered a capture to a test target.

Formatting check: cargo fmt --all -- --check reports a diff in the untouched app/build.rs; changed files compile and the new code is clippy-clean.

Right-clicking a capture in the Recent Captures tray or the Library now
offers Copy: one image goes to the clipboard as pixels (with its edits,
including unsaved ones when open), videos and picked groups as files.

Captures can be dragged from the tray or Library into other apps. Tiles
report hover, and a subclass of the main window starts a shell drag
(SHDoDragDrop, copy only) once the press moves past the drag threshold.
Edited images are flattened to PNGs first.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@mamoreau-devolutions
Marc-André Moreau (mamoreau-devolutions) merged commit 13f2e76 into master Oct 31, 2026
6 checks passed
@mamoreau-devolutions
Marc-André Moreau (mamoreau-devolutions) deleted the copilot/editor-copy-and-drag-drop branch October 31, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant