From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: org-contacts: how to manage contacts; structure of meta data Date: Thu, 6 Oct 2011 11:38:26 +0200 Message-ID: <2011-10-06T11-24-31@devnull.Karl-Voit.at> References: <86pqicblti.fsf@googlemail.com> <2011-10-05T18-01-46@devnull.Karl-Voit.at> <86k48jcghn.fsf@googlemail.com> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBkPg-0007LI-1Y for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 05:38:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBkPe-00033i-G4 for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 05:38:48 -0400 Received: from lo.gmane.org ([80.91.229.12]:33205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBkPe-00033U-5F for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 05:38:46 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RBkPc-0008TD-VF for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 11:38:44 +0200 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Oct 2011 11:38:44 +0200 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Oct 2011 11:38:44 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * Thorsten wrote: > Karl Voit writes: > >> Without describing further attempts, I ended up with following >> yasnippet[2] template for a new contact: > > Do you think that yasnippet is superior to org-capture or is it just a > casuality that you prefered it to org-capture? Oh, first I started with org-capture. One week later I started to use yasnippet. I have to mention that I was using Emacs a decade ago when I switched to vim. For Org-mode I returned to GNU Emacs. Now I have to re-orienteer again what is available and how it works :-) yasnippet is superior to org-capture and it is not :-) What is missing with yasnippet is a quick capture method which includes the destination for the new item. What is great with yasnippet is, that you can define certain input values that have to be entered. Those values can be re-used. So when you take a look at my snippet, you recognize $1, $2, ... And you recognize that $1 and $2 a re-used. I do have to enter $1 only once and it is inserted multiple times - depending on the occurrence of $1 in the rest. For the :TYPE: property I let yasnippet ask me, whether it is a person or a company I am entering now. Handy. >> ,---- >> | # name : Org-contacts template for a person or a company >> | # -- >> | ** $1 $2 :$1$2: >> | :PROPERTIES: >> | :TYPE: ${3:$$(yas/choose-value '("person" "company"))} >> | :TITLE: >> | :EMAIL: $4 >> | :URL: >> | :MOBILE: 0043/ >> | :HOMEPHONE: >> | :WORKPHONE: >> | :PHONE: >> | :COMPANY: >> | :STREET: >> | :POSTALCODE: >> | :CITY: >> | :COUNTRY: Österreich >> | :END: >> | >> | first contact: $0 >> `---- > > Thats what I thought, that a single :ADDRESS: property is not very > usefull or practical. You loose meta information and semantic description. With my method you can generate sparse trees with people living in a certain street, town or such things. > So there is not something like a nested property, > each piece of information needs its own property. I do think so. But I am new to Org-mode and might still miss certain details. > I think your list is pretty complete and usable. Thanks. >> My current tags for contacts are defined in the header of my >> contacts.org: >> >> ,----[ first line of my contacts.org ] >> | #+TAGS: job(j) friends(f) health(e) hotels(o) restaurants_bars(r) \ >> | sport(s) students_TU(t) relatives(r) company(c) >> `---- > > [how do you produce this nice insertions in your email?] As an Emacs user, you might not be delighted with my answer: I am using mutt[3] as MUA[4]. There I can choose my editor freely. For this purpose I am using vim 7.1. In vim I can use «boxes»[5]: ,----[ a line from my .vimrc ] | map ;1 :'<,'>!boxes -d boxquote `---- But I also used to use Emacs for mail composing years ago and I do recall a similar method there. > Thanks for your help You're welcome! 3. http://www.mutt.org/ 4. http://en.wikipedia.org/wiki/Mail_user_agent 5. http://boxes.thomasjensen.com/ 6. As I recognize here, the vim referencing mechanism seem to be confused by the $1 and $2 from above and started with [3]. Cute. -- Karl Voit