calcurse icon indicating copy to clipboard operation
calcurse copied to clipboard

[Feature Request] - Add support for multiple calendars

Open albocc opened this issue 7 years ago • 17 comments

This software is great and CalDAV works nice so far, but what I am really missing, which is keeping me from using calcurse, is the lack of support for multiple calendars.

It would be amazing, if someone could add a feature to keep multiple calendars – ideally with CalDAV support.

albocc avatar Nov 08 '17 16:11 albocc

You can already use (and synchronize) calcurse with multiple calendars, as see #14 and #59. The only thing that does not work is displaying multiple calendars within a running calcurse instance at the same time.

lfos avatar Nov 08 '17 19:11 lfos

Thanks for your reply!

What I meant was that there is no support to view multiple calendars at once, as you already noted. I saw that I could create multiple instances of calcurse with different configuration directories, but that is not the same, unfortunately.

albocc avatar Nov 09 '17 13:11 albocc

Ok, leaving this open... For the next release, our main priority is making major improvements to the synchronization script. So this might be a good candidate for 4.5.0...

lfos avatar Nov 10 '17 05:11 lfos

I think this is a very important feature because it will enable dav and vdir features to be more consistent.

raspbeguy avatar Jul 02 '19 08:07 raspbeguy

Is this still planned ? @lfos

demonking avatar Oct 24 '19 07:10 demonking

Is this still planned ? @lfos

Yes.

lfos avatar Oct 24 '19 15:10 lfos

I think the ability to display several calendar (with different colors) on the same calcurse instance is very important. Most people have at least a calendar for work and another for personal stuff.

pprw avatar Dec 11 '19 15:12 pprw

I think the ability to display several calendar (with different colors) on the same calcurse instance is very important. Most people have at least a calendar for work and another for personal stuff.

I totally agree. However, this is also nontrivial to implement. Patches are welcome!

lfos avatar Dec 11 '19 15:12 lfos

As discussed in a related thread on the mailing list, a first step in this direction would be adding support for additional read-and-edit-only calendars. You can specify one main data file. Any new items will be added to this main calendar file. Other items can be edited.

In a second phase, we can add support for switching the main calendar in a running instance (or, alternatively, always ask for the calendar to use when adding items).

lfos avatar Dec 11 '19 15:12 lfos

I think the ability to display several calendar (with different colors) on the same calcurse instance is very important. Most people have at least a calendar for work and another for personal stuff.

I totally agree. However, this is also nontrivial to implement. Patches are welcome!

Of course, I always easier to ask than to implement. I just discovered calcurse and it is wonderful so far! Keep up the good work.

pprw avatar Dec 11 '19 15:12 pprw

I would like to add my +1 to this, as it's the only feature missing keeping me from using calcurse as my main calendar software. I would even be satisfied with running multiple instances. That even sounded better and more organized, because I would have a calcurse instance per calendar, meaning I could theme each one differently to make it more clear what calendar I was working in. I was going to do that and dedicate a workspace to my calendars, but it seems one cannot run multiple instances at the same time, so that's a pain. Is this the case, or am I missing something? When I try to run another instance, I get an error.

Anyway, I don't mean to complain. I really appreciate the work that went into this. It's a fantastic piece of software that I wish I could use as my daily driver. I'll be studying the source and seeing if I can contribute to this feature somehow.

jbh avatar Dec 23 '19 04:12 jbh

... but it seems one cannot run multiple instances at the same time, so that's a pain. Is this the case, or am I missing something?

You are. See the -D option in the man page.

lhca avatar Dec 23 '19 09:12 lhca

Dang. I swear I read through the man page. I remember reading that, but it wasn't clear to me that would solve this issue. I'll give it a shot. Thank you!

With help from above, I've done the following:

calcurse-caldav --init=keep-remote --config=$HOME/.calcurse-work/caldav/config --syncdb=$HOME/.calcurse-work/caldav/sync.db
calcurse -C .calcurse-work -D .calcurse-work

calcurse runs fine, which is great. However, it doesn't seem to be readying from syncdb at all. Is there another option I'm missing? Nothing jumps out at me from the man page.

jbh avatar Dec 23 '19 23:12 jbh

For anyone wondering later, you have to also pass datadir to calcurse-caldav, like so:

calcurse-caldav --init=keep-remote --config=$HOME/.calcurse-work/caldav/config --syncdb=$HOME/.calcurse-work/caldav/sync.db --datadir=$HOME/.calcurse-work

jbh avatar Dec 24 '19 00:12 jbh

@jbh could you describe how your final workflow looks like and how it works?

ovgeorge avatar Jun 11 '20 14:06 ovgeorge

@ovgeorge I haven't used it in a very long time, because I just kinda stopped using calendars altogether.

I think my dotfiles repo has references to my workflow. Take a look at dmenu_calcurse.

I'll try to take a look over them this weekend to see if I can remember anything in particular.

jbh avatar Jun 19 '20 20:06 jbh

@ovgeorge Looks like I was smart enough to commit configuration examples:

calcurse configs

jbh avatar Jun 19 '20 20:06 jbh