Paste operation with empty clipboard duplicates current text block
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
I very frequently copy URLs into the text that I am editing. Often I do a round-trip:
- Type open square bracket.
- Switch to browser, copy link text.
- Switch to Panwriter, paste text.
- Type closing square bracket, opening round bracket.
- Switch to browser, select URL, copy.
- Switch to Panwriter, paste URL, type closing round bracket.
If I fumble the copy operation, then when I hit paste with an empty clipboard, Panwriter duplicates the current block of text at the cursor.
This happens frequently but I can't give better steps to reproduce.
(I use macOS a lot of the time and really miss Linux's middle-click-to-insert-selection function here.) I don't know how to clear the clipboard to give better steps to reproduce.
The text duplicated is not the current paragraph but sometimes most of one.
I've had this on Linux and macOS in the past.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, entry point, or test is named. Start by reproducing the empty-clipboard paste behavior on Linux or macOS and trace the editor's paste handling; done means an empty clipboard no longer duplicates the current text block and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100