From: Peter Davis <pfd@pfdstudio.com>
To: emacs-orgmode@gnu.org
Subject: Re: Importing from Oddmuse?
Date: Mon, 28 Oct 2013 14:27:44 -0400 [thread overview]
Message-ID: <526EACA0.3070709@pfdstudio.com> (raw)
In-Reply-To: <87y55dqn7s.fsf@Rainer.invalid>
[-- Attachment #1: Type: text/plain, Size: 649 bytes --]
On 10/28/13, 2:12 PM, Achim Gratz wrote:
> Peter Davis writes:
>> # hyperlinks
>> s/\[\[([^]]*)\]\]/[[file:$1.org][$1]]/g;
> Try this to fix the links maybe:
>
> # hyperlinks
> s/\[\[([^]]*)\]\]/
> my $l = $1;
> $l =~ s: :_:g;
> "[[file:$l.org][$l]]"/gex;
Excellent! I modified it slightly to keep the spaces in the display string:
# hyperlinks
s/\[\[([^]]*)\]\]/
my $l = $1;
my $orig = $1;
$l =~ s: :_:g;
"[[file:$l.org][$orig]]"/gex;
Thanks, Achim!
-pd
--
----
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com
[-- Attachment #2: Type: text/html, Size: 1762 bytes --]
next prev parent reply other threads:[~2013-10-28 18:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-25 14:54 Importing from Oddmuse? Peter Davis
2013-10-28 15:01 ` Peter Davis
2013-10-28 18:12 ` Achim Gratz
2013-10-28 18:27 ` Peter Davis [this message]
2013-10-28 19:18 ` Achim Gratz
2013-10-28 19:35 ` Peter Davis
2013-10-28 20:26 ` Achim Gratz
2013-10-28 20:33 ` Peter Davis
2013-10-30 21:08 ` Jambunathan K
2013-10-30 22:44 ` Peter Davis
2013-10-31 6:18 ` Marcin Borkowski
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=526EACA0.3070709@pfdstudio.com \
--to=pfd@pfdstudio.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.