emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Insert link to recently captured Note?
Date: Wed, 13 Oct 2010 01:38:41 -0500	[thread overview]
Message-ID: <AANLkTi=P5zQfmEe2UwFQhtWo8-WRD1U231Do+RrC0djC@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikdw1EH-xejLTvozyDsvgXpnhaOJtFC0rYVTG+6@mail.gmail.com>

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.

  reply	other threads:[~2010-10-13  6:38 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 [this message]
2010-10-14 11:28   ` Bernt Hansen

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='AANLkTi=P5zQfmEe2UwFQhtWo8-WRD1U231Do+RrC0djC@mail.gmail.com' \
    --to=nathan.neff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).