vim-beancount
vim-beancount copied to clipboard
Support non-ASCII characters in account names?
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.
Same for german Umlauts, see screenshot:

Here's the input beanfile for reference: utf8-test.beancount.txt