hans / obsidian-citation-plugin

Obsidian plugin which integrates your academic reference manager with the Obsidian editor. Search your references from within Obsidian and automatically create and reference literature notes for papers and books.
MIT License
1.09k stars 81 forks source link

Recognize and open note based on the value of a field in the note #203

Open Elaws opened 1 year ago

Elaws commented 1 year ago

@hans :

Usecase description

In Literature note title template, I don't use something simple like {{citeKey}} or {{title}}. But something like DOC_TYPE YYYY-MM-DD {{title}}, where DOC_TYPE is a special character that quickly indicates if the document is a book, paper or article (this was inspired from Bryan Jenks Obsidian Workflow).

I have not found a way to automate the DOC_TYPE part, so this is added manually in the title after opening the note with citation plugin.

The problem is that whenever I open the note again with citation plugin, it does not recognize the title anymore.

Possible solutions

Look for a field in the note (e.g. : itemID, citeKey, title, etc...) and open the corresponding note.

E.g. : If there is citeKey :: kennanCount1998 or zoteroID :: Z8D45F5 or title :: The art of Counterpoint, then bibnotes could recognize the note and open it appropriately.