On Apr 14, 12:14 am, Szabolcs <[email protected]> wrote:
> On Apr 14, 12:01 am, Eric Shulman <[email protected]> wrote:
>
> > Try this: create a tiddler tagged with 'systemConfig' containing the
> > following single line of javascript:
> > -------------------
> > config.textPrimitives.urlPattern = "(?:spotify|file|http|https|mailto|
> > ftp|irc|news|data):[^\\s'\"]+(?:/|\\b)";
> > -------------------
> > after saving and reloading, "PrettyLinks" using "spotify:" as the
> > protocol should then be recognized as external URLs, like this:
> > [[text to show|spotify:...]]
>
> Thanks Eric, it works wonderfully! :-)
There's one more tiny thing though. Outside links in TiddlyWiki are
opened in new tabs (for pretty obvious reasons). But this is a
disadvantage for "spotify:" links, as the new tab will be just an
empty one anyway (and I have to close it manually). Would it be
possible to open Spotify links in the same tab? Unlike with http://
links, this would not make the browser navigate away from that page.
Of course the most important thing is that it works now. :-) This
would just be a bonus over that.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---