|P is for Practical|
New bracket-link stuffby theorbtwo (Prior)
|on Apr 23, 2004 at 18:58 UTC||Need Help??|
I've been working on bracket-links lately. Specificly, I've fixed at least one bug, and added two new link types.
The first new link type is doc://. This is meant to combine the good bits of perldoc with the good bits of the onsite docs. It links to perldoc.com's documentation, like perldoc://. Unlike perldoc://, it links to actual docs, not a search for docs (currently for the documentation for 5.8.0. I will make this configurable at some point). It attempts to DWYM: If the link begins with "perl", it is to a manpage. If it does not, it is to a function. Thus, perlre, or stat DWYM, assuming you mean what I thought you did.
The more prosaic pseudo-URI-schema is href:// (also known as link://). This lets you link to whatever you like, even if it has a strange schema, or none at all. For example, to point to the "node template" setting in user settings directly, you can say "[href://?node=user+settings#Node-Template]" (?node=user+settings#Node-Template). If you're talking about a recent Mozilla in the CB, and want to link to the config screen, you can say [href://about:config] ([href://about:config]).
Oh, and the bug: At least some places where using | multiple times chopped things off. There are still bugs lurking, though. If you know of any, please reply with things that should be valid links (but aren't), and what you expected them to render like. (I don't promise to fix all of them, of course -- and I may even declare some of them to be features.)
I really want feedback on all of this -- please, don't consider any of the new things discussed here to be fixed yet -- meaning don't use them in nodes, except on this thread. OTOH, please try them out in the CB, to get a feel for them.
Update: Fixed stupidity.
Everything is subject to change