Quote the selected text when replying #126

Merged
littlefox merged 2 commits from issue-107-quote into main 2026-10-18 19:28:25 +00:00
Owner

Closes #107

  • compose::quote: "> " before every line (">" on empty ones, as elisp cites), then a blank line; the cursor waits below the quote.
  • A selectionchange listener remembers the selected text and its post (data-text on the post and on every thread card), kept 1.5 s after it clears: tapping Svara on a phone clears the selection before the click.
  • Only a selection inside the answered post is quoted; r with text selected in another card of the thread answers that card. Used once.

Verified: unit test for quote; new quote.spec.ts on desktop/Android/iPhone (one line via r, several lines via the button with quote lines' own ">" kept, the phone case of a just-cleared selection and an old one, nothing selected); full e2e 184/184; clippy native/wasm/desktop clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #107 - `compose::quote`: "> " before every line (">" on empty ones, as elisp cites), then a blank line; the cursor waits below the quote. - A `selectionchange` listener remembers the selected text and its post (`data-text` on the post and on every thread card), kept 1.5 s after it clears: tapping Svara on a phone clears the selection before the click. - Only a selection inside the answered post is quoted; `r` with text selected in another card of the thread answers that card. Used once. Verified: unit test for `quote`; new `quote.spec.ts` on desktop/Android/iPhone (one line via `r`, several lines via the button with quote lines' own ">" kept, the phone case of a just-cleared selection and an old one, nothing selected); full e2e 184/184; clippy native/wasm/desktop clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Select part of a post and reply (button, r, palette): the selection is
quoted with "> " as elisp cites, and the cursor waits below it. A
selectionchange listener remembers the selection and its post for 1.5 s
after it clears, because tapping Svara on a phone clears it before the
click arrives. r with text selected in another card answers that card.

Refs #107

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge remote-tracking branch 'origin/main' into issue-107-quote
All checks were successful
ci / check (push) Successful in 7m8s
ci / desktop (push) Successful in 13m21s
ci / e2e (push) Successful in 18m27s
c9c2dcd39b
littlefox referenced this pull request from a commit 2026-10-19 05:23:03 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
littlefox/neokom!126
No description provided.