tth05 / obsidian-completr

Auto-completion plugin for the obsidian editor.
MIT License
291 stars 18 forks source link

It seems doesn't work with Chinese characters #52

Closed huanlin closed 1 year ago

huanlin commented 1 year ago

It works well with English characters, but not Chinese. Hopefully Chinese characters can be supported.

tth05 commented 1 year ago

Did you modify the character regex in the settings? Something like \p{Han} should include all chinese characters.

tth05 commented 1 year ago

@huanlin Did that help?

SourignaSimmalavong commented 1 year ago

In case it can help someone else, it works if you use \p{sc=Han} (https://javascript.info/regexp-unicode)