-
Notifications
You must be signed in to change notification settings - Fork 1
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
cobra #9
Conversation
kkga
commented
Oct 11, 2021
- minor: update envrc
- add filter interface
- minor: update testdata
- update item
- use new filter types in list
- todo
- move filter and sort types into single file
- add exclude tag filter
- use lowercase for tag parsing
- simplify tag filters
- start migrating to cobra
I've to say, I'm following this with lots of interest. I'd been thinking of rewriting I'm very curious where this is going, since maintaining re-distributable apps like todoman in python is become a pain. I've a hint that might be useful further down the line: todoman (since its early verions) stored a map of filename->id whenever it re-scanned files. This is so that subsequent runs keep ids consistent (e.g.: if I run This stored file also kept a list of "files that are not todos", to skip parsing them in subsequent runs, which also speeds up even a bit more. (nowadays it also does a lot more caching to compensate for slowness in python, but I don't think that's needed in go due do its fastness). Oh, and I really recommend looking at |
Hey Hugo! Thanks for your interest!
I will continue working on the program, since I use it daily.
Thanks for the tip, I thought about doing something like this actually to make sure that IDs don't change. Shouldn't be too hard.
Thanks, will take a look. I do like the simplicity of using env variables for configuration, but wouldn't hurt to have both I think. |
This looks to be good for merging, since all commands are now ported to cobra. I'm gonna tackle the persistent IDs issue in a separate PR. |