fava icon indicating copy to clipboard operation
fava copied to clipboard

Add ability to select treemap (Income/Expense/...) in trial balance using url query parameter

Open christianglodt opened this issue 1 year ago • 1 comments

I'd like to be able to link to a treemap of a certain Expenses account. Now I can create a url like this:

http://localhost:5000/beancount/trial_balance/?account=Expenses%3AFood

However, this defaults to the "Income" treemap, which is empty in this case.

Would it be possible to add a url query parameter to select which treemap to show? For example:

http://localhost:5000/beancount/trial_balance/?account=Expenses%3AFood&treemap=Expenses

This would solve my immediate problem. I am using fava 1.29.

christianglodt avatar Jan 14 '25 09:01 christianglodt

I guess we could track the currently selected chart in the URL hash which would enable linking to it. Not a priority item for me, a PR would be welcome.

yagebu avatar May 20 '25 20:05 yagebu