You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was not clear to me from README.md which characters knut allows for account names. I am one of these weird individualists likes to use spaces in account names and slashes to separate subaccounts.
It turns out that knut "only" supports colons, unicode letters, and unicode digits (guessing from the following snippet). Which is okay, but would be nice to state in the docs.
It shares these restrictions with most PTA tools. Allowing spaces would make parsing significantly more complex, and colons seem to be the gold standard for declaring subaccounts. Agree this could be documented.
Can confirm about the spaces making the parser a lot more difficult to handle; you have to then rely on a double space (or more) to signify the end of an account declaration - I took it out. W.r.t. slashes, I've adopted those in blossom to be semi-virtual accounts, e.g. Liability:Bank:CreditCard1/21x9 for the September statement.
It was not clear to me from
README.md
which characters knut allows for account names. I am one of these weird individualists likes to use spaces in account names and slashes to separate subaccounts.It turns out that knut "only" supports colons, unicode letters, and unicode digits (guessing from the following snippet). Which is okay, but would be nice to state in the docs.
knut/lib/parser/parser.go
Lines 512 to 520 in 598e6ac
It might also be worth noting that there's the concept of an "identifier" and that commodities are parsed as identifiers.
The text was updated successfully, but these errors were encountered: