I'm away from a proper computer until next week, but this is great stuff,
and I'll look forward to picking it up on my return,

Best wishes

Jeremy


--
Jeremy Ruston
[email protected]


On 21 Mar 2012, at 19:38, Chris Dent <[email protected]> wrote:

On Thursday, March 8, 2012 12:36:29 PM UTC, Jeremy Ruston wrote:
>
> 1) make the <<link>> macro understand how to make inter-space links
>
> 2) add/modify a new formatter to detect the @space link syntax and
> emit the required <<link>> macro
>

So to explore the issues I made these changes:

   https://gist.github.com/2149828

which is basically a straight port of the rules into WikiTextRules .js,
replacing the link generation with creation of a link macro.

The main things this points out are:

* If/when the link macro understands inter-space linking, there needs to be
some global-ish way to tell it the domain or domains that are being worked
with. Right now I just hard code it. Obviously not great.
* The classic version of the plugin puts some metadata attributes on the
generated links, to do things like name the tiddler being targeted (if
indeed it is a tiddler). I don't think this is strictly necessary for
tw5ikifier, but the idea may have merit for making the link macro more
general: parameters that let you say "here, add this stuff".

The tw classic-based twikifier seems to be getting munged up about once a
day on tiddlyspace.com lately. Not terminally so, just a few minutes of not
working then it recovers. It would be great if I could replace it soon with
the much more inspectable tw5-based stuff.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to