From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: add a table entry by org-remember template Date: Thu, 17 Jun 2010 19:12:01 +0800 Message-ID: <87aaqtgbge.fsf@gmail.com> References: <87eig6f7mn.fsf@gmail.com> <87ljae6ipq.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=45168 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPD1X-0006HP-9F for emacs-orgmode@gnu.org; Thu, 17 Jun 2010 07:12:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPD1V-0002PA-Qk for emacs-orgmode@gnu.org; Thu, 17 Jun 2010 07:12:42 -0400 Received: from lo.gmane.org ([80.91.229.12]:32993) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPD1V-0002OA-Je for emacs-orgmode@gnu.org; Thu, 17 Jun 2010 07:12:41 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OPD1N-0000pJ-N3 for emacs-orgmode@gnu.org; Thu, 17 Jun 2010 13:12:33 +0200 Received: from 60.191.99.21 ([60.191.99.21]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jun 2010 13:12:33 +0200 Received: from zhangweize by 60.191.99.21 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jun 2010 13:12:33 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Matt Lundin writes: > zwz writes: > >> AFAIK, it is now impossible to add a table entry by org-template. >> But I think it is very useful. For example, >> in my private.org, there is a section >> >> * Contacts >> | name | tel. | email | addr | >> |------+------+---------+-----------| >> | A | 12 | a@a.com | somewhere | >> >> >> If it is feasible with such a template >> ("Contact" ?c "| %^{Name} | %^{tel} | %^{email} | %^{addr} |\n" >> "~/private.org" "Contacts") >> to add new contacts, it would be very nice to organize (e.g. sort) all >> the contacts based on org-table. > > One solution would be to use properties to store contact information: > > * Name > :PROPERTIES: > :NAME: A > :TEL: 12 > :EMAIL: a@a.com > :ADDR: somewhere > :END: > > It would be easy to set up a remember template to capture such > information. You could then sort all the headings in the contacts file > by property. And there are other advantages. You could view the > information in contact view or capture it (or a subset) in tables using > dblocks. You could add notes and additional metadata to each contact. > And you could access this data in other emacs modes by using org's > APIs. > > - (info "(org) Using the property API") > - (info "(org) Using the mapping API") > > HTH, > Matt > Yes, this is how I am doing now. I forgot the "column view" thing. :) BTW, how to sort the headings (names) by the properties? and what is dblocks? Are they mentioned in the manual?