Skip to content

Paste as plain text (#14) - #16

Merged
evowhale merged 1 commit into
mainfrom
feat/paste-plain-text
Aug 22, 2026
Merged

Paste as plain text (#14)#16
evowhale merged 1 commit into
mainfrom
feat/paste-plain-text

Conversation

@mobrava

@mobrava mobrava commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Refs #14 (kept open until this ships in a release)

What

  • PasteService.paste(item:asPlainText:): passing nil resolves the mode from the setting XOR the Shift modifier.
  • Card context menu is split into Paste with Formatting / Paste as Plain Text, shown only for RTF and HTML clips.
  • New Always Paste as Plain Text toggle in Settings > General (off by default).

Holding Shift while pasting flips the configured behavior for that single paste. Existing paste(item:) call sites (Return key, card click, preview, menu bar) keep their signature and go through the modifier-aware path automatically.

Deliberately out of scope

  • Version bump, appcast.xml, tag, and release: 1.3.0 (23) is currently in App Store review, so shipping is deferred until review clears and the GitHub release is out.
  • README feature list: will be updated together with the release.
  • Whitespace/line-break cleanup, encoding repair, and OCR (things PastePlain also does) are not part of this issue.

Verification status

  • swiftc -parse passes on the changed files.
  • Full build and E2E are not done yet. They will be run locally before release:
    DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcodebuild -project Clipbara.xcodeproj -scheme Clipbara -configuration Debug build
    
    Checks: (1) copy formatted web text, Shift+click a card, and confirm only plain text lands on the clipboard, (2) a normal click still keeps formatting, (3) turning the setting on inverts both behaviors.

- PasteService.paste(item:asPlainText:): nil resolves from the setting XOR the Shift modifier
- Split card context menu into Paste with Formatting / Paste as Plain Text for RTF and HTML clips
- Add an Always Paste as Plain Text toggle in Settings > General

Version, appcast, and release steps are intentionally left untouched
while 1.3.0 (23) is in App Store review.

Refs #14
@mobrava
mobrava force-pushed the feat/paste-plain-text branch from fa1ed4c to f01d087 Compare August 22, 2026 08:40
@evowhale
evowhale marked this pull request as ready for review August 22, 2026 08:56
@evowhale
evowhale merged commit f00687a into main Aug 22, 2026
1 check passed
@evowhale
evowhale deleted the feat/paste-plain-text branch August 22, 2026 08:56
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.

2 participants