MacDownApp / MacDownApp/macdown

Incorrect quote autocompletion

Open
#393 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

To reproduce:
1. Enter `')` (a single quote and a right parenthesis).
2. Move cursor between the quote and parenthesis.
3. Enter `'` (a single quote)

Behaviour: Two single quotes are inserted. The cursor ends between the second and third quotes.

Expected: One single quote. The cursor should end after the second (new-ly inserted) quote.

Contributor guide

Open the contributing guide

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

Start by reproducing the quote-autocompletion sequence in MacDown, then trace the editor's handling of an inserted single quote when the cursor is between an existing quote and parenthesis. The issue names no file or test; done means the sequence inserts one quote and leaves the cursor after the new second quote.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, objective-c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.