mirror of
https://github.com/textmate/textmate.git
synced 2026-01-13 16:57:56 -05:00
This partially reverts changes of3fdc72b93a: Support spell checking being “automatic by language”. Before3fdc72bspellingLanguage .tm_properties setting (default "en") was the only way to set spelling language for file (buffer). English was default language for all files.3fdc72bintroduced change that when “automatic by language” was selected in system's spelling panel then TextMate was ignoring spellingLanguage setting and was using automatic by language. However because “automatic by language” is default on OS X, effectively3fdc72bmakes spellingLanguage setting no longer effective. To make it work one needs to set explicit spelling language either in System Preferences or in spelling panel upon each TextMate run (since this is getting reset after application restart) - which is counter-intuitive, can be treated as regression and it is vaguely described in ChangeLog: * Support spell checking being “automatic by language”. This is set via the spelling panel. This change presents alternative approach, introducing new empty spellingLanguage setting "" (which is now default), which makes use system panel language setting, including “automatic by language”. From now on all files will be checked against system panel selected language (or automatic), unless .tm_properties project specifies explicitly language for given file using, eg.: [ locale-en_US.ini ] spellingLanguage = en_US [ locale-pl_PL.ini ] spellingLanguage = pl_PL Or automatically depending on file name: [ locale-*.ini ] spellingLanguage = '${TM_FILEPATH/^.*locale-([a-z]+_[A-Z]+).*$/$1/}'