Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
A "tags" reporting command. #261
Here are some features I would like to see in hledger.
This will help greatly when using tags in queries since the user will know exactly what tags to query.
I had forgotten this issue, but the tags command arrived recently, in hledger 1.4. We can improve it further:
Currently any arguments filter the transactions in which tags are discovered. Today I found this unintuitive (see #hledger log) and I propose to add a new first argument which filters the tag names themselves, ie changing the UI to
Note you can see tag values now by using the accounts command and --pivot:
How should --count's output look ? Should --count interact with --values ?
A related report which gives some idea of tag activity:
added a commit
Oct 17, 2017
There is some overlap between these tag reporting desires and our usual reports. We could add some features generalising these:
Given the above, we could produce pseudo balance reports including tag names, tag values, and accumulated hierarchic counts of both, displayable in any of the ways we display balance reports.
I clearly can see benefit of listing all unique names of tags and all tags with their corresponding values to identify misspelling or to provide input for auto-completio (especially with filtering).
But I'm not sure I understand use-case for
@maisammusthafa, why do you want to see counts ? I might use it for things like: - I found similar/redundant tags, which one is the most used ? (Currently in this situation I compare activity reports, which is more verbose) - How many open TODO: tags do I have, by year ? - How many trips did I have by year ? (distinct values of trip: tag) - Seeing average counts per period (if full proposal implemented)