The aliases currently link to the top of the page. My desired behaviour would be to configure the aliases in the yaml to link to the headings. The alias autofill would then give [[evapotranspiration#Transpiration|transpiration]] rather than [[evapotranspiration|transpiration]].
Proposed solution
Adjust the aliases frontmatter to accept a nested dict with {alias:heading} pairs.
I still think my suggestion makes more sense, tho. This seems like something a person would want to use every time they linked to a heading. A simple setting would save a lot of hassle over having to set a bunch of aliases.
I was actually in the process of creating a feature request about this, though with a slightly different use of front matter. I’m going to copy the proposed solution from
Proposed solution
I was going to suggest using a special character to act as a delimiter in a given alias. a # wouldn’t work as that is the start of the comment. @,+,=,~ all seem to work (in that they don’t seem to break frontmatter or change how the text following them is interpreted).
I’m guessing the note titles and aliases in a trie or some similar data structure, this would add a single character check that acts as a delimiter.
to demonstrate:
---
aliases: [foo@bar]
---
## bar
however a dictionary for aliasing to headings would work to, and I think that could also be more flexible (to alias to paragraphs)
This feature would be really helpful!!
Many users say the fewer notes are better.
Then each small notions are going to be headings, and it is really hard to recall the name if it has multiple names.
It is so annoying…
I can’t find any plugins about this though.
Somebody let me know if there’s one!
100%, i use aliases heavily for stuff like this and 'id love either a native solution or a plugin, i have some notes with like 25/30 aliases that all link to different headers