emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Nathan Neff <nathan.neff@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Insert link to recently captured Note?
Date: Thu, 14 Oct 2010 07:28:12 -0400	[thread overview]
Message-ID: <871v7tt3n7.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <AANLkTi=P5zQfmEe2UwFQhtWo8-WRD1U231Do+RrC0djC@mail.gmail.com> (Nathan Neff's message of "Wed, 13 Oct 2010 01:38:41 -0500")

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

      reply	other threads:[~2010-10-14 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871v7tt3n7.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=nathan.neff@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).