Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count descriptions? #110

Closed
jungle-boogie opened this issue Jul 7, 2024 · 2 comments
Closed

count descriptions? #110

jungle-boogie opened this issue Jul 7, 2024 · 2 comments

Comments

@jungle-boogie
Copy link
Contributor

Hello,

Assume I want to see how many times I've been to costco and I want to use hledger to do.
I know I can grep/rg the file, but is there an hledger way to give me a count?

hledger print desc:costco will list all the transactions
hledger register -m costco will tell me the most recent amount I've spent
hledger bal --count shows total number of transactions across all accounts

What's the right command to tell me how many times I've been to costco?

Thanks!

@jungle-boogie
Copy link
Contributor Author

And of course I would eventually like to know how much I spent at Costco for a given month/year/week, etc.

I can probably do that with tags, if i were to add a tag to every transactions, but I would think the description field would be good enough to filter and contain all this data.

@jungle-boogie
Copy link
Contributor Author

ah, ha!

This does it: hledger bal desc:Costco --count

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant