emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Daniel Dehennin <daniel.dehennin@baby-gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Search links in a list of files
Date: Mon, 12 Dec 2011 19:59:30 -0500	[thread overview]
Message-ID: <87d3btl219.fsf@norang.ca> (raw)
In-Reply-To: <871us9pnw6.fsf@hati.baby-gnu.org> (Daniel Dehennin's message of "Mon, 12 Dec 2011 20:53:45 +0100")

Daniel Dehennin <daniel.dehennin@baby-gnu.org> writes:

> As I want to write some documentation with org-mode, I'm looking for a
> way to manage an list of files in which org-mode will look for links, or
> better, a list or directory to scan.
>
> For example:
>
> - in file1.org, I link something like
>   [[file:file2.org::#some-point][some point in some file]]
>
> - in file2.org I have a property "CUSTOM_ID: some-point" somewhere.
>
> If I reorganize my documentation and move file2.org in some
> subdirectory, like examples/file2.org, I would like to avoid changing
> all the references to "file2::#some-point".
>
> Maybe a link like [[search:PATH::SOMETHING]], with SOMETHING like in
> search-options[1].
>
> We could define a per-org file PATH, with something like
> "#+LINK_SEARCH_PATH: path1, path2, ..."
>  
> Any idea about this issue?

Use global id's - then if you move headings around the links still work.

See org-id.el for more info

Regards,
Bernt

      reply	other threads:[~2011-12-13  0:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-12 19:53 Search links in a list of files Daniel Dehennin
2011-12-13  0:59 ` 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=87d3btl219.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=daniel.dehennin@baby-gnu.org \
    --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).