Fixed IDE file finder ordering

Fixes the file finder not opening when focused inside the editor
This commit is contained in:
Phil Hughes 2018-05-14 16:59:07 +01:00
parent 6a77a6a11f
commit ca6e2a4566
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
2 changed files with 7 additions and 7 deletions

View File

@ -39,12 +39,10 @@ export default {
return this.allBlobs.slice(0, MAX_FILE_FINDER_RESULTS);
}
return fuzzaldrinPlus
.filter(this.allBlobs, searchText, {
key: 'path',
maxResults: MAX_FILE_FINDER_RESULTS,
})
.sort((a, b) => b.lastOpenedAt - a.lastOpenedAt);
return fuzzaldrinPlus.filter(this.allBlobs, searchText, {
key: 'path',
maxResults: MAX_FILE_FINDER_RESULTS,
});
},
filteredBlobsLength() {
return this.filteredBlobs.length;

View File

@ -44,7 +44,9 @@ export default {
e.preventDefault();
}
this.toggleFileFinder(!this.fileFindVisible);
if (!e.target.classList.contains('inputarea')) {
this.toggleFileFinder(!this.fileFindVisible);
}
});
Mousetrap.stopCallback = (e, el, combo) => this.mousetrapStopCallback(e, el, combo);