Re: Force balance report to always put sub accounts in own node

2023-10-11 Thread John Wiegley
> "NS" == Nikita Skobelevs  writes:

NS> --empty seems relevant but not quite what I'm looking for.
NS> It would help in the above example if I already had some account
NS> Baz:* that was 0 and not displayed, but in this case Foo is the only
NS> subaccount in Baz so --empty doesn't change how it's displayed
NS> I'm assuming there's logic somewhere checking if there's more than 1
NS> subaccount and if so putting them over multiple lines - I'm looking
NS> for a way to force that behaviour so every ":" forces a new node in
NS> the indented tree.

I’m reading the code, but it’s been a while since I last worked on it. I don’t
think this feature exists, but I agree it’s a pretty obvious omission for it
not to be there. There should be a way to ask it not to collapse accounts,
even if they are empty or unused.

John

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m28r89jav7.fsf%40newartisans.com.


Re: Force balance report to always put sub accounts in own node

2023-10-10 Thread Nikita Skobelevs
Hi John,

--empty seems relevant but not quite what I'm looking for.
It would help in the above example if I already had some account Baz:* that 
was 0 and not displayed, but in this case Foo is the only subaccount in Baz 
so --empty doesn't change how it's displayed
I'm assuming there's logic somewhere checking if there's more than 1 
subaccount and if so putting them over multiple lines - I'm looking for a 
way to force that behaviour so every ":" forces a new node in the indented 
tree.

Regards,


On Tuesday, 10 October 2023 at 00:04:50 UTC+1 John Wiegley wrote:

> > "NS" == Nikita Skobelevs  writes:
>
> NS> I was wondering if it's possible to force the balance report to
> NS> always have sub accounts as new nodes in the indented tree even if
> NS> there's only 1 sub account? Either with some flag or custom
> NS> --balance-format?
>
> Does --empty does what you want?
>
> John
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/b16a8d3a-e912-49c5-bb6d-5a3e790627f7n%40googlegroups.com.


Re: Force balance report to always put sub accounts in own node

2023-10-09 Thread John Wiegley
> "NS" == Nikita Skobelevs  writes:

NS> I was wondering if it's possible to force the balance report to
NS> always have sub accounts as new nodes in the indented tree even if
NS> there's only 1 sub account? Either with some flag or custom
NS> --balance-format?

Does --empty does what you want?

John

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m2a5srz9bq.fsf%40newartisans.com.


Force balance report to always put sub accounts in own node

2023-10-08 Thread Nikita Skobelevs
Hi,

I was wondering if it's possible to force the balance report to always have 
sub accounts as new nodes in the indented tree even if there's only 1 sub 
account? Either with some flag or custom --balance-format?

Example:

* Current Output:*
  xx.xx  Expenses
  xx.xxBaz:Foo
  xx.xxBar:Qux
---
  0

*Desired output:*
  xx.xx  Expenses
  xx.xxBaz
  xx.xx  Foo
  xx.xxBar
  xx.xx  Qux
---
 0

Thanks,
Nikita

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/d651e1af-c248-458a-baaf-3bf39c0a5ec9n%40googlegroups.com.