Fixed IDE file finder ordering
Fixes the file finder not opening when focused inside the editor
This commit is contained in:
parent
6a77a6a11f
commit
ca6e2a4566
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue