Repository navigation
Add Clipboard History and Switch Theme - #85
Open
nchudleigh wants to merge 4 commits into
Open
nchudleigh wants to merge 4 commits into
nchudleigh wants to merge 4 commits into
Conversation
A wl-paste watcher records text, links, colours, files and images with their source app, copy count and first/last copied times. A list/detail view with a type dropdown pastes, copies, opens, pins and deletes entries. Retention defaults to a week (pins kept); password managers' copies are skipped. omacast:emoji and the new omacast:clipboard shortcuts close their view on a second press. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lists the themes Omarchy's own picker lists, with the current one checked and selected and a preview beside the list, and applies the chosen one with omarchy-theme-set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Omarchy's Theme entry gives way to Switch Theme in results, a new omacast:theme shortcut toggles it, and theme rows drop their icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The detail pane's preview Image is asynchronous, so changing its source blanked the pane until the next image decoded, and moving through Switch Theme or Clipboard History flashed an empty pane on every step. Two Images now take turns: the new source decodes in the hidden one, and it comes to the front once ready. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two list/detail commands: Clipboard History (Raycast style) and Switch Theme for Omarchy themes. Switch Theme is built on Clipboard History's detail pane, so they come together.
Clipboard History (
builtin:clipboard-history, global shortcutomacast:clipboard):wl-paste --watchrecords each copy as a JSON line. It skips password-manager copies and prefers an image offer.~/.local/share/omacast/clipboard/. Entries are deduplicated by hash and pruned byclipboardHistoryDuration(default one week; pins are kept). Apps listed inclipboardDisabledApplicationsare ignored.ClipboardWritergainscopy/paste(text, mime)andcopyFile, so images and long text paste back intact. The scripts only receive a MIME type and a path inside our own clipboard directory, never user text.Switch Theme (
builtin:switch-theme, global shortcutomacast:theme):omarchy-theme-switcher --print-rows) with the current theme checked and its preview beside the list.omarchy-theme-set.supersedes: ["omarchy:appearance.theme"]).The preview double-buffers its image: the next one decodes hidden and is swapped in once ready, so moving through the list doesn't flash an empty pane.
These commits come from my fork, where they also touched the emoji picker, script commands and Superwhisper (#73, #74). That code is left out here, and the parts Clipboard History needed are recreated:
splitView, thesupersedesfilter, theiconlessrow flag.Checked:
node --test tests/*.test.js(including new clipboard-history and themes tests) andomarchy plugin validate .pass.Not checked:
style.theme, so Omarchy's own entry still shows there.🤖 Generated with Claude Code