SpellFix
pendingby Yoav Ravid
seamlessly accept spellchecker suggestions.
SpellFix
Quickly fix spelling mistakes without interrupting your flow. Uses keyboard shortcuts to accept spellchecker suggestions without opening the context menu.
Features
Commands
- Fix previous spelling: Automatically finds and fixes the most recent misspelled word on the current line by accepting the first suggestion from the native spellchecker (if your cursor is in the middle of a word, it will check it as well).
- Cycle suggestion: After fixing a word, cycle through all available spelling suggestions to find the best match.
- Restore original word: Restore the original misspelled word if you changed your mind.
- Add to ignored suggestions: Add the current suggestion to your ignore list, remove it from the cycle list, and move to the next suggestion (or restore the original if no more suggestions are available).
Note: For a smooth workflow, these commands should be assigned to hotkeys, but you'll need to assign them on your own in Obsidian's Settings → Hotkeys, or by finding the plugin in Settings → Community plugins and clicking the plus icon. I recommend using
Alt+Ffor Fix previous spellingAlt+Cfor Cycle suggestionAlt+Rfor Restore original wordAlt+Xfor Add to ignored suggestions
Settings
-
Ignore single letter suggestions (on by default): Filters out single-character suggestions that are often incorrect, especially with non-Latin scripts.
- Single letter exceptions: Specify single letters that should NOT be filtered (e.g., "I a" for English).
-
Suggestions to ignore: Create a list of specific suggestions that should never be used (e.g., "ht Th").
-
Keep iterating when no valid suggestions are found (off by default): When enabled, if a misspelled word has all suggestions filtered out, continue searching for other misspelled words on the line instead of stopping.
-
Autocorrect (off by default): Automatically check and correct the last word when you press space. Uses the same filtering and settings as manuall correction. Can be toggled on and off using the "Toggle Autocorrect" command.
Workflow example
- Type a misspelled word: "teh quick"
- Press your "Fix previous spelling" hotkey (e.g.,
Alt+F) → "teh" becomes "the" - Don't like it? Press your "Cycle suggestion" hotkey (e.g.,
Alt+C) to see other suggestions - Still not right? Press your "Restore original word" hotkey (e.g.,
Alt+R) to restore "teh" - Want to prevent this suggestion? Press your "Add to ignored suggestions" hotkey (e.g.,
Alt+X) to add it to your ignore list
With Autocorrect enabled, just type "teh" and after pressing space it automatically becomes "the ". Then you can use your cycle, restore, and ignore hotkeys as needed, like in the example above.
How it works
The plugin scans backwards from your cursor position on the current line to find misspelled words. It uses the native browser/Electron spellchecker API to detect misspellings and get suggestions, then automatically replaces the word with the first valid suggestion.
Important details:
- Respects your Obsidian custom dictionary - words you've added won't be corrected
- Works only on the current line (respects line boundaries)
- If your cursor is in the middle of a word, it checks the complete word
- All settings and features apply to both manual correction and autocorrect
Language support
Should works with any language supported by your system's spellchecker. Tested with:
- English
- Hebrew
Installation
This plugin hasn't been approved by Obsidian yet, so it can't be installed from the community plugins interface. The best way to install it is through the BRAT plugin.
Made with LLMs through Cursor by Yoav Ravid
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.