pimutils / todoman

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

impossible to use calendars with same name from different dav accounts #429

Open sss123next opened 3 years ago

sss123next commented 3 years ago

with config like this

[main]
default_priority = 0
path = ~/.dav/calendar/*/*

i see this error

todo
More than one list has the same identity: default.

directory structure like this:

tree -d ~/.dav/calendar
/home/sss/.dav/calendar
├── shared
│   └── default
├── sss
│   └── default
└── sss_phone
    └── default
WhyNotHugo commented 3 years ago

Hmm... interesting. I take it that renaming one is unfeasable? I guess we could have per-calendar aliases. 🤔

sss123next commented 3 years ago

i have tried to mimic directory structure via simlinks, but it failed with same error, probably something like readlink used internally

sss123next commented 3 years ago

i guess khal approach will be good enough.

WhyNotHugo commented 3 years ago

The displayname is used: http://vdirsyncer.pimutils.org/en/stable/vdir.html#metadata

khal uses the same value

sss123next commented 3 years ago

i am using this config:

[calendars]

[[sss]]
#type = discover
path = ~/.dav/calendar/sss/default/
color = "light red"

[[phone]]
#type = discover
path = ~/.dav/calendar/sss_phone/default/
color = "dark red"

[[shared]]
#type = discover
path = ~/.dav/calendar/shared/default/
color = "light gray"

with khal and it works.

sss123next commented 3 years ago

it's also will be nice to have ability to move/copy items between accounts, but i guess this is topic for another ticket

WhyNotHugo commented 3 years ago

it's also will be nice to have ability to move/copy items between accounts, but i guess this is topic for another ticket

See todo move --help and todo copy --help.

WhyNotHugo commented 3 years ago

i see this error

todo More than one list has the same identity: default.

Do you still get this error after running `metasync?

sss123next commented 3 years ago

it's also will be nice to have ability to move/copy items between accounts, but i guess this is topic for another ticket

See todo move --help and todo copy --help.

i can't test bacause of More than one list has the same identity: default.

sss123next commented 3 years ago

i see this error todo More than one list has the same identity: default.

Do you still get this error after running `metasync?

what is `metasync ?

WhyNotHugo commented 3 years ago

vdirsyncer metasync tells vdirsyncer to fetch calendar name and colour metadata. Just in case, have you run this?

sss123next commented 3 years ago

same problem, but it is 3 different accounts with same name default so this will not help.

WhyNotHugo commented 3 years ago

Create a file called displayname inside the directories, and put an alias for each list there.

See https://todoman.readthedocs.io/en/stable/configure.html#color-and-displayname

Lemme know if that doesn't work.

sss123next commented 3 years ago

yes, this worked, thx for help. i guess it should be mentioned in error description.