siddhantac / puffin

A beautiful terminal dashboard for hledger 💰
MIT License
277 stars 6 forks source link

Set custom flags #38

Closed victormihalache closed 3 months ago

victormihalache commented 4 months ago

I wanted to make an issue to have the cost reporting, but, wouldn't it be simpler to have for each report a key you can press that allows you to type what flags puffin should append to the call to hledger? This would allow the user to have it so they can have report the way they want it—with the beauty of puffin, even if the feature isn't directly supported by puffin.

GitUI does this in the way I would expect it to. When you're in the commits tab...

Screenshot 2024-06-20 at 17 48 46

...you can press t and the input field pops up for you to type.

Screenshot 2024-06-20 at 17 48 54
siddhantac commented 4 months ago

Thanks for the suggestion! As far as I can tell, Gitui is only allowing you to add tags in the second screenshot.

In general, I am trying to keep Puffin focused, with specific keys to activate flags or settings.

I'll be working on cost reporting (--cost) and value reporting (--marketing) next, since there seems to be some interest around those topics. (see #42 )

Having said that, I do think there might be some value in adding more customisability. I'm playing around with some ideas with that, so hopefully I'll have an update for it in the future.

siddhantac commented 3 months ago

You can create your own reports with custom flags now via a config file. (see release v1.7.0)