Support for macOS's built-in spelling and correction

Although 0.7.4 adds spellchecking, it’s only in English and autocorrect is still not supported. Why not simply add support for the system-wide spelling functionality that is baked into macOS? That would also allow for replacement snippets for those who don’t use TextExpander, as well as support for multiple languages.


I imagine it is because Electron apps do not play nice with macOS standard text fields, causing other problems too:

Sadly this means that it’s a lot of work to fix this, so I wouldn’t keep your fingers crossed that it’ll be fixed anytime soon or your fingers may cramp.

Thanks for the clarification; I’ll stop holding my breath… It would be nice to have an overview somewhere summarizing just how many aspects of macOS standard text fields are not accommodated by the Electron framework. A list of these “known issues” would mean that we don’t all need to report these issues as bugs. (Like the “select to end of paragraph” system-level keyboard shortcut, which does indeed make my fingers cramp!

I am trying out and considering a switch, and was a bit confused the macOs system spellcheck didn’t work out for some Russian text. It did work in Atom - which was where I was switching from - so I guess they did find some way of doing it within the Electron framework. (not saying it’s easy of course, but at least there’s an open source alternative to spy from)


Is there any way to get the native OS level snippets/text expander on Mac working in Obsidian? I use it a lot and ideally don’t want have to duplicate my entries in two places.

Edit: upon further reading, this seems related to the fact that Obsidian uses its own spellchecker rather than the native OS one. That’s also something I’d love to be able to swtich!

Not worried about correction, but I’m puzzled about which dictionary Obsidian is using. Electron docs says that it should be using the native Mac spellchecker (or at least the API, isn’t that the same thing?).

Current dictionary doesn’t even know the word “journaling.”

It’s a CodeMirror issue. Electron’s spellcheck doesn’t apply to Obsidian’s CodeMirror layer, which is where all the fun text stuff happens.

Licat discussed this on Discord a while back.

I believe Licat’s done some work to help this get fixed upstream, so stay tuned for improvements.

1 Like