vanakat / zotero-link

Obsidian plugin to insert link to Zotero item
MIT License
41 stars 5 forks source link

about searching accuracy #2

Closed ycbrd closed 5 months ago

ycbrd commented 2 years ago

When I'm typing a keyword from the title of an item, it should be more convenient if the plugin provides the most accurate item at the top. Like:

image

The item I chose (and the following PDF) should be placed at the top, as they are the only 2 items in my library with the search word "misperc" in the title.

This is a very useful plugin for me and thanks a lot for your work.

MunGell commented 2 years ago

Hi @ycbrd

Thank you very much for raising this issue, I will look into it as soon as I can

Related: https://github.com/vanakat/zotero-bridge/issues/5

chxliou commented 1 year ago

I would like to provide a simple fix for this issue.

step 1. goto .obsidian\plugins\zotero-bridge\ you would see a file named main.js, right? open it.

step 2. find quicksearch-everything inside this file.

step 3. replace it with quicksearch-titleCreatorYear

step 4. save, close and restart Obsidian

After these steps, your search accuracy would be increase, however, limited in title, creator and year fields

If you have solid javascript background, see here to improve this plugin.

MunGell commented 1 year ago

Hi @chxliou

Thank you for the brilliant idea, I will need to check if this approach and if it doesn't break common workflow might actually make this change in the plugin itself.