This plugin is actually a couple years old, but I just realized I never shared it here. This is a completely trivial, and somewhat hacky plugin that I personally find surprisingly useful.
- Plugin code <https://github.com/redstreet/beancount_reds_plugins/tree/main/beancount_reds_plugins/rename_accounts> - Installed as a part of beancount_reds_plugins <https://github.com/redstreet/beancount_reds_plugins/> *rename_accounts plugin for Beancount * Plugin that renames accounts, given a list of account pairs to rename. This is useful when one wants two different views (reports) into the same set of transactions. Renames can be turned on or off relatively easily (by manually commenting them out in your Beancount plugin directive) depending on the type of reporting desired. Here is an example where this is useful: Expenses:Taxes ---rename--> Income:Taxes This rename allows taxes to avoid cluttering and dominating the Expense reports (and thus rendering them less useful), and simultaneously reports net (after-tax) income. Without the rename, of course, the view of gross income and expenses including taxes becomes available. Here are a *few other examples <https://groups.google.com/g/beancount/c/ZD8701xPE3Y/m/M0mA0gb1AgAJ>* from the Beancount mailing list where renaming accounts helps switch between a cash flow view and a tax view. Of course, the right set of queries can also give you these reports. However, renaming allows you to take advantage of standard, built-in reporting tools and UIs. For example, Fava's UI hierarchy and associated visualizations (treemaps, sunburst plots, bar plots across time, changes by year, etc.) are not available for queries. Renaming solves this problem. -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/5dadf9f2-89e8-422a-9127-9c881b7d49d5n%40googlegroups.com.