spellcheck: honor XDG_DATA_DIRS when reading spellcheck dictionaries
commitfa601fea3992513e49dd61370ea9d3a47f863b8f
authorDavid Aguilar <davvid@gmail.com>
Fri, 10 Feb 2023 10:32:18 +0000 (10 02:32 -0800)
committerDavid Aguilar <davvid@gmail.com>
Fri, 10 Feb 2023 10:42:57 +0000 (10 02:42 -0800)
tree34d843ed576a1e03774d567bbcf8d726a4f3c173
parent4fca4ebac5f1f035ef237da91ee52eb0d4b45a8f
spellcheck: honor XDG_DATA_DIRS when reading spellcheck dictionaries

Generalize how dictionaries are discovered. Search in XDG_DATA_DIRS for
dict/words and dict/propernames so that these paths can be placed in
custom locations.

Closes #873
Reported-by: ๆž—ๅšไป(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
CHANGES.rst
cola/resources.py
cola/spellcheck.py
docs/git-cola.rst
test/spellcheck_test.py