jplattel / obsidian-query-language

An Obsidian plugin allowing you to query your notes
176 stars 6 forks source link

Question about examples #20

Open KingOfSpades opened 3 years ago

KingOfSpades commented 3 years ago

Hey,

Quick question. In some example you are using:

query: "'folder1/'" 

But in other examples it misses one ', like:

query: "'folder1/" 

The strange thing is. The first example does not give me any results in my own Obsidian vault but the second one does. Is this expected behavior or am I doing something wrong?

jplattel commented 3 years ago

Hey @KingOfSpades you're right! My own documentation is wrong. It should be just a single ' at the start, that's the correct way to match and exact string with the extended search of Fuse: https://fusejs.io/examples.html#extended-search

I'll fix the README file to reflect the right way to do it!

KingOfSpades commented 3 years ago

Haha no problem! I was eating myself up because I couldn't get it to work until I saw the documentation at https://fusejs.io/examples.html#extended-search