Linking to files and folders.

316 views
Skip to first unread message

Jack Sparrow

unread,
Dec 16, 2015, 4:50:19 AM12/16/15
to TiddlyWiki
Hello,

I am trying to create links to network folders and files on a windows network using Firefox. I found a help page with a few examples but was unable to get it working.

How would I create links that will open the following places in explorer?


\\192.168.1.5\

\\192.168.1.5\data\

\\192.168.1.5\data\Roster.xls

c:\

c:\data\

c:\data\roster.xls


Thankyou :-)

Tobias Beer

unread,
Dec 16, 2015, 5:44:34 AM12/16/15
to TiddlyWiki
Hi there,


I found a help page with a few examples but was unable to get it working.

Which page and what didn't work?

Give this a read:


Best wishes,

Tobias.

Jack Sparrow

unread,
Dec 16, 2015, 7:49:36 AM12/16/15
to tiddl...@googlegroups.com
Hello Tobias,

Sorry to be so vague in the initial post. The "Linking in WikiText" is the help document that I had looked at.

I think what I am really trying to achieve is to link to locations as though it was through windows explorer and not FireFox.

As for the examples, I have played around some more and this is what I have come up with.

\\192.168.1.5\
[ext[Open file|file:///\\192.168.1.5]] (just opens a blank page in Firefox)
[ext[Open file|file://///192.168.1.5/]] (just opens a blank page in Firefox)
[ext[Open file|file://///192.168.1.5]] (just opens a blank page in Firefox)
Can this be done??  If it can I would have no use for mapped network drives anymore.

\\192.168.1.5\data\
[ext[Open file|file://///192.168.1.5/data/]]  (Opens up folder index in Firefox, would prefer to open in windows explorer, or a "Open in windows explorer button")

\\192.168.1.5\data\Roster.xls
[ext[Open file|file://///192.168.1.5/data/roster.xls]] (opens up Download "Save or open" dialogue, Close enough to opening directly with explorer)

c:\
[ext[Open file|file:///C:\]] (opens a folder index in Firefox, cool but does not have same capabilities as explorer. I was hoping to open location directly in explorer)

c:\data\
[ext[Open file|file:///C:\data\]] (opens a folder index in Firefox)

c:\data\roster.xls
[ext[Open file|file:///C:\data\roster.xls]] (Download "save or open" dialogue box, Can work with this but I was hoping that I would be able to run directly just like a desktop shortcut).

Is it possible to get this kind of functionality out of Firefox?

Thanks

Tobias Beer

unread,
Dec 16, 2015, 8:05:14 AM12/16/15
to tiddl...@googlegroups.com
Hi again,
 
\\192.168.1.5\data\
[ext[Open file|file://///192.168.1.5/data/]]
(Opens up folder index in Firefox, would prefer to open in windows explorer, or a "Open in windows explorer button")

Browsers no longer allow to simply launch external applications from within a document. You can't even specifically instruct them to. So, you're kinda stuck with this folder view... and then the ridiculous idea that you would want to download stuff off of your local file-system.

Why it won't show the folder-view for this, I don't quite know / understand:

[ext[Open file|file://///192.168.1.5/]] (just opens a blank page in Firefox)
 
Eventually...

Is it possible to get this kind of functionality out of Firefox?

I'm not sure. If anything, it would have to be a browser add-on that is granted the necessary windows file-system access. Never tested any. Perhaps this is what you're after:


Best wishes,

Tobias.

Jack Sparrow

unread,
Dec 16, 2015, 9:14:41 AM12/16/15
to TiddlyWiki
Thanks for that Tobias,

I just tried that add on for Firefox and unfortunately it does not appear to work. I also downloaded and installed Node.JS and it still did not work.

Funnily enough Internet Explorer (a cold shudder just went up my spine) will open up the network links in explorer by default but will not open the local links at all. Internet explorer also does not appear to be able to save changes to the wiki

The best I can do at this point of time is use the "Copy link location" feature of the file index and then past into the address bar of explorer 

Tobias Beer

unread,
Dec 16, 2015, 10:41:00 AM12/16/15
to TiddlyWiki
Hi again,

I just tried that add on for Firefox and unfortunately it does not appear to work.
 
As for that Firefox extension, perhaps you will need to (use a macro to) create the link elements in plain html, rather than use wikitext syntax possibly creating its own click handlers...

title: $:/_my/macros/html-link
tags
: $:/tags/Macro

\define a(href,pretty)
<$reveal type="match" text="""$pretty$""" default=""><a href="$href$" target="_blank">$href$</a></$reveal><$reveal type="nomatch" text="""$pretty$""" default=""><a href="$href$" target="_blank">$pretty$</a></$reveal>
\end

I also downloaded and installed Node.JS and it still did not work.

That won't make a difference. If anything might, it's TiddlyDesktop, but I'd be surprised if it does. Definitely worth a feature request.

As for a slightly simpler workflow:

Someone, I believe Andrew, once made a "copy button" that might facilitate your approach... try and search the groups for it.
It copies a given string to the clipboard when clicking a button, e.g. like a symbol for an external link after the link text.
I don't quite remember exactly how it worked.

Anyhow, this would "reduce" the task to:
  • click copy button
  • WIN+E => open explorer
  • F4 => focus address bar
  • CTRL+A => select all
  • CTRL+V => paste
  • ENTER
In other words, you could have a tiny <<ext>> macro that would render the link + the copy button:

title: $:/_my/macros/ext-link
tags
: $:/tags/Macro

\define ext(location,pretty)
<$reveal type="match" text="""$pretty$""" default="">[ext[$location$]] {{$location$||$:/wherever/that/button/is}}</$reveal><$reveal type="nomatch" text="""$pretty$""" default="">[ext[$pretty$|$location$]]{{$location$||$:/wherever/that/button/is}}</$reveal>
\end

Best wishes,

Tobias.

Jack Sparrow

unread,
Dec 16, 2015, 1:32:11 PM12/16/15
to TiddlyWiki
Thanks again for your help Tobias,

I have just had a quick play with Tiddly Desktop and it works a charm. All links so far are opened in explorer. I will keep playing and let you know how it goes.

infurnoape

unread,
Dec 16, 2015, 2:54:09 PM12/16/15
to tiddl...@googlegroups.com

Have happy holidays,

Andrew


Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5d460e23-1d40-44d9-bb8d-33b97d94f256%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages