Skip to content

Conversation

@LoganBrinsmead
Copy link
Contributor

Issues

Closes #2056

Description

This adds two new "spell checking modes" to Harper, "After Spacebar Press" and "After typing stops." meaning that when these options are selected Harper will wait for a spacebar press or for some seconds after the user stops typing to render lints.

To implement this, the update function in LintFramework has been rewritten to include a "determineSpellCheckingMode" method that will check which spell checking option the user has selected and will spell check accordingly. It also implements a new "suggestionApplied" event listener that listens for the application of suggestions and will trigger a rerender if a suggestion was applied. This is so applying a suggestion can be instant if the spacebar or "After typing stops" spell checking modes are selected.

Demo

How Has This Been Tested?

Tested on various websites and with the different spell checking options selected.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

@LoganBrinsmead LoganBrinsmead marked this pull request as draft January 27, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Idea: Spell Checking Mode (to control timing)

1 participant