Skip to content

Paste as plain text (#14) - #15

Closed
evowhale wants to merge 1 commit into
mainfrom
feat/paste-plain-text
Closed

Paste as plain text (#14)#15
evowhale wants to merge 1 commit into
mainfrom
feat/paste-plain-text

Conversation

@evowhale

Copy link
Copy Markdown
Collaborator

Closes #14

What

  • PasteService.paste(item:asPlainText:): nil이면 설정값과 Shift 수정자를 XOR로 판단해서 서식 제거 여부 결정
  • 카드 컨텍스트 메뉴: RTF/HTML 클립일 때만 Paste with Formatting / Paste as Plain Text로 분리
  • 설정 > General에 Always Paste as Plain Text 토글 추가 (기본 off)

Shift를 누른 채 붙여넣으면 설정과 반대 동작이 한 번만 적용된다. 기존 paste(item:) 호출부(Return 키, 카드 클릭, 프리뷰, 메뉴바)는 시그니처 그대로라 자동으로 수정자 판단 경로를 탄다.

Not in this PR (의도적)

  • 버전 bump, appcast.xml, 태그, 릴리스: 1.3.0(23)이 App Store 심사 중이라 심사 통과 + GitHub 릴리스 이후로 미룸
  • README 기능 목록: 아직 배포되지 않은 기능이라 릴리스 시점에 같이 갱신
  • PastePlain이 하는 공백/줄바꿈 정리, 인코딩 복구, OCR은 스코프 밖

검증 상태

  • 문법 파싱(swiftc -parse) 통과
  • 전체 빌드 및 E2E 미검증: 작업 환경에서 SwiftPM 의존성 해결이 실패해서 로컬 빌드 필요
    DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcodebuild -project Clipbara.xcodeproj -scheme Clipbara -configuration Debug build
    
    확인할 것: (1) 서식 있는 웹 텍스트 복사 후 Shift+클릭 → 평문만 클립보드에 들어가는지 (2) 그냥 클릭 → 기존처럼 서식 유지되는지 (3) 설정 토글 켠 뒤 동작이 뒤집히는지

- PasteService.paste(item:asPlainText:): nil이면 설정값과 Shift를 XOR로 판단
- 카드 컨텍스트 메뉴에 Paste with Formatting / Paste as Plain Text 분리 (RTF/HTML 클립만)
- 설정 > General에 Always Paste as Plain Text 토글 추가
- 버전/appcast는 의도적으로 건드리지 않음 (1.3.0 App Store 심사 중)

Refs #14
@mobrava mobrava closed this Aug 22, 2026
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.

[Feature]: 일반 텍스트로 복사

2 participants