Fantastic! Already making great use of this. Much appreciated
Wanted to throw in my addition to this in case others also find it useful.
I wasn’t a fan of managing a secondary alias document which I would have to manually update whenever I created new notes … so I have automated the process slightly.
Instead of adding aliases to the aliases.yml file, I add the aliases on a line directly within the note and ‘tag’ the start of the line with a unique key/string which flags that line as containing the note’s alias names.
Executing the script cycles through your vault and searches for the existence of the alias tag within all your notes and creates your aliases.yml file for direct usage with benperkins’ Auto-linking tool.
Current workflow has me periodically running the script to update the yaml file, and running the Auto-linking tool off keyboard shortcut whilst notetaking.
Example usage
While working on your note called Working from home.md you would add the alias tag :::: which identifies alternative aliases for the file, and add additional aliases you wish to link this note to.
# Working from home
:::: Remote working, Remote worker, WFH
A side effect of the pandemic is that ...
Executing the script will generate the following entry into your yml alias file:
Working from home:
- Remote working
- Remote worker
- WFH
Code can be found here:
Obsidian Alias Generator