Skip to content

Enables clipboard paste in launcher inputs - #28

Merged
cpow merged 1 commit into
typecraft-dev:mainfrom
adamcbrewer:feat/27-launcher-clipboard-paste
Oct 22, 2026
Merged

cpow merged 1 commit into
typecraft-dev:mainfrom
adamcbrewer:feat/27-launcher-clipboard-paste

Conversation

@adamcbrewer

Copy link
Copy Markdown
Contributor

Problem

I can't paste text into the launcher with Super+V or by selecting an entry from Omarchy's clipboard history. The query is drawn as plain text and its key handler doesn't accept the paste shortcuts Omarchy sends.

Change

Accepts Ctrl+V and Shift+Insert using Qt's clipboard support. Copied text is appended to the current query, ready to edit or search. Pasting doesn't run a result or submit a question.

Line breaks become spaces so the query stays on one line. Paste also works in submenu searches, aliases and the action-panel filter. Aliases keep their existing restriction on spaces.

Fixes #27. Based on main; separate from the cursor-editing work in #26 and input-method support in #23.

Testing

  • node --test tests/*.test.js: 94 passed, no skips. Five new paste regression tests fail on unpatched main.
  • Six native Qt clipboard cases passed in an isolated offscreen harness using the launcher's actual paste/key functions and clipboard input. Covers Ctrl+V, Shift+Insert, repeated paste, Unicode, literal markup, line breaks, aliases and the action filter.
  • Full launcher loaded in an isolated Quickshell process with a mock backend.
  • Plugin validation, Bash syntax and whitespace checks passed.
  • Separate code-review and simplify sub-agents completed with no findings or changes needed.

Live desktop verification of Super+V and clipboard-history focus restoration is still pending. The native tests cover clipboard reading and key handling, but don't establish the full desktop interaction.

@adamcbrewer
adamcbrewer marked this pull request as ready for review October 22, 2026 11:19
Accepts the paste shortcuts sent by Omarchy's universal paste and clipboard
history so copied text can be used in launcher queries. Keeps line breaks
in a single input line and preserves alias and action-filter behaviour.
@cpow
cpow force-pushed the feat/27-launcher-clipboard-paste branch from 8f7dc40 to b0ddaa8 Compare October 22, 2026 19:10
@cpow

cpow commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

merging this, thanks!

@cpow
cpow merged commit 103aa67 into typecraft-dev:main Oct 22, 2026
1 check 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.

Can't paste into the launcher with Super+V or clipboard history

2 participants