How to set options for fuse.js when I want the same behavior like VSCode (Ctrl+P) file search?
On official example, with {ignoreLocation: true}
search pattern = "tprt"
'The Preservationist' should be first as it has all 4 searched characters (indices), instead of 'Incompetence' which only has 2
if you want to search by
indiciesthen you need to expose them and create a custom sort function for that.Here is an example that will search by matched characters (
indicies):