Re: [O] Capturing to current file

2012-04-30 Thread Mike McLean

On Apr 29, 2012, at 4:59 AM, Bastien wrote:

> Hi Charles,
> 
> Charles  writes:
> 
>> If I may I'll throw in my 2 cents, since I made the error in the first place
>> 
>> Why not in Section 9.2.1 immediately before or after the "special way" for
>> using capture from the agenda?
>> 
>> The documentation reads as follows in org-capture.el at
>> 
>> (defun org-capture (&optional goto keys)
>>  "Capture something.
>> \\
>> 
>> .  .  .
>> 
>> When called with a `C-0' (zero) prefix, insert a template at point.
>> .  .  .
> 
> I added this in 9.1.2:
> 
> To insert the capture at point in an Org buffer, call @code{org-capture} with
> a @code{C-0} prefix argument.

Well thank you all for the discussion at least. I've been using Org Mode for 2+ 
years, didn't know this, and it is now my favorite “feature” :)


Re: [O] Capturing to current file

2012-04-29 Thread Bastien
Hi Charles,

Charles  writes:

> If I may I'll throw in my 2 cents, since I made the error in the first place
>
> Why not in Section 9.2.1 immediately before or after the "special way" for
> using capture from the agenda?
>
> The documentation reads as follows in org-capture.el at
>
> (defun org-capture (&optional goto keys)
>   "Capture something.
> \\
>
> .  .  .
>
> When called with a `C-0' (zero) prefix, insert a template at point.
>  .  .  .

I added this in 9.1.2:

To insert the capture at point in an Org buffer, call @code{org-capture} with
a @code{C-0} prefix argument.

Thanks for the suggestion!

-- 
 Bastien



Re: [O] Capturing to current file

2012-04-22 Thread Charles

Correction to my 4/20

The Org Manual section I suggest for the additional documentation is 
9.1.2, not 9.2.1


Charles Millar

On 4/20/2012 8:58 AM, Bastien wrote:

Hi Nick,

Nick Dokos  writes:


Charles  wrote:


I thought that the manual states to capture a TODO to the current file
use /C-0 (zero) then proceed with the capture. I use this frequently.

Am I missing something in the question?


Probably not - I just didn't know about this method. It's not quite a
capture (no indirect buffer, no finalize) but that hardly matters. And
perhaps it also does what Samuel Wales asked about, since the template
can be inserted anywhere at all.

BTW, I only found this with C-h f org-capture, not in the manual.

If there is a place in the manual that it should be documented, can
you please point at this place and suggest a change?

Thanks,






Re: [O] Capturing to current file

2012-04-20 Thread Charles

If I may I'll throw in my 2 cents, since I made the error in the first place

Why not in Section 9.2.1 immediately before or after the "special way" 
for using capture from the agenda?


The documentation reads as follows in org-capture.el at

(defun org-capture (&optional goto keys)
  "Capture something.
\\

.  .  .

When called with a `C-0' (zero) prefix, insert a template at point.
 .  .  .

On 4/20/2012 8:58 AM, Bastien wrote:

Hi Nick,

Nick Dokos  writes:


Charles  wrote:


I thought that the manual states to capture a TODO to the current file
use /C-0 (zero) then proceed with the capture. I use this frequently.

Am I missing something in the question?


Probably not - I just didn't know about this method. It's not quite a
capture (no indirect buffer, no finalize) but that hardly matters. And
perhaps it also does what Samuel Wales asked about, since the template
can be inserted anywhere at all.

BTW, I only found this with C-h f org-capture, not in the manual.

If there is a place in the manual that it should be documented, can
you please point at this place and suggest a change?

Thanks,






Re: [O] Capturing to current file

2012-04-20 Thread Bastien
Hi Nick,

Nick Dokos  writes:

> Charles  wrote:
>
>> I thought that the manual states to capture a TODO to the current file
>> use /C-0 (zero) then proceed with the capture. I use this frequently.
>> 
>> Am I missing something in the question?
>> 
>
> Probably not - I just didn't know about this method. It's not quite a
> capture (no indirect buffer, no finalize) but that hardly matters. And
> perhaps it also does what Samuel Wales asked about, since the template
> can be inserted anywhere at all.
>
> BTW, I only found this with C-h f org-capture, not in the manual.

If there is a place in the manual that it should be documented, can
you please point at this place and suggest a change?

Thanks,

-- 
 Bastien



Re: [O] Capturing to current file

2012-04-15 Thread Nick Dokos
Samuel Wales  wrote:

> The only thing it needs is to insert above the current headline if you
> are in body text.
> 

org-capture-insert-template-here won't do that by itself: it will insert
it *here*, but it's up to you to make sure that *here* is the right
place.

Nick






Re: [O] Capturing to current file

2012-04-14 Thread Samuel Wales
The only thing it needs is to insert above the current headline if you
are in body text.



Re: [O] Capturing to current file

2012-04-14 Thread Nick Dokos
Charles  wrote:

> I thought that the manual states to capture a TODO to the current file
> use /C-0 (zero) then proceed with the capture. I use this frequently.
> 
> Am I missing something in the question?
> 

Probably not - I just didn't know about this method. It's not quite a
capture (no indirect buffer, no finalize) but that hardly matters. And
perhaps it also does what Samuel Wales asked about, since the template
can be inserted anywhere at all.

BTW, I only found this with C-h f org-capture, not in the manual.

Thanks for the pointer,
Nick



Re: [O] Capturing to current file

2012-04-14 Thread Charles
I thought that the manual states to capture a TODO to the current file 
use /C-0 (zero) then proceed with the capture. I use this frequently.


Am I missing something in the question?

Charlie Millar

On 4/14/2012 7:04 PM, Nick Dokos wrote:

Nick Dokos  wrote:



I couldn't really tell what the OP requested,

... and then I noticed the Subject: header - d'oh...

Nick



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2411/4937 - Release Date: 04/14/12







Re: [O] Capturing to current file

2012-04-14 Thread Richard Riley
Nick Dokos  writes:

> Nick Dokos  wrote:
>
>> I couldn't really tell what the OP requested,
>
> ... and then I noticed the Subject: header - d'oh...
>
> Nick
>

;))





Re: [O] Capturing to current file

2012-04-14 Thread Marvin Doyley
Nick

This is indeed what I am looking for.

Thanks

M

Richard Riley  wrote:

>* Karl Voit  writes:*
>* *
>* > * Marvin Doyley  wrote:*
>* >> Hi there,*
>* >*
>* > Hi!*
>* >*
>* >> I am trying to create a thought bin related to a specific project*
>* >> (org-file, where I perform all my writing task).*
>* >> My idea is very simple,  if an idea, todo item related to the project*
>* >> i am working on,  which is usually the case, I would like to  file it*
>* >> under a specific heading within the same file rather than a master*
>* >> file.*
>* >>*
>* >> Any thoughts on how to do this ?*
>* >*
>* > Oh yes, take a look on http://orgmode.org/org.html#Capture-templates*
>* > where you can define target files for your item.*
>* *
>* Is it documented on how to achieve what the op requested? Namely to*
>* store the notes in the current file? Would that be a use for the*
>* function-finding-location?*
>* *

I couldn't really tell what the OP requested, but if it is indeed
storing the capture in the current file, the answer is "that can be
done".  AFAIK, it's not documented anywhere except on the mailing list
though - see

   http://thread.gmane.org/gmane.emacs.orgmode/35759/focus=35781

Something like this (untested):

(setq org-capture-templates
'(
  ("X" "test" entry (file+headline (buffer-file-name (org-capture-get
:original-buffer)) "Tasks") "* TODO %?
  %U %a %n" :prepend t)))

Nick


Re: [O] Capturing to current file

2012-04-14 Thread Nick Dokos
Samuel Wales  wrote:

> Can you capture to the header just above the current header?
> 

Not that I know of.

Nick



Re: [O] Capturing to current file

2012-04-14 Thread Nick Dokos
Nick Dokos  wrote:


> I couldn't really tell what the OP requested,

... and then I noticed the Subject: header - d'oh...

Nick



Re: [O] Capturing to current file

2012-04-14 Thread Samuel Wales
Can you capture to the header just above the current header?



Re: [O] Capturing to current file

2012-04-14 Thread Nick Dokos
Richard Riley  wrote:

> Karl Voit  writes:
> 
> > * Marvin Doyley  wrote:
> >> Hi there,
> >
> > Hi!
> >
> >> I am trying to create a thought bin related to a specific project
> >> (org-file, where I perform all my writing task).
> >> My idea is very simple,  if an idea, todo item related to the project
> >> i am working on,  which is usually the case, I would like to  file it
> >> under a specific heading within the same file rather than a master
> >> file.
> >>
> >> Any thoughts on how to do this ?
> >
> > Oh yes, take a look on http://orgmode.org/org.html#Capture-templates
> > where you can define target files for your item.
> 
> Is it documented on how to achieve what the op requested? Namely to
> store the notes in the current file? Would that be a use for the
> function-finding-location?
> 

I couldn't really tell what the OP requested, but if it is indeed
storing the capture in the current file, the answer is "that can be
done".  AFAIK, it's not documented anywhere except on the mailing list
though - see

   http://thread.gmane.org/gmane.emacs.orgmode/35759/focus=35781

Something like this (untested):

(setq org-capture-templates
'(   
  ("X" "test" entry (file+headline (buffer-file-name (org-capture-get 
:original-buffer)) "Tasks") "* TODO %?
  %U %a %n" :prepend t)))

Nick



Re: [O] Capturing to current file

2012-04-14 Thread Richard Riley
Karl Voit  writes:

> * Marvin Doyley  wrote:
>> Hi there,
>
> Hi!
>
>> I am trying to create a thought bin related to a specific project
>> (org-file, where I perform all my writing task).
>> My idea is very simple,  if an idea, todo item related to the project
>> i am working on,  which is usually the case, I would like to  file it
>> under a specific heading within the same file rather than a master
>> file.
>>
>> Any thoughts on how to do this ?
>
> Oh yes, take a look on http://orgmode.org/org.html#Capture-templates
> where you can define target files for your item.

Is it documented on how to achieve what the op requested? Namely to
store the notes in the current file? Would that be a use for the
function-finding-location?




Re: [O] Capturing to current file

2012-04-14 Thread Karl Voit
* Marvin Doyley  wrote:
> Hi there,

Hi!

> I am trying to create a thought bin related to a specific project
> (org-file, where I perform all my writing task).
> My idea is very simple,  if an idea, todo item related to the project
> i am working on,  which is usually the case, I would like to  file it
> under a specific heading within the same file rather than a master
> file.
>
> Any thoughts on how to do this ?

Oh yes, take a look on http://orgmode.org/org.html#Capture-templates
where you can define target files for your item.

-- 
Karl Voit




[O] Capturing to current file

2012-04-14 Thread Marvin Doyley
Hi there,

I am trying to create a thought bin related to a specific project
(org-file, where I perform all my writing task).
My idea is very simple,  if an idea, todo item related to the project
i am working on,  which is usually the case, I would like to  file it
under a specific heading within the same file rather than a master
file.

Any thoughts on how to do this ?

Thanks
M