lakoliu / Furtherance

Track your time without being tracked
GNU General Public License v3.0
247 stars 23 forks source link

feat: add csv export #64

Closed flxzt closed 2 years ago

flxzt commented 2 years ago

Hey! I thought CSV export would be nice, so here it is with some basic options:

This could also be a starter to add custom sort the report with those options.

Thanks for the app and let me know what you think!

flxzt commented 2 years ago

just noticed the codebase was not formatted with rustfmt, sorry about the fmt noise in the PR. (although I think it might be worth considering always formatting in the future to avoid this )

lakoliu commented 2 years ago

This looks really good, thank you for doing all of that! I definitely need to clean up the formatting. I created Furtherance as a way to learn Rust so a lot of the code is a bit messy.

flxzt commented 2 years ago

I didn't use it myself yet, but the rust-gtk-template features a pre-commit hook executing rust fmt, that might be useful. :)

lakoliu commented 2 years ago

Do you know how we can localize the "nick" strings used in the enums you created for TaskSort and SortOrder? I'm not sure how to localize strings in an enum (Issue #68). Thanks!

flxzt commented 2 years ago

hmm, I don't know actually :/. Maybe this needs to be refactored into a string list to display the enum options in the UI, and then match on the index of the current selected string