Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regular expressions in ignored_words in Sublime Text 3 spell_check?

I'm trying to spellcheck a latex file. I would like the spellchecker to ignore strings containing a number. In my settings file I have

"ignored_words":
[
    "textbf",
    "renewenvironment",
    etc...
]

If I add something like ".*[0-9].*" to "ignored_words" it doesn't seem to do anything. Is there a way to accomplish this?

like image 363
MarkG Avatar asked Feb 23 '15 15:02

MarkG


1 Answers

It is not possible to use regex in spell checking at this point.

ST uses Hunspell as its spell checker. Adding regex to Hunspell is an open feature request. Not being closed means there is some hope that it may be on a long term enhancement list, maybe.

Until Hunspell adds this capability it seems impossible to achieve what you are seeking in ST.

Keeping an eye on the feature request may be worth it to see if there is any progress.

like image 165
jwpfox Avatar answered Nov 15 '22 08:11

jwpfox