Zettelkasten Forum


[Plugin] Link expander

In my workflow I try to keep the first header of my notes always in a format that allows me to "embed" it later in another note with minimal editing. Since I do this embedding quite often, especially when creating structure notes, I made a small plugin to help with the task. I thought others may find it useful as well.

Github repository

The README:

Link expander plugin for The Archive

This plugin takes in a text selection (a link) and expands the link by placing the first H1 header found in the target note before the link.

The link can be partial (e.g. UID). The plugin uses The Archive's internal search matching algorithm and picks the "best match" if found. If no unambiguous match is available, the link will not be expanded.

Example 1:

[[202512291813]]

will transform to:

This is a note's first H1 header [[202512291813]]

Example 2:

202512291813

will transform to:

This is a note's first H1 header 202512291813

Comments

  • Thank you for sharing! That's a cool idea to quickly get tables of contents from links working.

    For the plugin ID -- you don't have to own a domain for this, it's just a made-up convention to create namespaces people can identify with :)

    Guess you're com.idonthaveadomain then! Also perfectly fine

    Author at Zettelkasten.de • https://christiantietze.de/

  • Thank you for your encouraging words!

    I had a vague notion of the convention. I suffer from lack of imagination way too often and ended up with the meaningless string. Since the earlier plugin was using that domain, I had no choice but to remain consistent :s:smiley:

Sign In or Register to comment.