Add clipboard history selector #44
Labels
No labels
bug
chore
CI/CD
Code Cleanup
duplicate
DX
enhancement
help wanted
invalid
packaging
question
UI
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
waycasthq/waycast#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Show the past x clipboard items (image or text) and selection should copy them.
Research
On Wayland, there usually is no clipboard history unless a clipboard manager was already running.
There's this tool called cliphist that acts as one of these clipboard watchers. We'll probably have to build something like this on waycast and put it as a separate command like
waycast clipboardthat will show the clipboard history instead of the normal launcher so users can set a keybind for it.The tough part is adding ourselves as a clipboard watcher. The cliphist readme shows something like:
wl-paste --watch cliphist storeSince we want to provide a good user experience, we should figure out if there's a better way. Maybe starting a dbus service or something like that.
Links that might be helpful
Storing the clipboard history
We already have a sqlite database, so we can store clipboard items there and model it as a ring buffer with a configurable size so only the latest X items are stored and we delete older ones once we reach the limit.
We obviously can't store images in the database, so we'll probably have to store them somewhere if we want to keep them in history.
Things to keep in mind