mb21 / mb21/panwriter

Paste operation with empty clipboard duplicates current text block

Open
#196 2 comments 0 reactions 0 assignees View on GitHub

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:

  1. Type open square bracket.
  2. Switch to browser, copy link text.
  3. Switch to Panwriter, paste text.
  4. Type closing square bracket, opening round bracket.
  5. Switch to browser, select URL, copy.
  6. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.