From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: org-contact Export Date: Sat, 26 Jul 2014 13:44:03 +0900 Message-ID: <87k370lofg.fsf@tanger.home> References: <871tt8u85e.fsf@quasar.esben-stien.name> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAtqB-0000OS-88 for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 00:44:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAtq5-0002p3-9M for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 00:44:15 -0400 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:61003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAtq5-0002ou-2J for emacs-orgmode@gnu.org; Sat, 26 Jul 2014 00:44:09 -0400 Received: by mail-pd0-f174.google.com with SMTP id fp1so6721882pdb.19 for ; Fri, 25 Jul 2014 21:44:08 -0700 (PDT) In-Reply-To: <871tt8u85e.fsf@quasar.esben-stien.name> (Esben Stien's message of "Sat, 26 Jul 2014 05:10:53 +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 Esben Stien writes: Hello Esben, > Is there any way to retrieve a single org-contact as CSV or maybe a VCF > file? > > I know I can export all of them, but is there a function to get just the > one under point? It wasn't possible, but it is now. I've slightly modified `org-contacts-export-as-vcard' so that it will prompt for a user name when called with a prefix argument. The new function's behovior when called interactively is the following: 1. no prefix : do as before, export all contacts to `org-contacts-vcard-file'. 2. C-u : prompt for a contact name and use the contact at point if it exists, then export the matching contacts to `org-contacts-vcard-file'. 3. C-u C-u : same as 2. but prompt for a file name where to export instead of `org-contacts-vcard-file'. 4. C-u C-u C-u : same as 3. but prompt for a buffer name instead of a file name. When the function isn't called interactively it behaves as it did before. WDYT? Best, -- Daimrod/Greg