Open legrostdg opened 5 years ago
probably related to https://github.com/simonmichael/hledger/issues/664
Hi @legrostdg, what are some situations where this would be helpful ?
Also, could you show some mockups (here is fine) of register output including tags ? Space is quite limited.
I use tags to specify the related accountant documents for each transaction (essentially the filename of the invoice). I guess tags are used by others in different ways, but whatever the use case is, they are quite hidden now (maybe because they are just a kind of special comment).
mockup:
$ hledger register [--tags]
2019/01/01 first transaction liabilities:bank 50.00€ 50.00€
doc:"~/invoices/01.pdf" assets:custom -50.00€ 0
2019/01/02 second transaction liabilities:bank 30.00€ 30.00€
doc:"~/invoices/01.pdf" assets:custom -20.00€ 10.00€
liabilities:VAT -10.00€ 0
In the webapp, the best would be clickable text redirecting to the list of the transactions with the same tag (not very useful for my usecase of tags, but for example click on "trips:Germany" on a transaction redirecting to all transactions matching this tag would be really nice!).
You're right that they are quite hidden; only the print and tags commands display them. (Also, with --pivot you can make a single tag's values visible as accounts.)
The mockup is a good start. Could you show a journal entry or two, with both transaction and posting tags, including multiple tags and multiline tags, and explore how that might look, with the register unfiltered or filtered to specific accounts.
Adding them to hledger-web seems easier (more space and layout flexibility) and that does sound nice. Is it something you could try prototyping ?
(By "multiline tags" I meant next-line tags.) Eg:
2019-01-01 foo ; txn-tag-1: some value
; txn-tag-2: 2 2 2, txn-tag-3: 3
; txn-tag-4: with a very long value with a very long value with a very long value with a very long value with a very long value with a very long value with a very long value with a very long value with a very long value
a 1 ; posting-tag-1: p1 p1
; posting-tag-2: p2 p2
b
; posting-tag-3: with a very long value with a very long value with a very long value with a very long value with a very long value with a very long value with a very long value with a very long value with a very long value
; this:
; posting:
; has:
; lots:
; of: tags
It would be nice to have tags displayed for each transaction in the "General Journal" part of hledger-web webpage.
hledger register
should also display the tags, maybe with a--tags
option. That would help tag usage a lot!