Skip to content

Commit

Permalink
feat: add search by description
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Jan 20, 2024
1 parent cd44fb4 commit 134c424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/store/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export const useSnippetStore = defineStore('snippets', {
includeScore: true,
threshold: isExactSearch ? 0 : 0.4,
ignoreLocation: true,
keys: ['name', 'content.value']
keys: ['name', 'content.value', 'description']
})

const result = fuse.search(q)
Expand Down

0 comments on commit 134c424

Please sign in to comment.