hadynz / obsidian-sidekick

A companion to identify hidden connections that match your tags and pages
134 stars 9 forks source link

Feat: Setting to allow disabling stemming #36

Open HEmile opened 2 years ago

HEmile commented 2 years ago

As reported in #25, I had many false positives. This PR adds a setting which allows disabling the stemming feature. In my quick tests, all results I get are now true positives (that is, exact matches with something in the tags, page names and aliases).

Of course, this will not be as flexible because it will not use the automatic stemming algorithm, but I greatly prefer some false negatives above many false positives here.

This PR fixes a crash when no matching tokens can be found in mapStemToOriginalText, disabling the entire plugins functionality. Could be related to #32 and #33.

HEmile commented 2 years ago

Couple more features added: