Repository navigation
Closed
Description
Problem
The Paste Bar can currently be narrowed only by pinboard source and free-text search. ClipboardStore.visibleItems depends on those two signals alone, and ClipType is only used to classify and style cards — there is no way to show just one kind of clip.
That matters most when you remember what kind of thing you copied but none of its text:
- Image clips have no searchable text at all, so search cannot find them.
- Typing
imageorfiledoes not filter by kind; it is a plain substring match over text / custom title / source app name / file URL / color hex. - File clips are findable by file name/extension and colors by hex, but that is still text matching, not type filtering.
- History is a mixed horizontal strip, so scanning for a screenshot or a file means scrolling past unrelated text clips.
Proposal
Add an always-visible row of filter chips directly under the bar's top chrome:
All Types · Text · Rich Text · Link · Image · File · Color
- Single-select: clicking a type narrows the strip; clicking the selected type again (or
All Types) returns to the full list. - Types the current collection does not contain are visibly disabled, so a filter cannot be selected into a dead end. The selected type stays enabled even if its last clip is deleted while filtering.
- Filtering composes with pinboards and search, in the order source → type → query. Quick-paste numbering (
⌘1–⌘9) follows the filtered list. - Keyboard:
⌘⇧Fcycles throughAll Typesand the types present in the current collection;Escclears in the order selection → search → filter → close. Add a "Cycle Type Filter" item to the overflow menu for discoverability. - The filter resets each time the bar opens, the same contract the search query already follows.
- Empty states stay truthful for all four combinations (empty collection / filter only / search only / filter + search) and offer a recovery action when a filter is active.
- Accessibility: labelled chips, selected state, and hints (including why a type is disabled).
Scope / notes
- This filters by the existing content-type buckets (
ClipType), not by file extension or UTI.Imagemeans copied image data; a Finder-copied image file is recorded asFile— worth surfacing in tooltips/docs. - Adding a chrome row means the bar's minimum height should go from 300 pt to 330 pt so a compact bar still fits a File card, and the Settings slider should derive its range from the same geometry constants instead of hard-coding
300...720.
Implementation sketch
- Extract filtering/counting/cycling rules into a pure
ClipFilterhelper with unit tests. - Add
typeFilter: ClipType?toClipboardStore, applied invisibleItemsand reset on presentation. - Add a
ClipTypeFilterBarview between the top chrome and the strip. - Wire
⌘⇧Fand the newEscordering inAppController. - Update
README.md,CHANGELOG.md, anddocs/llms.txt.
Metadata
Metadata
Assignees
Labels
No labels
Activity
maximdx commentedon Nov 8, 2026
Opened PR #115 — "Add a quick content-type filter to the Paste Bar": #115
It implements the chip row (
All Types+ the six clip types),source → type → searchcomposition,⌘⇧Fcycling, the newEscordering, truthful empty states with a recovery action, accessible chips, and the 330 pt minimum height needed for the new chrome row. Tests:swift test— 20/20 passing (13 newClipFiltertests).Add a quick content-type filter to the Paste Bar (momenbasel#115)