From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Fwd: differnace between org-id and internal links Date: Fri, 28 Feb 2014 17:59:16 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2903c1ed37a04f37985e1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJPqK-0006Zb-7E for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 10:59:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJPqI-0000no-VA for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 10:59:20 -0500 Received: from mail-oa0-x22b.google.com ([2607:f8b0:4003:c02::22b]:64552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJPqI-0000nO-Q7 for emacs-orgmode@gnu.org; Fri, 28 Feb 2014 10:59:18 -0500 Received: by mail-oa0-f43.google.com with SMTP id g12so4215469oah.16 for ; Fri, 28 Feb 2014 07:59:16 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org mode --001a11c2903c1ed37a04f37985e1 Content-Type: text/plain; charset=ISO-8859-1 Gotcha thx. a related question. can i map a command to open a specific header then (an org-id) one to a keybind? thx Z On Tue, Feb 25, 2014 at 9:24 PM, Oleh wrote: > > Hya all. i cant understand what the advantages of org-id links over > internal > > ones? > > in both cases it uses a fixed path right? its not like if i move my org > > files to another PC with different paths then the links will all work? > whats > > the use case scenario to use org-id over internal links? > > > > As far as I understand, id links are unique, so you can have multiple > headings with same name, and move them about as much you like within > current file > or multiple files. You can't do that with plain links which are *very* > inflexible > and become stale fast. > > Your scenario with another PC should also work, as org will search for > the needed id > across all known org files. So as long as the file you move across > different PCs > is in the search path, the links will still work. > > regards, > Oleh > --001a11c2903c1ed37a04f37985e1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Gotcha
thx. a related question. can i map a command to open a spec= ific header then (an org-id) one to a keybind?

thx=

Z


On Tue, Feb 25, 2014 at 9:24 PM, Oleh <ohwoeowho@gmail.com> wrote:
> Hya all. i cant understand what the advantages of org-id lin= ks over internal
> ones?
> in both cases it uses a fixed path right? its not like if i move my or= g
> files to another PC with different paths then the links will all work?= whats
> the use case scenario to use org-id =A0over internal links?
>

As far as I understand, id links are unique, so you can have mu= ltiple
headings with same name, and move them about as much you like within
current file
or multiple files. You can't do that with plain links which are *very*<= br> inflexible
and become stale fast.

Your scenario with another PC should also work, as org will search for
the needed id
across all known org files. So as long as the file you move across differen= t PCs
is in the search path, the links will still work.

regards,
Oleh


--001a11c2903c1ed37a04f37985e1--