Repository navigation
feat: add a mini shelf that opens at the text cursor - #26
Open
NigamDevansh wants to merge 1 commit into
Open
NigamDevansh wants to merge 1 commit into
NigamDevansh wants to merge 1 commit into
Conversation
A compact shelf that opens above the text cursor (or at the pointer when the app reports none), chosen in Settings > General > Shelf Layout, with an optional shortcut for the other layout. It reuses the full shelf's view model, so search, selection, the card menu, drag and drop to pinboards, undo and the paste stack behave the same. Signed-off-by: devansh nigam <devanshn02@gmail.com>
This branch has not been deployed
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 a mini shelf: a compact panel that opens right above the text cursor, so you can pick and paste without leaving where you're typing. Settings → General → Shelf Layout: Full / Mini picks what Open Copy opens, and an optional shortcut opens the other one.
How you tested it
swift test --package-path CopyCore: all pass, including the newMiniShelfLayoutTests(above/below placement, screen edges, offset displays).Demo:
mini-shelf.mp4
git commit -s, or turn on the hook once withgit config core.hooksPath .githooks). The DCO check enforces this. See CONTRIBUTING.md.swift test --package-path CopyCore)CopyCore/Package.resolvedstill pins GRDB, KeyboardShortcuts and Sparkle