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 { ...@@ -39,12 +39,10 @@ export default {
return this.allBlobs.slice(0, MAX_FILE_FINDER_RESULTS); return this.allBlobs.slice(0, MAX_FILE_FINDER_RESULTS);
} }
return fuzzaldrinPlus return fuzzaldrinPlus.filter(this.allBlobs, searchText, {
.filter(this.allBlobs, searchText, {
key: 'path', key: 'path',
maxResults: MAX_FILE_FINDER_RESULTS, maxResults: MAX_FILE_FINDER_RESULTS,
}) });
.sort((a, b) => b.lastOpenedAt - a.lastOpenedAt);
}, },
filteredBlobsLength() { filteredBlobsLength() {
return this.filteredBlobs.length; return this.filteredBlobs.length;
......
...@@ -44,7 +44,9 @@ export default { ...@@ -44,7 +44,9 @@ export default {
e.preventDefault(); e.preventDefault();
} }
if (!e.target.classList.contains('inputarea')) {
this.toggleFileFinder(!this.fileFindVisible); this.toggleFileFinder(!this.fileFindVisible);
}
}); });
Mousetrap.stopCallback = (e, el, combo) => this.mousetrapStopCallback(e, el, combo); 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