Sublime Forum

Is the added_words setting an "editor setting" for the purposes of project setting overrides?

#1

I wanted to add words to the “added_words” or “ignored_words” spellcheck lists but only in certain contexts, and tried to do this by creating a project and putting them in the sublime-project file:

{
  "settings": {
    "added_words":
    [
      "foobarbaz"
    ]
  }
}

However this did not seem to have any effect on other files within the project that I had open. Words that weren’t in my global “added_words” or “ignored_words” lists, but did appear in the project settings list, were still being flagged by the spellchecker.

https://www.sublimetext.com/docs/projects.html says that only “editor settings” can be overridden by project settings, and https://www.sublimetext.com/docs/settings.html#categories says that “spell_check” for instance is an “editor setting” but there doesn’t seem to be any documentation of what settings are in which category, instead deferring to where the settings are placed in the default settings file. “added_words” and “ignored_words” don’t actually appear in the default settings file, so it’s not apparent which category they fall under.

So, are they editor settings? Is this supposed to work?

0 Likes

#2

I suspect that indeed that’s not an editor setting, no. The default preferences has settings grouped by Editor settings, User Interface settings and Application Settings, with Editor settings being the first set available (that is, at the point where other settings start, there’s a comment that tells you what the new section is).

This particular setting doesn’t appear in the default settings, I presume because it’s an internal detail of the overall spell check feature. It does behave similar to other Editor settings in that it can be made buffer specific though.

Perhaps there’s an argument for it being related to the user interface or application behaviour, but it seems like something that would be exceedingly handy.

I would recommend doing a search on the issue tracker and then reporting it as either a potential bug or as a feature request.

0 Likes