emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capturing to current file
@ 2012-04-14 18:27 Marvin Doyley
  2012-04-14 18:32 ` Karl Voit
  0 siblings, 1 reply; 18+ messages in thread
From: Marvin Doyley @ 2012-04-14 18:27 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

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

* Re: Capturing to current file
  2012-04-14 18:27 Marvin Doyley
@ 2012-04-14 18:32 ` Karl Voit
  2012-04-14 21:44   ` Richard Riley
  0 siblings, 1 reply; 18+ messages in thread
From: Karl Voit @ 2012-04-14 18:32 UTC (permalink / raw)
  To: emacs-orgmode

* Marvin Doyley <marvinpas@gmail.com> 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

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

* Re: Capturing to current file
  2012-04-14 18:32 ` Karl Voit
@ 2012-04-14 21:44   ` Richard Riley
       [not found]     ` <rileyrg@gmail.com>
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Riley @ 2012-04-14 21:44 UTC (permalink / raw)
  To: emacs-orgmode

Karl Voit <devnull@Karl-Voit.at> writes:

> * Marvin Doyley <marvinpas@gmail.com> 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?

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

* Re: Capturing to current file
       [not found]     ` <rileyrg@gmail.com>
@ 2012-04-14 22:45       ` Nick Dokos
  2012-04-14 23:02         ` Samuel Wales
  2012-04-14 23:04         ` Nick Dokos
  0 siblings, 2 replies; 18+ messages in thread
From: Nick Dokos @ 2012-04-14 22:45 UTC (permalink / raw)
  To: emacs-orgmode

Richard Riley <rileyrg@gmail.com> wrote:

> Karl Voit <devnull@Karl-Voit.at> writes:
> 
> > * Marvin Doyley <marvinpas@gmail.com> 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

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

* Re: Capturing to current file
  2012-04-14 22:45       ` Nick Dokos
@ 2012-04-14 23:02         ` Samuel Wales
  2012-04-14 23:05           ` Nick Dokos
  2012-04-14 23:04         ` Nick Dokos
  1 sibling, 1 reply; 18+ messages in thread
From: Samuel Wales @ 2012-04-14 23:02 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

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

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

* Re: Capturing to current file
  2012-04-14 22:45       ` Nick Dokos
  2012-04-14 23:02         ` Samuel Wales
@ 2012-04-14 23:04         ` Nick Dokos
  2012-04-14 23:21           ` Richard Riley
  2012-04-15  1:18           ` Charles
  1 sibling, 2 replies; 18+ messages in thread
From: Nick Dokos @ 2012-04-14 23:04 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> wrote:


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

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

Nick

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

* Re: Capturing to current file
  2012-04-14 23:02         ` Samuel Wales
@ 2012-04-14 23:05           ` Nick Dokos
  0 siblings, 0 replies; 18+ messages in thread
From: Nick Dokos @ 2012-04-14 23:05 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@gmail.com> wrote:

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

Not that I know of.

Nick

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

* Re: Capturing to current file
@ 2012-04-14 23:13 Marvin Doyley
  0 siblings, 0 replies; 18+ messages in thread
From: Marvin Doyley @ 2012-04-14 23:13 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: nicholas.dokos

[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]

Nick

This is indeed what I am looking for.

Thanks

M

Richard Riley <address@hidden> wrote:

>* Karl Voit <address@hidden> writes:*
>* *
>* > * Marvin Doyley <address@hidden> 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

[-- Attachment #2: Type: text/html, Size: 2065 bytes --]

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

* Re: Capturing to current file
  2012-04-14 23:04         ` Nick Dokos
@ 2012-04-14 23:21           ` Richard Riley
  2012-04-15  1:18           ` Charles
  1 sibling, 0 replies; 18+ messages in thread
From: Richard Riley @ 2012-04-14 23:21 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> writes:

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

;))

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

* Re: Capturing to current file
  2012-04-14 23:04         ` Nick Dokos
  2012-04-14 23:21           ` Richard Riley
@ 2012-04-15  1:18           ` Charles
  2012-04-15  2:33             ` Nick Dokos
  1 sibling, 1 reply; 18+ messages in thread
From: Charles @ 2012-04-15  1:18 UTC (permalink / raw)
  To: emacs-orgmode

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<nicholas.dokos@hp.com>  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
>
>

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

* Re: Capturing to current file
  2012-04-15  1:18           ` Charles
@ 2012-04-15  2:33             ` Nick Dokos
  2012-04-15  2:49               ` Samuel Wales
  2012-04-20 12:58               ` Bastien
  0 siblings, 2 replies; 18+ messages in thread
