* Directory Links (and a bug?)
@ 2010-09-07 19:35 Achim Gratz
2010-09-07 22:18 ` Noorul Islam
0 siblings, 1 reply; 3+ messages in thread
From: Achim Gratz @ 2010-09-07 19:35 UTC (permalink / raw)
To: emacs-orgmode
Making a directory link like this: [[file://bla/fasel/]] will open that
folder in explorer on Windows at work, which is nice since I can just
keep a bunch of those in my notes.org file and fire them up whenever I
need to (the history in Explorer is never that helpful). I have since
learned that there's a special form to make that link open in EMACS
[[file+emacs://bla/fasel/]] and that fires up dired. Or, if I had set
up org-mode so that file:-links would open inside EMACS, I could use
[[file+sys://bla/fasel/]] to force the link to open in an external
application. So far so good... what I'd want in addition is to have the
link open in dired with wildcard patterns (giving a file name that
doesn't exist or looks like a directory gets me into dired, but doesn't
give it the "file" part as a wildcard argument) or alternatively
directly into vc-dir like [[file+dired://bla/fasel/*.org]] and
[[file+vc-dir://bla/fasel/]]. Whatever the part after the "+", the
links should be exported like normal file: links.
The link abbrevs don't really work for this as they are supposed to
return a string and not go off into another buffer (it does sort-of
work, but I suspect it breaks exporting etc.). An elisp link works, but
gets me a Yes/no question and shows up verbatim in export, not as link.
The +sys/+emacs links (and some abbrevs) export as file:-links with the
complete link-syntax appended as anchor (like
file:///bla/fasel/#file+emacs://bla/fasel/ - this works, but that looks
like a bug to me or an accidental feature at least).
Now, looking into the code I see that there's a lot of special casing
going on and no obvious hooks to tap into and that I don't really
understand what's going on... If anybody could shed light on how this
is all supposed to work "under the hood" and how some extra link methods
would need to be implemented, please discuss.
Achim.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Directory Links (and a bug?)
2010-09-07 19:35 Directory Links (and a bug?) Achim Gratz
@ 2010-09-07 22:18 ` Noorul Islam
2010-09-08 15:51 ` Achim Gratz
0 siblings, 1 reply; 3+ messages in thread
From: Noorul Islam @ 2010-09-07 22:18 UTC (permalink / raw)
To: Achim Gratz; +Cc: emacs-orgmode
On Wed, Sep 8, 2010 at 1:05 AM, Achim Gratz <Stromeko@nexgo.de> wrote:
> Making a directory link like this: [[file://bla/fasel/]] will open that
> folder in explorer on Windows at work, which is nice since I can just
> keep a bunch of those in my notes.org file and fire them up whenever I
> need to (the history in Explorer is never that helpful). I have since
> learned that there's a special form to make that link open in EMACS
> [[file+emacs://bla/fasel/]] and that fires up dired. Or, if I had set
> up org-mode so that file:-links would open inside EMACS, I could use
> [[file+sys://bla/fasel/]] to force the link to open in an external
> application. So far so good... what I'd want in addition is to have the
> link open in dired with wildcard patterns (giving a file name that
> doesn't exist or looks like a directory gets me into dired, but doesn't
> give it the "file" part as a wildcard argument) or alternatively
> directly into vc-dir like [[file+dired://bla/fasel/*.org]] and
Wildcards on links looks strange.
> [[file+vc-dir://bla/fasel/]]. Whatever the part after the "+", the
> links should be exported like normal file: links.
>
> The link abbrevs don't really work for this as they are supposed to
> return a string and not go off into another buffer (it does sort-of
> work, but I suspect it breaks exporting etc.). An elisp link works, but
> gets me a Yes/no question and shows up verbatim in export, not as link.
> The +sys/+emacs links (and some abbrevs) export as file:-links with the
> complete link-syntax appended as anchor (like
> file:///bla/fasel/#file+emacs://bla/fasel/ - this works, but that looks
> like a bug to me or an accidental feature at least).
>
For me all these three gets exported as file:///tmp
Another link [[file+sys:///tmp][another link]]
Another link [[file+emacs:///tmp][another link]]
Another link [[file+emacs://tmp][another link]]
Thanks and Regards
Noorul
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Directory Links (and a bug?)
2010-09-07 22:18 ` Noorul Islam
@ 2010-09-08 15:51 ` Achim Gratz
0 siblings, 0 replies; 3+ messages in thread
From: Achim Gratz @ 2010-09-08 15:51 UTC (permalink / raw)
To: emacs-orgmode
Noorul Islam <noorul@noorul.com> writes:
> For me all these three gets exported as file:///tmp
>
> Another link [[file://tmp][another link]]
> Another link [[file+sys:///tmp][another link]]
> Another link [[file+emacs:///tmp][another link]]
Sorry, I should have checked more thoroughly: there is a bug, but it's
someplace else and hiding a bit. Edit each of the links with C-c C-l
and then have a look what the link turns into both in the org buffer and
the export... the '+' gets replaced by '%2B' by an overly helpful
sanitation function.
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-08 15:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-07 19:35 Directory Links (and a bug?) Achim Gratz
2010-09-07 22:18 ` Noorul Islam
2010-09-08 15:51 ` Achim Gratz
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.