Skip to content

Commit

Permalink
Update suggestFile.ts
Browse files Browse the repository at this point in the history
Changed Fuse rating for file properties
  • Loading branch information
revolvermann76 authored Jun 10, 2024
1 parent b1098ab commit dbfe99e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/suggesters/suggestFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ export class FileSuggest extends AbstractInputSuggest<TFile> {
includeScore: true,
shouldSort: true,
keys: [
{ name: "path", weight: 2 },
{ name: "tags", weight: 1 },
{ name: "name", weight: 3 },
{ name: "frontmatter.aliases", weight: 2 },
{ name: "path", weight: 1 },
{ name: "tags", weight: 1 }
],
});
return fuse.search(lower_input_str).map((result) => {
Expand Down

0 comments on commit dbfe99e

Please sign in to comment.