all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Insert link to recently captured Note?
@ 2010-10-13  6:29 Nathan Neff
  2010-10-13  6:38 ` Nathan Neff
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Neff @ 2010-10-13  6:29 UTC (permalink / raw)
  To: emacs-orgmode

I'd like to ask the mailing list how they handle the following situation:

I'm clocked into FOO below, then spend about 20 minutes on something
that's somewhat
related to FOO, but is not really a direct sub-task of FOO, so I
probably want to refile it later.

So, I open org-capture and create some notes about * BAR, and file it away.

Now, I'm back in * FOO and want to quickly put a note about * BAR in
my FOO task.

So, ideally my structure would look like this:
---------------------- some file ----------------------------
* FOO
Got caught up with [[link to * BAR]]
-------------------------- notes.org ------------------------
* BAR
blew 30 minutes on this problem.
I might file this headline somewhere, but I want to be able to link from * FOO
to this new note


I've found variables like org-capture-bookmark-last-stored-position,
but I think that it
contains just the filename (like notes.org).  What I probably need is
a way to create an ID
for the newly captured heading, and then store a link to it on the
clipboard or something.

Does anyone else have a need for this, or do this in their everyday work?
I know there's ways to create a link from * BAR (the new note) to *
FOO (the origin/context)
but I want an easy way to insert a link to * FOO to * BAR.  Also, the
link needs to work no matter
where I file * BAR later on, so I presume that a unique ID needs to be
created for * BAR
when I capture it.

Thanks for any advice,
--Nate

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

* Re: Insert link to recently captured Note?
  2010-10-13  6:29 Insert link to recently captured Note? Nathan Neff
@ 2010-10-13  6:38 ` Nathan Neff
  2010-10-14 11:28   ` Bernt Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Neff @ 2010-10-13  6:38 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Oct 13, 2010 at 1:29 AM, Nathan Neff <nathan.neff@gmail.com> wrote:
> I'd like to ask the mailing list how they handle the following situation:
>
> I'm clocked into FOO below, then spend about 20 minutes on something
> that's somewhat
> related to FOO, but is not really a direct sub-task of FOO, so I
> probably want to refile it later.
>
> So, I open org-capture and create some notes about * BAR, and file it away.
>
> Now, I'm back in * FOO and want to quickly put a note about * BAR in
> my FOO task.
>
> So, ideally my structure would look like this:
> ---------------------- some file ----------------------------
> * FOO
> Got caught up with [[link to * BAR]]
> -------------------------- notes.org ------------------------
> * BAR
> blew 30 minutes on this problem.
> I might file this headline somewhere, but I want to be able to link from * FOO
> to this new note
>
>
> I've found variables like org-capture-bookmark-last-stored-position,
> but I think that it
> contains just the filename (like notes.org).  What I probably need is
> a way to create an ID
> for the newly captured heading, and then store a link to it on the
> clipboard or something.

Okay, I found out how to do create a unique ID, by defining a template
like this:

org-capture-templates '(("t" "Task" entry (file "~/todo.txt")
                         "* foo\n :PROPERTIES:\n  ID:
%(shell-command-to-string \"uuidgen\")  :END:")
                        )

Now, I just need a way to quickly insert a link to this newly created ID.

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

* Re: Insert link to recently captured Note?
  2010-10-13  6:38 ` Nathan Neff
@ 2010-10-14 11:28   ` Bernt Hansen
  0 siblings, 0 replies; 3+ messages in thread
From: Bernt Hansen @ 2010-10-14 11:28 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

Nathan Neff <nathan.neff@gmail.com> writes:

> On Wed, Oct 13, 2010 at 1:29 AM, Nathan Neff <nathan.neff@gmail.com> wrote:
>> I'd like to ask the mailing list how they handle the following situation:
>>
>> I'm clocked into FOO below, then spend about 20 minutes on something
>> that's somewhat
>> related to FOO, but is not really a direct sub-task of FOO, so I
>> probably want to refile it later.
>>
>> So, I open org-capture and create some notes about * BAR, and file it away.
>>
>> Now, I'm back in * FOO and want to quickly put a note about * BAR in
>> my FOO task.
>>
>> So, ideally my structure would look like this:
>> ---------------------- some file ----------------------------
>> * FOO
>> Got caught up with [[link to * BAR]]
>> -------------------------- notes.org ------------------------
>> * BAR
>> blew 30 minutes on this problem.
>> I might file this headline somewhere, but I want to be able to link from * FOO
>> to this new note
>>
>>
>> I've found variables like org-capture-bookmark-last-stored-position,
>> but I think that it
>> contains just the filename (like notes.org).  What I probably need is
>> a way to create an ID
>> for the newly captured heading, and then store a link to it on the
>> clipboard or something.
>
> Okay, I found out how to do create a unique ID, by defining a template
> like this:
>
> org-capture-templates '(("t" "Task" entry (file "~/todo.txt")
>                          "* foo\n :PROPERTIES:\n  ID:
> %(shell-command-to-string \"uuidgen\")  :END:")
>                         )
>
> Now, I just need a way to quickly insert a link to this newly created ID.

Hi Nathan,

If you just visit BAR, do C-c l to copy a link this creates an unique ID
in BAR which the link uses (assuming you have org-id enabled in your
org-modules)

Then visit FOO and insert the link with C-c C-l and you're done.

HTH,
Bernt

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

end of thread, other threads:[~2010-10-14 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13  6:29 Insert link to recently captured Note? Nathan Neff
2010-10-13  6:38 ` Nathan Neff
2010-10-14 11:28   ` Bernt Hansen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.