On Sun, 16 Feb 2025 14:24:19 -0800 (PST)
Porcelalin Mouse via Remind-fans <[email protected]> wrote:

> - I'm not sure, without doing some painful testing, if it is safe to
> sync my main remind file both ways.  Seems dangerous.  Does anyone
> have a workflow they could share?

I do not do a two-way sync.  I organize my files into a directory
~/.reminders/

Within that directory, I have four files that I only ever edit by
hand or with TkRemind, and I sync those TO Radicale using rem2dav.  The
files are:

062-holidays.rem        - Statutory holidays
061-jewish-holidays.rem - Jewish holidays
100-tkremind.rem        - Reminders I create with TkRemind
101-birthdays.rem       - Birthdays of friends and family

They go into four separate calenders in Radicale.  I sync the holidays
and birthdays once a day, and 100-tkremind.rem once an hour.

The other way around, I have a main calinder in Radicale; I sync that
to ~/.reminders/060-radicale.inc which gets included by hand.  I don't
use dav2rem for that because I have an older Perl script I wrote and
didn't really feel a need to change.  But you should probably use
dav2rem.

> - I use multiple methods to compartmentalize my reminders.  I have
> some that show up in Wyrd, and not in print calendars, and
> vice-versa.  I even have some reminders that are notified to my
> desktop via DBUS and festival TTS, but not all of them.  How can I
> sync some of my reminders but not others.  I assume I can have an
> imported remind file for just those reminders.  Does this make sense?

I keep my reminder files in a directory and that makes it easy to sync
some but not all reminders.  I do have some conditional stuff in there
depending on whether I'm running under TkRemind.  For example, this
is my 060-radicale.rem file; it colors the Radicale "main calender" reminders,
but only if I'm in TkRemind or producing a calendar on the terminal:

   IF in_tkremind_window || (stdout() == "TTY")
      SET $DefaultColor "0 192 0"
   ENDIF

   DO 060-radicale.inc

   IF in_tkremind_window || (stdout() == "TTY")
      SET $DefaultColor "-1 -1 -1"
   ENDIF

And if you're wondering where in_tkremind_window gets set, it looks
like this:

   if defined("tkremind") && !defined("tkprint")
      set in_tkremind_window 1
   else
      set in_tkremind_window 0
   endif

TkRemind itself sets tkremind on the command-line when it invokes remind.

Regards,

Dianne.
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to