Using the Intermap.txt file to simplify writing links in Trac wiki pages
is a great feature. I even like that there is control over the text in a
pop-up window that is shown when the mouse hovers over the link. But I
wonder if I am missing something on one point: the actual text that gets
listed in the page itself. If I use the Trac macro [comment:33], the
text "33" will be placed in the wiki page. Same for ticket numbers and
other built-in macros. If, however, I define something in InterMap.txt,
the same thing does not happen.

For example, if I define:

        mylink   http://a.b.c/$1 # Page $1 on a.b.c

and I include this in a wiki page

        [mylink:info]

the text that is inserted is

        mylink:info

It makes a proper link and the text in the pop-up info window is as
defined. It is just that the wiki text itself is the macro call itself.
Which is not the same as for built-ins like [ticket:x] or [comment:22].
Of course, I can change the text via the usual mechanism:

        [mylink:info info]

But isn't there a way to make the text that is inserted in the page be
something else?

I hope this makes sense. It is not exactly a show stopper. But it seems
so useful that I cannot imagine no one has felt the need for this. The
description of the comment text is rather ambiguous about what will be
decorated.



-- 
Roger Oberholtzer

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

Reply via email to