in reply to Re: YAPND: Yet Another Personal Nodelet Discussion
in thread YAPND: Yet Another Personal Nodelet Discussion

Why is it this way? Because the heart of the code is the very simple: /\D/ ? linkNodeTitle($_) : linkNode($_). That is, it was designed to accept a node ID or a node title. Why was it designed that way? Well, I didn't design it, but that is a clean design, especially considering what is obvious to do with the current code base. The fact that linkNodeTitle() also understands "|" is rather an accident.

To Aristotle: You are in pmdev so Feel Free. It probably wouldn't be very hard to change that code to call the code that handles square bracket links. Of course, ar0n started rewriting that code months ago. Then footpad at least announced that he had started rewriting it a month or two ago. I jumped in a few weeks back and you can (for a while) see what I've got so far at tye . My plan is to support typing "pad://tye" or "cpan://cache" in the simple Search box at the top of any PM page so you get a redirect to whatever that would link to if found in square brackets.

So put your code where your node is. You have access to all of the code. Go look at what I've done, fix the remaining bugs in it. Or just fix the personal nodelet to use the existing code (and to just put out verbatim any items that start with < so all of my <a href=...>...</a> links in my personal nodelet continue to work [at least in my browsers]).

I haven't had time to get back to that (and a lot of other things). And if I did, I'd be working on speeding the site up rather than that anyway.

                - tye