Implement glob match for path and extension search in Locate bar #336 (issue SpartanJ/ecode#336).

This commit is contained in:
Martín Lucas Golini
2024-09-24 23:13:53 -03:00
parent 42c4fd5f6c
commit bef41153c1
8 changed files with 116 additions and 26 deletions

View File

@@ -377,10 +377,11 @@ void StatusBuildOutputController::onLoadDone( const Variant& lineNum, const Vari
}
void StatusBuildOutputController::setHeaderWidth() {
auto totWidth = eefloor( mTableIssues->getPixelsSize().getWidth() -
( mTableIssues->getVerticalScrollBar()->isVisible()
? mTableIssues->getVerticalScrollBar()->getPixelsSize().getWidth()
: 0.f ) );
auto totWidth =
eefloor( mTableIssues->getPixelsSize().getWidth() -
( mTableIssues->getVerticalScrollBar()->isVisible()
? mTableIssues->getVerticalScrollBar()->getPixelsSize().getWidth()
: 0.f ) );
Float col1 = eefloor( totWidth * 0.80f );
Float col2 = eefloor( totWidth * 0.15f );
Float col3 = totWidth - col1 - col2;
@@ -457,8 +458,9 @@ void StatusBuildOutputController::createContainer() {
} );
} else {
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN || defined( __EMSCRIPTEN_PTHREADS__ )
mApp->getDirTree()->asyncFuzzyMatchTree(
path, 1, [this, colNum, lineNum]( std::shared_ptr<FileListModel> res ) {
mApp->getDirTree()->asyncMatchTree(
ProjectDirectoryTree::MatchType::Fuzzy, path, 1,
[this, colNum, lineNum]( std::shared_ptr<FileListModel> res ) {
if ( res->rowCount( {} ) == 0 )
return;
auto data = res->data( res->index( 0, 1 ) );