I'm not sure if I understand what you mean. Do you mean just always showing the wiki link to the right hand side of the title?
That could be easily done by changing display: none;[/m] to [m]display: inline;[/m] or [m]display: block;[/m] (and by completely removing the lower [m]:hover styles). But I think that would be at the expense of losing readability and usability ...
I totally agree. I think a "link indicator" should only be shown while the mouse is right over the section title in order to minimize distraction. Finding the ideal placement might be difficult, though. E.g., if the link indicator is always shown above the heading, its invisible if the heading is on the top line.
Another option could be to add it in a tooltip like the footnotes. I guess that would be a good solution.
I currently have no time to implement that, but I just changed the styles a bit to come closer to that (and it even fixes some other issues).
You're right, a tooltip is what I had in mind. I just couldn't come up with the word. I think that would be a good solution for showing the link. Is there any user interface standard for an action associated with a tooltip? What should the user do to copy the link text while the tooltip is visible? Ctrl-C, click the tooltip, ...
Showing a tooltip just while the mouse is over the section title might solve another problem as well. Unfortenately, there seems to be an incompatibility between the current implementation and the editsections Plugin
. That plugin places the edit button for a section to the right of its heading. But that button is now "covered", I can't click it anymore.
What do you think about a link button, placed to the far right of the section heading (adjacent to edit button positioned by the editsections plugin)? With a small icon, it shouldn't be too intrusive. Its tooltip could show the the link text. And clicking the button to copy that link text is a well defined action.
It's easy to make all these suggestions as long as I'm not running the risk of having to implement them :-)
The IDs created by DokuWiki are already unique. If you check the TOC in a page with non-unique headings, you'll see that the section links are all different (extended by numbers).
Thanks for pointing that out! Now I know what you meant earlier when you said that all the information was already there. Actually it took me a couple of weeks to understand why I was so surprised by this: After using the DokuWiki editor, you're taken to the top of the section just edited. But if that section has a non-unique heading, you're taken to the top-most section that has the same heading. That had happened to me so often, that I never thought DokuWiki could try to create unique anchors.
Can anybody confirm that "bug"? Should I write a bug report?