pimutils / todoman

✅ A simple, standards-based, cli todo (aka: task) manager.
https://todoman.readthedocs.io
ISC License
489 stars 78 forks source link

Multiple Lists #500

Open DhruvaSambrani opened 1 year ago

DhruvaSambrani commented 1 year ago

I understand that this should ideally work, but I have multiple webdav accounts synced by vdirsyncer to local as the following-

~/.calenders
    - CAL1
        - UUID
            - ev1.ics
            - ev2.ics
    - CAL2
        - UUID
            - ev1.ics
            - ev2.ics
    - CAL3
        - UUID
            - ev1.ics
            - ev2.ics

in ~/.config/todoman/config.py

path = "~/.calendars/*"

does not recognize any todos at all.

Todos show up only when I set path = "~/.calendars/CAL1/*" or similar. But then I cannot see todos from other calendars, as expected.

Suggested fix

I would suggest to allow path to be a list of locations. This may need other changes elsewhere.

WhyNotHugo commented 1 year ago

Does this work?

path = "~/.calendars/*/*"

DhruvaSambrani commented 1 year ago

It does, thanks.

I feel this should either be documented, or, even better, ~/.calendars/* should also match.

WhyNotHugo commented 1 year ago

It's a glob pattern. Things like * and ? work as usual.

Granted, more examples could be documented (and, ideally, we should take a colon-separated list of globs/paths too).