lizard-heart / obsidian-note-content-pusher

An Obsidian plugin to add (prepend or append) specified content to a note (existing or new) without opening another pane.
GNU General Public License v3.0
25 stars 0 forks source link

[Request] Add aliases to existing files as well #5

Closed DeutscheGabanna closed 2 years ago

DeutscheGabanna commented 2 years ago

The language I'm using inflects many of its words. Even I create, hypothetically, a "John Doe" note, depending on whether it's a subject or an object, it may have to be referenced as "Johna Doe'a", for example.

If I reference it like so:

[[John Doe|Johna Doe'a]]

the alias won't get saved in the YAML frontmatter.

I'd like to use your plugin to do this job and add the aliases while I reference the existing notes. It'll speed up the reference process, because now I won't have to go into the note to edit the YAML myself.

lizard-heart commented 2 years ago

I believe if you add it like this [[John Doe|>>Johna Doe'a]]>>{} it will do it correctly, but I agree that is a little convoluted.

lizard-heart commented 2 years ago

This will be easier in the new release.

pawel-ilnicki commented 2 years ago

I believe if you add it like this [[John Doe|>>Johna Doe'a]]>>{} it will do it correctly, but I agree that is a little convoluted.

I followed this method before because it was already in the documentation (unless I'm not seeing a slight change in the syntax?). And it didn't work. After running the script the reference got glitched, and no alias was added to YAML.

Waiting eagerly for next release then.