[Discussion] Ideas for Better Internal Links #2410
Replies: 11 comments 10 replies
-
Converting this to a discussion, since I just stumbled upon it and there are many good ideas in there worth discussing! |
Beta Was this translation helpful? Give feedback.
-
Thanks for opening a discussion on this topic. Considering my use of Zettlr the possibility of having links to note sections would clearly be a very nice improvement. Notes can be very consistent and linking only to the note itself does not always provide enough information. This would also allow to create links referring to another section inside the same note without having to go through the note table of contents in order to find the section which is referenced, and it would therefore allow navigating inside the note with a simple click on the note section link. Pushing this idea there could also be a way to make links pointing to an "anchor" inside the note, which would not necessary be a section. |
Beta Was this translation helpful? Give feedback.
-
I really hope that Zettlr can support the wiki link format that foam and obsidian use with piped alias i.e. "[[Link|Alias]] the same way that Wiki actually do it, and not the other way around with the alias (or label if you want to call it that) first. And if you also supported Aliases in YAML as an alternative when linking to a Note, so that if you want to have different aliases linking to the same note, you could do that by adding aliases in the YAML frontmatter of the target Note... I also wish that there could be support for piped links in md-tables, done the same way as i.e. obsidian or foam does it, by escaping the pipe with a backslash if it is needed to have links in a md-table. EDIT: just added a few word to clarify in the second paragraph, and added a reason in the last. |
Beta Was this translation helpful? Give feedback.
-
Zettlr already kind of supports naming ZKN links (see docs). As mentioned in the docs, we can't directly There has already been an issue (#1406) that requested to make these "ZKN link embedded in Markdown link" clickable (without having to enter the link "edit mode" first). @nathanlesage Do you still have the same view on this as in #1406? |
Beta Was this translation helpful? Give feedback.
-
I really like the embedding using Is it something on the roadmap? |
Beta Was this translation helpful? Give feedback.
-
Does something speak against providing some configuration option on how to render out internal links? For example, I use id's for my internal links/filenames, but rendering the id's is usually not so helpful. Instead, I would like to opt for rendering the title in place (which is provided in the YAML Frontmatter of the file with the corresponding ID). |
Beta Was this translation helpful? Give feedback.
-
I want to chime in again with some comments on labelled links (as I called them above) or links with an alias. It seems to me that most other markdown based knowledge management/note taking tools that I'm aware of (e.g. Dendron, Obsidian, Roam) support the "wiki link" format for internal links with an alias, i.e., I'm trying to collect pros/cons of this being implemented in Zettlr to maybe make some progress on this: Pros
Cons
In my opinion, the different link style is not a problem, since internal links with @nathanlesage what are your thoughts on this? Did I overlook some arguments against this? Could a compromise be for Zettlr to support this, but not making it the default? |
Beta Was this translation helpful? Give feedback.
-
I'm still getting used to how GItHub communities work (I'm a user, no idea of programming), so feel free to delete my comment if not appropriate. I'd like only to show strong support for any initiative of creating "anchors" and "links" for parts or sections of notes. The lack of this functionality is hampering my progress in personal knowledge management. Rendering parts of note would also be great for me. Alias and labels would be an improvement as well, although I'd still prioritise internal anchoring/linking. Zettlr is very promising and although I'm learning how to use it, it already seems to be a good improvement in my personal knowledge management. As soon as I get really comfortable with Zettlr and, hopefully, get the anchoring/linking feature, I will start to offer workshops at my university department for other faculty staff and students to train them into the combo Zettlr/Zotero. Thanks! |
Beta Was this translation helpful? Give feedback.
-
You can format the brakets body.dark #editor .CodeMirror .cm-zkn-link-formatting {
font-size: 0.5em;
} |
Beta Was this translation helpful? Give feedback.
-
Alternatively, instead of having the ability to link to sections (or in addition to) maybe it would be easier if the internal links to IDs would take you not only to that file, but to the specific point in the file where the ID is located. I feel that this would make my Zettlekasten workflow much easier, because I usually break/merge Zettels or change section names or filenames. In this way, one would just need to place the ID next to the text I want to reference, and not matter if I change the name of the section or the name of the file or if I move the text to another file, I will be taken always to that text. Edit: Just opened a new issue with this. |
Beta Was this translation helpful? Give feedback.
-
I'm particularly interested in the subtopic included here linking to note sections, and I cannot see that it has been addresses anywhere explicitly. Is that correct, or have I missed something? This is a killer feature I think and would be greatly appreciated. Not just linking to headings, but it would be great it if could link to arbitrary places in files. As an example of how it might look, to explain the point, I have a list of tags like so in File A, and I want to link in File B to a specific item (via it's ID) in File A File A (20240214164025.md):
File B: Which would link File B to File A, and center the screen on the ID ending 027 |
Beta Was this translation helpful? Give feedback.
-
I'd like to discuss possible improvements to the handling and rendering of internal links, especially when linking to files using an ID. As internal links are essential to Zettlr, especially to a Zettelkasten workflow, I feel like the community could benefit greatly from improvements here. I have some ideas but no definitive answers and am also aware that some things depend on different Markdown styles (which I'm not really well versed in), so please feel free to share opinions.
I've also tried to compile related enhancements and feature requests here. Many things have been proposed and discussed in the path, but I feel like many topics are linked (no pun intended) and we could benefit from having a clearer vision what Zettlr's workflow with internal links could look like.
labeled links
Normal links can be annotated using
[label](link)
. Internal links don't support anything like that at the moment, which makes linking with IDs cumbersome. I'm not sure what could work well with other programs that use Markdown, but here are some ideas how this could be implemented:[[label|link]]
(see Dendron wiki here). This is convenient, but I suspect it might not work well with most Markdown styles. Also discussed in this Reddit thread[[link]](label)
or(label)[[link]]
would be similar to the implementation in normal links and the extra(label)
could easily be ignored by other Markdown styles that don't support thisbetter link rendering
Especially when linking with IDs, links take a lot of space without providing useful information. Here are some related ideas, although most of these would probably not be necessary anymore if labeled links were a thing:
[[ ]]
could be given to the user. Maybe this is already a thing, but I didn't find a way to e.g. render the brackets smaller using custom CSSlinking to note sections
Currently, it is only possible to link to a note as a whole. Even when a second ID is used in a file, or the idea is placed in the middle of a file, we can basically only link to the head of the file. See also #1800 and this Reddit thread
[[link#header]]
syntax. As above, I think this might clash with many Markdown styles, but the behavior is amazing otherwise.[[link]]#header
or[[link]](#header)
#anchor<number>
to allow linking to user-defined places in any notetransclusion
When writing notes and linking other ideas, we often need to repeat some of the content from other notes. Rendering some part of the linked note as a preview, or even a specific section would eliminate the need to repeat oneself. See also #1162 and #354
![[link]]
syntax similar to how normal links are forced to render in-place.related issues and discussions
[[Path/To/Link]]
. #1925 proposes support of relative internal links like[[path/to/file]]
, which is also discussed in this Reddit threadBeta Was this translation helpful? Give feedback.
All reactions