emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-contact Export
@ 2014-07-26  3:10 Esben Stien
  2014-07-26  4:44 ` Daimrod
  0 siblings, 1 reply; 4+ messages in thread
From: Esben Stien @ 2014-07-26  3:10 UTC (permalink / raw)
  To: emacs-orgmode

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?

-- 
Esben Stien is b0ef@e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef@   e     e 
           jid:b0ef@    n     n

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-contact Export
  2014-07-26  3:10 org-contact Export Esben Stien
@ 2014-07-26  4:44 ` Daimrod
  2014-07-28 20:43   ` Esben Stien
  0 siblings, 1 reply; 4+ messages in thread
From: Daimrod @ 2014-07-26  4:44 UTC (permalink / raw)
  To: emacs-orgmode

Esben Stien <b0ef@esben-stien.name> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-contact Export
  2014-07-26  4:44 ` Daimrod
@ 2014-07-28 20:43   ` Esben Stien
  2014-07-28 23:40     ` Daimrod
  0 siblings, 1 reply; 4+ messages in thread
From: Esben Stien @ 2014-07-28 20:43 UTC (permalink / raw)
  To: emacs-orgmode

Daimrod <daimrod@gmail.com> writes:

> 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.

This is in git?

> 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.

How about export to kill-ring?

-- 
Esben Stien is b0ef@e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef@   e     e 
           jid:b0ef@    n     n

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-contact Export
  2014-07-28 20:43   ` Esben Stien
@ 2014-07-28 23:40     ` Daimrod
  0 siblings, 0 replies; 4+ messages in thread
From: Daimrod @ 2014-07-28 23:40 UTC (permalink / raw)
  To: emacs-orgmode

Esben Stien <b0ef@esben-stien.name> writes:

> Daimrod <daimrod@gmail.com> writes:
>
>> 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.
>
> This is in git?
Yes.

>> 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.
>
> How about export to kill-ring?

Do you mean in the kill-ring instead of the buffer? or with another
prefix level (C-u C-u C-u C-u)?

-- 
Daimrod/Greg

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-28 23:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26  3:10 org-contact Export Esben Stien
2014-07-26  4:44 ` Daimrod
2014-07-28 20:43   ` Esben Stien
2014-07-28 23:40     ` Daimrod

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).