simonbs / Runestone

📝 Performant plain text editor for iOS with syntax highlighting, line numbers, invisible characters and much more.
MIT License
2.62k stars 145 forks source link

Is there a way to enable spellcheck? #373

Open drkoll opened 2 months ago

drkoll commented 2 months ago

Using the most recent (1.4.8) build on iPad Pro, I have been searching for a way to enable a spellcheck feature when typing in plaintext as it exists in default iOS (red line under misspelled word,) but have come up empty handed. The auto correction feature is useful for most common words, but certain words (medical terminology, etc,) are missed by it and if I am not paying attention I can end up with errors in my document. They are usually picked up when I paste the text into other apps such as the Mail client, but to have the feature enabled natively within Runestone would be a massive QoL improvement.

Searching the documentation it seems like this feature may exist, but I have been unable to find where to enable it. Attached are two images from Runestone, one where the autocorrect feature knows what to replace the misspelled word with, and another where it doesn’t. The last image is the same text pasted into Obsidian with the spellcheck feature enabled, showing the behavior I am trying to enable.

Runestone: Misspelled word recognized IMG_0087

Runestone: Misspelled word unrecognized IMG_0088

Obsidian: Red spellcheck line enabled IMG_0089

Thank you very much in advance for any insight on this issue/request!

simonbs commented 2 months ago

The Runestone open-source framework, and as such the Runestone Text Editor app that builds upon the framework, does not have proper support for spell checking at this point, as Runestone is mainly intended for editing code where spell checking is secondary.

I'm working on a big update to Runestone in which I hope to support spell checking down the road.

donswelt commented 1 month ago

Maybe something like what CotEditor does on MacOS? You can assign "code" or "text" to file extensions. That way, for example, spell checking is only available for files like .txt and .md, while .lua, .html and .css aren't. I really like this option.