Zim

Comment 21 for bug 380844

Revision history for this message
Oliver Joos (oliver-joos) wrote :

> When user types "Page#" the list of headings appears

Sounds cool. Will it still be possible to write "Page#one" as valid link to heading "Chapter One: To be or not to be" ?

> Simply "#chapter-one"

Nice and short, but confusing. Is it an anchor target or a link within the current page (or a source code comment)?

My view so far:
Links to explicit anchors or headings could look like "Page#chapter-one" or "#chapter-one" both in Zims window and in its txt-files. In the txt-files they can change to [[Page#chapter-one|mylink]]. Explicit anchor definitions are icons in Zims window, and written as "#[AnchorName]" to its txt-files.

Why "#[AnchorName]" to define explicit anchors?
The 3 chars # [ ] are already associated with links and anchors. Marking also the end of an anchor name allows all characters but "]" in a name. And I would prefer a markup that does not depend on multi-line context like verbatim blocks, to be able to use line-based tools like grep or diff.
Variants like [#AnchorName] or #[[AnchorName]] are too similar to a link. And please forget my idea of #AnchorName#, I found plenty of lines with two or more "#" in my Zim.