Hi there. I'm using Chinese in account names because a translation is not always readable and pinyin (a way to use ASCIIs when necessary) is not very readable either.
This plugin doesn't highlight such names and :AlignCommodity doesn't take this into account. Also note that Chinese characters are wider than ASCIIs.
I've replaced the regex to use \S and used strwidth to calculate and it seems to work for me, but I don't know if I missed anything.
Hi there. I'm using Chinese in account names because a translation is not always readable and pinyin (a way to use ASCIIs when necessary) is not very readable either.
This plugin doesn't highlight such names and
:AlignCommoditydoesn't take this into account. Also note that Chinese characters are wider than ASCIIs.I've replaced the regex to use
\Sand usedstrwidthto calculate and it seems to work for me, but I don't know if I missed anything.