Skip to content

Add to dictionary should skip remaining matches of the same word in the current check session #2

Description

@jack-orr

Summary

When I use Add to dictionary on a misspelling, later occurrences of the same word in the same check session still appear. The word is saved correctly and is ignored on the next full check, but not for the rest of the current queue.

Steps to reproduce

  1. Open a note that contains the same unknown word multiple times (e.g. Khononov appears 3+ times).
  2. Run Check spelling and grammar.
  3. On the first instance, click Add to dictionary.
  4. Continue through the remaining issues.

Expected

After adding a word/phrase to the dictionary, any later issues in the current session whose matched text equals that dictionary entry (case-insensitive, same as existing dictionary matching) are skipped automatically.

Actual

The word is persisted for future checks, but the current session still shows every remaining instance. I have to Ignore/Next through them, or re-run Check.

Notes / likely cause

Issues appear to be built once at check time (buildIssues filters against customWords), then the modal advances through that fixed list. Add to dictionary updates customWords and advances, but does not remove or skip later queue items that match the newly added text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions