print: beancount: convert underscores in account names to CamelCase - #2596
print: beancount: convert underscores in account names to CamelCase#2596waj wants to merge 1 commit into
Conversation
Underscore-separated subparts within an account name component are now capitalised and joined, so e.g. assets:wells_fargo:fima_usd becomes Assets:WellsFargo:FimaUsd instead of the previous hex-encoded Assets:WellsC5ffargo:FimaC5fusd. Underscores in hledger account names are conventionally used as a space substitute, so treating them as word boundaries produces much cleaner Beancount output.
|
Thanks for the PR. |
|
I use hyphens rather than underscores to separate account name sub-parts; and of course spaces are the other common separator. Here's how they're all handled currently: Would it be simpler and more consistent to replace https://hledger.org/1.52/hledger.html#beancount-account-names currently says
It would be nice to always use |
Underscore-separated subparts within an account name component are now capitalised and joined, so e.g.
assets:wells_fargo:fima_usdbecomesAssets:WellsFargo:FimaUsdinstead of the previous hex-encodedAssets:WellsC5ffargo:FimaC5fusd. Underscores in hledger account names are conventionally used as a space substitute, so treating them as word boundaries produces much cleaner Beancount output.