From: Nick Dokos @ 2012-04-15  2:33 UTC (permalink / raw)
  To: Charles; +Cc: emacs-orgmode

Charles <millarc@verizon.net> 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

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

* Re: Capturing to current file
  2012-04-15  2:33             ` Nick Dokos
@ 2012-04-15  2:49               ` Samuel Wales
  2012-04-15 13:52                 ` Nick Dokos
  2012-04-20 12:58               ` Bastien
  1 sibling, 1 reply; 18+ messages in thread
From: Samuel Wales @ 2012-04-15  2:49 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode, Charles

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

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

* Re: Capturing to current file
  2012-04-15  2:49               ` Samuel Wales
@ 2012-04-15 13:52                 ` Nick Dokos
  0 siblings, 0 replies; 18+ messages in thread
From: Nick Dokos @ 2012-04-15 13:52 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode, Charles

Samuel Wales <samologist@gmail.com> 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

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

* Re: Capturing to current file
  2012-04-15  2:33             ` Nick Dokos
  2012-04-15  2:49               ` Samuel Wales
@ 2012-04-20 12:58               ` Bastien
  2012-04-20 19:44                 ` Charles
  2012-04-22 13:14                 ` Charles
  1 sibling, 2 replies; 18+ messages in thread
From: Bastien @ 2012-04-20 12:58 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode, Charles

Hi Nick,

Nick Dokos <nicholas.dokos@hp.com> writes:

> Charles <millarc@verizon.net> 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

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

* Re: Capturing to current file
  2012-04-20 12:58               ` Bastien
@ 2012-04-20 19:44                 ` Charles
  2012-04-29  8:59                   ` Bastien
  2012-04-22 13:14                 ` Charles
  1 sibling, 1 reply; 18+ messages in thread
From: Charles @ 2012-04-20 19:44 UTC (permalink / raw)
  To: emacs-orgmode

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.
\\<org-capture-mode-map>

.  .  .

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<nicholas.dokos@hp.com>  writes:
>
>> Charles<millarc@verizon.net>  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,
>

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

* Re: Capturing to current file
  2012-04-20 12:58               ` Bastien
  2012-04-20 19:44                 ` Charles
@ 2012-04-22 13:14                 ` Charles
  1 sibling, 0 replies; 18+ messages in thread
From: Charles @ 2012-04-22 13:14 UTC (permalink / raw)
  To: emacs-orgmode

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<nicholas.dokos@hp.com>  writes:
>
>> Charles<millarc@verizon.net>  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,
>

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

* Re: Capturing to current file
  2012-04-20 19:44                 ` Charles
@ 2012-04-29  8:59                   ` Bastien
  2012-05-01  2:54                     ` Mike McLean
  0 siblings, 1 reply; 18+ messages in thread
From: Bastien @ 2012-04-29  8:59 UTC (permalink / raw)
  To: Charles; +Cc: emacs-orgmode

Hi Charles,

Charles <millarc@verizon.net> 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.
> \\<org-capture-mode-map>
>
> .  .  .
>
> 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

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

* Re: Capturing to current file
  2012-04-29  8:59                   ` Bastien
@ 2012-05-01  2:54                     ` Mike McLean
  0 siblings, 0 replies; 18+ messages in thread
From: Mike McLean @ 2012-05-01  2:54 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Charles


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

> Hi Charles,
> 
> Charles <millarc@verizon.net> 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.
>> \\<org-capture-mode-map>
>> 
>> .  .  .
>> 
>> 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” :)

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

end of thread, other threads:[~2012-05-01  2:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-14 23:13 Capturing to current file Marvin Doyley
  -- strict thread matches above, loose matches on Subject: below --
2012-04-14 18:27 Marvin Doyley
2012-04-14 18:32 ` Karl Voit
2012-04-14 21:44   ` Richard Riley
     [not found]     ` <rileyrg@gmail.com>
2012-04-14 22:45       ` Nick Dokos
2012-04-14 23:02         ` Samuel Wales
2012-04-14 23:05           ` Nick Dokos
2012-04-14 23:04         ` Nick Dokos
2012-04-14 23:21           ` Richard Riley
2012-04-15  1:18           ` Charles
2012-04-15  2:33             ` Nick Dokos
2012-04-15  2:49               ` Samuel Wales
2012-04-15 13:52                 ` Nick Dokos
2012-04-20 12:58               ` Bastien
2012-04-20 19:44                 ` Charles
2012-04-29  8:59                   ` Bastien
2012-05-01  2:54                     ` Mike McLean
2012-04-22 13:14                 ` Charles

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