mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
529 stars 27 forks source link

FR: TagAlias to help with mapWithTag #162

Closed MMoMM-org closed 1 year ago

MMoMM-org commented 1 year ago

How it is at the moment:

I have a FileClass called Plugin (FileClass) and I would like to use mapWithTag. This would require me to use a tag #Plugin (FileClass)

What I would like:

Be able to specify an Alias which will be used explicitly with Metadata Menu to be able to use a tag like #Plugin

How could this be done:

Adding a TagAlias: Plugin to the frontmatter of the fileclass note, perhaps even with sub tag support, e.g #Obsidian/Plugin

mdelobelle commented 1 year ago

Hi

why don't you name you fileClass "Plugin.md" instead of "Plugin (fileClass).md"?

MMoMM-org commented 1 year ago

Because I already have Plugin 😀

mdelobelle commented 1 year ago

is "Plugin.md" also a fileClass? if it's the case, i would recommend to put "mapWithTag: true" and "extends: [Plugin (fileClass)]" in its frontmatter. If "Plugin.md" is not a fileClass i would recommend that you dedicate a folder only for fileClasses files so that the plugin works as expected.

Are you in a different situation?

MMoMM-org commented 1 year ago

There are really several issues here: a) I have a note already with the name of Plugin, so I can't use Plugin as FileClass but my Tag is called #Plugin b) I don't want to use a normal Alias as that would show up on open, completion etc too.. I would need to look at the location to figure out if Plugin is my note or the FileClass.

Substitute Plugin with anything you like... Obsidian for example. I have a Note Obsidian and a Tag Obsidian. If I now want to create a FileClass I run into the same issue again.

MMoMM-org commented 1 year ago

Oh, and when I create a new FileClass.. let's call it PKM and have already a link with [[PKM]] in some of the notes, the link will now point to the FileClass, instead to be still dangling... waiting for a note which explains what PKM is.

mdelobelle commented 1 year ago

One question: do you have a specific folder for your fileClass files?

MMoMM-org commented 1 year ago

yes, and this it not about your plugin not finding the fileClass files, it is about the fileclass files "poluting" the open or suggester dialogues.. which I would like to make it easy visible that the note being suggested is a fileclass and not an other note I have in the system.

mdelobelle commented 1 year ago

okay! I see now makes sense. I'll have a look at it

MMoMM-org commented 1 year ago

thanks.. looking forward to it..

mdelobelle commented 1 year ago

done: 0.3.6