Skip to content

Use Ctrl+V for clipboard image paste - #10535

Open
Drecullith wants to merge 1 commit into
omacom:quattrofrom
Drecullith:fix/clipboard-image-paste-terminal
Open

Use Ctrl+V for clipboard image paste#10535
Drecullith wants to merge 1 commit into
omacom:quattrofrom
Drecullith:fix/clipboard-image-paste-terminal

Conversation

@Drecullith

Copy link
Copy Markdown

Summary

The clipboard manager correctly puts selected images on the Wayland clipboard, but omarchy-clipboard-paste-file currently follows that with Shift+Insert.

Terminal emulators such as foot consume Shift+Insert as their own text-only paste action. Since an image clipboard entry has no text flavor, the terminal finds nothing to paste and the application running inside the terminal never receives the shortcut.

This changes the image/file paste helper to send Ctrl+V instead.

The text paste path is intentionally unchanged: Omarchy's existing text helpers continue to use Shift+Insert where appropriate for terminal-safe text paste.

Fixes #10526.

Testing

Added test/shell.d/clipboard-file-paste-test.sh covering:

  • image bytes remain unchanged when copied
  • the image MIME type is preserved
  • normal image paste sends Ctrl+V
  • --copy-only still sends no synthetic paste shortcut

The reported affected setup has also confirmed manually that Ctrl+V successfully delivers the staged image to an image-aware terminal application.

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.

Clipboard manager cannot paste images into terminal apps: Shift+Insert is consumed as a text-only paste

1 participant