emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <maus.david@gmail.com>
To: erwinpanen@fastmail.fm
Cc: emacs-orgmode@gnu.org
Subject: Re: file link format question - How to format link when square brackets [ ] are already in filename?
Date: Tue, 02 Feb 2010 17:57:02 +0100	[thread overview]
Message-ID: <877hqvfue9.wl%maus.david@gmail.com> (raw)
In-Reply-To: <4B680377.30601@fastmail.fm>

At Tue, 02 Feb 2010 11:50:31 +0100,
Erwin Panen wrote:
> 
> Hi everyone,
> 
> I guess this is a minor question, but it has puzzled me already more 
> than once.
> My example: The below example is normally all on one line.
> ---------------Begin code----------------------------------------------
> ** Action: started to play video 
> [[\\Dcerouter\public\videos\STORY_Station (sdb1)-CORE [32]\Les Rivières 
> Pourpres 720x304\The Crimson Rivers.mkv][The Crimson Rivers.mkv]]
> ---------------End code------------------------------------------------
> 
> The problem is that the file location already contains a number between 
> square brackets [32] which renders Org to treat the link in an 
> unsuspected way.
> 
> Is there any way to circumvent this behaviour e.g. by inserting special 
> characters to avoid Org to look inbetween the special characters?

You can url-encode the square brackets with %5B ("[") and %5D ("]") --
orgmode does this when calling `org-store-link' (C-c l) for a place
that contains square brackets and opens the links fine.

HTH
 -- David

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... maus.david@gmail.com

  reply	other threads:[~2010-02-02 16:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-02 10:50 file link format question - How to format link when square brackets [ ] are already in filename? Erwin Panen
2010-02-02 16:57 ` David Maus [this message]
2010-02-02 19:43   ` Erwin Panen
2010-02-02 20:38     ` David Maus
2010-02-02 20:46       ` Erwin Panen

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=877hqvfue9.wl%maus.david@gmail.com \
    --to=maus.david@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=erwinpanen@fastmail.fm \
    /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).