From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Advance notice of birthdays in org-mode via org-contacts Date: Mon, 27 May 2019 22:05:07 -0400 Message-ID: <87lfyrl4fg.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVRUN-0005XL-9Y for emacs-orgmode@gnu.org; Mon, 27 May 2019 22:05:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVRUM-0003Lz-7Q for emacs-orgmode@gnu.org; Mon, 27 May 2019 22:05:19 -0400 Received: from [195.159.176.226] (port=49602 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVRUM-0003GT-1M for emacs-orgmode@gnu.org; Mon, 27 May 2019 22:05:18 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hVRUJ-00130e-SC for emacs-orgmode@gnu.org; Tue, 28 May 2019 04:05:15 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Daryl Manning writes: > I'm trying to come up with a better way to give myself advanced notice on some peoples' birthdays coming up.  > > Right now, I use the following in a `cal.org` file to give me notice in agenda that birthdays are coming up: > > ``` > * BDays                                                                         :bday: > %%(org-contacts-anniversaries "BIRTHDAY") > ``` > > The generally feeds off a `contacts.org` entry of the nature: > > ``` > *** John Wick                                                   > :PROPERTIES: > :EMAIL: therealjdub@notthepuppy.com > :BIRTHDAY: 1975-06-06 > :END: > ``` > > What I'd like is to get, on virtually all birthdays , a week's notice through due soon (which I'll sort out in org-super-agenda in the view). Alternatively, is there a nicer way to tag or > otherwise note some birthdays in the `contacts.org` so that I could note special people (close friends, family, etc) where I could set a specific advanced notice period so that I have time > to do something special for them etc? > > Would love to hear peoples' approaches to this. In general, if I'm not looking out 2 weeks ahead (I spend most time in the day view), I can get surprised. > I use bbdb, not org-contacts, and I have this in one of my agenda files: * Anniversaries :PROPERTIES: :CATEGORY: Anniv :ID: 409062f6-6cb1-467f-b192-2dfcb7b384ca :END: %%(org-bbdb-anniversaries-future) That gives me the default 7 days of warning, but you can pass an argument to it to specify the number of days of warning. The function is fairly generic, so it should be possible to adapt it to org-contacts with some modifications. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler