Commit ca6e2a45 authored by Phil Hughes's avatar Phil Hughes

Fixed IDE file finder ordering

Fixes the file finder not opening when focused inside the editor
parent 6a77a6a1
......@@ -39,12 +39,10 @@ export default {
return this.allBlobs.slice(0, MAX_FILE_FINDER_RESULTS);
}
return fuzzaldrinPlus
.filter(this.allBlobs, searchText, {
return fuzzaldrinPlus.filter(this.allBlobs, searchText, {
key: 'path',
maxResults: MAX_FILE_FINDER_RESULTS,
})
.sort((a, b) => b.lastOpenedAt - a.lastOpenedAt);
});
},
filteredBlobsLength() {
return this.filteredBlobs.length;
......
......@@ -44,7 +44,9 @@ export default {
e.preventDefault();
}
if (!e.target.classList.contains('inputarea')) {
this.toggleFileFinder(!this.fileFindVisible);
}
});
Mousetrap.stopCallback = (e, el, combo) => this.mousetrapStopCallback(e, el, combo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment