[O] Can org-capture-templates be made more flexible?

2013-10-13 Thread Leo Liu
Hi there, I use https://github.com/leoliu/applescripts/blob/master/Notes.el to pull notes from Notes.app on OS X into an org buffer. Naturally I also want to hook something into org-capture to create new notes. However, it seems org-capture-templates requires a file-location of some sort, which i

Re: [O] Can org-capture-templates be made more flexible?

2013-10-13 Thread Suvayu Ali
On Sun, Oct 13, 2013 at 05:59:38PM +0800, Leo Liu wrote: > Hi there, > > I use https://github.com/leoliu/applescripts/blob/master/Notes.el to > pull notes from Notes.app on OS X into an org buffer. > > Naturally I also want to hook something into org-capture to create new > notes. However, it see

Re: [O] Can org-capture-templates be made more flexible?

2013-10-13 Thread Leo Liu
On 2013-10-13 18:17 +0800, Suvayu Ali wrote: > How about using a dummy file? It's a workaround which I want to avoid if possible. Thus me asking here. Leo

Re: [O] Can org-capture-templates be made more flexible?

2013-11-06 Thread Bastien
Hi Leo, Leo Liu writes: > I use https://github.com/leoliu/applescripts/blob/master/Notes.el to > pull notes from Notes.app on OS X into an org buffer. > > Naturally I also want to hook something into org-capture to create new > notes. However, it seems org-capture-templates requires a file-locat

Re: [O] Can org-capture-templates be made more flexible?

2013-11-06 Thread Leo Liu
On 2013-11-06 16:15 +0800, Bastien wrote: > I'm not sure I understand your use-case clearly: you need to invoke > org-capture with no target file? > > Thanks for further explanations Exactly. I need the ability to send the org buffer created by capture to the Notes.app directly. The Notes.app hand

Re: [O] Can org-capture-templates be made more flexible?

2013-11-06 Thread Bastien
Hi Leo, Leo Liu writes: > On 2013-11-06 16:15 +0800, Bastien wrote: >> I'm not sure I understand your use-case clearly: you need to invoke >> org-capture with no target file? >> >> Thanks for further explanations > > Exactly. I need the ability to send the org buffer created by capture to > the

Re: [O] Can org-capture-templates be made more flexible?

2013-11-06 Thread Leo Liu
On 2013-11-07 00:25 +0800, Bastien wrote: > In that case, using a target like (function ...) could do -- did you > try this? thanks for the pointer. I glanced at this option while reading the org-capture-templates' doc. >From org-capture-set-target-location: ((eq (car target) 'function) (

Re: [O] Can org-capture-templates be made more flexible?

2013-11-07 Thread Bastien
Leo Liu writes: > and org-capture-finalize calls save-buffer I think this option requires > a file still. Mhhh, yes, it does. Maybe one can hack something to "send" a subtree to an external program. That way you can first capture it, then send it. -- Bastien