Open simonmichael opened 3 years ago
Eg here's the current output of a simple balance report in tree mode with multicommodity balances:
$ hledger -f examples/bcexample.hledger bal -N --tree assets:us:etrade
70.00 GLD
17.00 ITOT
5120.50 USD
36.00 VEA
294.00 VHT Assets:US:ETrade
5120.50 USD Cash
70.00 GLD GLD
17.00 ITOT ITOT
36.00 VEA VEA
294.00 VHT VHT
And here's what I think is being proposed:
70.00 GLD Assets:US:ETrade
17.00 ITOT Assets:US:ETrade
5120.50 USD Assets:US:ETrade
36.00 VEA Assets:US:ETrade
294.00 VHT Assets:US:ETrade
5120.50 USD Cash
70.00 GLD GLD
17.00 ITOT ITOT
36.00 VEA VEA
294.00 VHT VHT
Correction, here's what I think is being proposed:
70.00 GLD Assets:US:ETrade
17.00 ITOT Assets:US:ETrade
5120.50 USD Assets:US:ETrade
36.00 VEA Assets:US:ETrade
294.00 VHT Assets:US:ETrade
5120.50 USD Assets:US:ETrade:Cash
70.00 GLD Assets:US:ETrade:GLD
17.00 ITOT Assets:US:ETrade:ITOT
36.00 VEA Assets:US:ETrade:VEA
294.00 VHT Assets:US:ETrade:VHT
FWIW, I like it. I often pipe reports into fuzzy finders like fzf or sk, and this output would be way better for searching and browsing
On Sun, May 2, 2021 at 9:32 PM Simon Michael @.***> wrote:
Correction, here's what I think is being proposed:
70.00 GLD Assets:US:ETrade 17.00 ITOT Assets:US:ETrade 5120.50 USD Assets:US:ETrade 36.00 VEA Assets:US:ETrade 294.00 VHT Assets:US:ETrade 5120.50 USD Assets:US:ETrade:Cash 70.00 GLD Assets:US:ETrade:GLD 17.00 ITOT Assets:US:ETrade:ITOT 36.00 VEA Assets:US:ETrade:VEA 294.00 VHT Assets:US:ETrade:VHT
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/simonmichael/hledger/issues/1550#issuecomment-830867430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA42KTZCQKCOTDSQZKIALDTLWZEJANCNFSM437CWW7A .
-- D. Astapov
Greg Risko (?) requested a balance report display mode that shows both the full account names, and a name on every line (like list mode) and also shows the tree structure with indentation (like tree mode). I think the wish is that the default
balance
command output is easy to understand and easy to process with unix tools likegrep
. The current tree-mode balance report can't be easily grepped because multicommodity balances are shown on multiple lines by default, with the account name only on one of those lines.In my mind the
balancesheet
andincomestatement
commands are intended to be the first and most-easily-understood reports run by new users, withbalance
being more of a power user command. Perhaps Greg avoids those because they're not so greppable either - multicommodity balances will be shown on one line, and probably elided.So we should explore this. When would this mode be activated ? Must we add yet another flag ? What will it look like and how clear will it be in practice ?