emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Jacob Gerlach <jacobgerlach@gmail.com>
Cc: Leo Ufimtsev <lufimtse@redhat.com>, Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Internal Links with Spaces
Date: Mon, 09 Mar 2015 19:28:41 -0400	[thread overview]
Message-ID: <m2wq2p92dy.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <CAA6UvuEumP2-VsSTFvzW557sT=D2+QHhKZY1_eVQKXdh=6ZB_Q@mail.gmail.com>

I think you need to set

(setq org-id-link-to-org-use-id 'create-if-interactive)

Then the usual C-c l and C-c C-l should work to store links and insert
them.

It might be worth noting though, that in my experience, this is most
useful for links within a file, or to files in your agenda list. org does not
have a good way to find an id in a non-agenda file if that file is not
already open. Although there should be a .org-id-locations file
somewhere that stores this mapping of id to file. I have not experienced
100% success with this.

Also, you have to be a little cautious about copying a headline to
another place, because then you have two ids in different places.

anyway, the point is try it out and see if it works for you ;)

Jacob Gerlach writes:

> On Mon, Mar 9, 2015 at 10:38 AM, Leo Ufimtsev <lufimtse@redhat.com> wrote:
>> On the side, if of any help:
>>
>> I generally use ID's for linking to headings.
>> The benefit is that headings can be re-named safley and links still work.
>
> A great suggestion. I wasn't aware of the feature, and renaming safety
> is a great benefit while also solving my space problem.
>
> I don't suppose there's a trick to automatically update descriptions
> for links whose target has been renamed?
>
> When exploring this, I found the function org-id-store-link. This
> seemed like what I wanted - it creates a custom ID if one doesn't
> exist, but it doesn't actually store a link (or at least, it wasn't
> available when I then ran org-insert-link). The docstring is pretty
> light, but it seems like this might be a bug. Is this the expected
> behavior?
>
> Thanks for the pointer in any case.
>
> Regards,
> Jake

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

  reply	other threads:[~2015-03-09 23:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-09 13:05 Internal Links with Spaces Jacob Gerlach
2015-03-09 14:38 ` Leo Ufimtsev
2015-03-09 20:50   ` Jacob Gerlach
2015-03-09 23:28     ` John Kitchin [this message]
     [not found]       ` <CAA6UvuEG_9b0+b=boXMSsi+8yZWZORBkMAfgKj+9rhPpuevsgQ@mail.gmail.com>
2015-03-10 14:30         ` John Kitchin
2015-03-10 14:39       ` Jacob Gerlach
     [not found]         ` <m2egowj0h7.fsf@andrew.cmu.edu>
2015-03-10 19:47           ` Jacob Gerlach

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=m2wq2p92dy.fsf@andrew.cmu.edu \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=jacobgerlach@gmail.com \
    --cc=lufimtse@redhat.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).