I think all (text) content should be considered for auto-completion. Of course, matches in notes should have a lower weight than ones in items.
My suggestion for the distribution of matching weights (just spitballing here):
- Literal matches before fuzzy ones.
- Matches in items before matches in notes. (Literal matches in notes should however be presented before fuzzy matches in items.)
- Matches in plain text before matches in links. (Odds are you want to link to original content rather than to a another link.]
- Fuzzy matches by length of consecutive letters.
- Proximitiy to current item.
###Original topic (in Bugs): Auto-completion does not consider notes
Steps to reproduce
-
Create an item with some text and also add text as a note.
E.g. let’s say the item text is “Vector space” and the note text contains an alias for this topic “(A.k.a. linear space)”. -
In a new item try to use auto-completion, but with the item’s note content.
E.g. type “[[linear”.
Expected result
The auto-completion popup should show the entry for “Vector space”, as it contains “linear” in its note.
Actual result
The entry for “Vector space” is not listed in the auto-completion popup.
Environment
Win 10 Pro x64, Chrome 62.0.3202.94 x64