mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-14 23:12:49 +03:00
Added a new fuzzy matching algorithm, it should be better than the previous version, it's similar to what most editors have (implementation is inspired in the sublime_text fuzzy matcher).
This commit is contained in:
@@ -410,7 +410,7 @@ PluginRequestHandle LSPClientPlugin::processWorkspaceSymbol( const PluginMessage
|
||||
if ( !query.empty() ) {
|
||||
for ( auto& i : info ) {
|
||||
if ( i.score == 0.f )
|
||||
i.score = String::fuzzyMatch( i.name, query );
|
||||
i.score = String::fuzzyMatch( query, i.name );
|
||||
}
|
||||
}
|
||||
mManager->sendResponse( this, PluginMessageType::WorkspaceSymbol,
|
||||
@@ -422,7 +422,7 @@ PluginRequestHandle LSPClientPlugin::processWorkspaceSymbol( const PluginMessage
|
||||
if ( !query.empty() ) {
|
||||
for ( auto& i : info ) {
|
||||
if ( i.score == 0.f )
|
||||
i.score = String::fuzzyMatch( i.name, query );
|
||||
i.score = String::fuzzyMatch( query, i.name );
|
||||
}
|
||||
}
|
||||
mManager->sendResponse( this, PluginMessageType::WorkspaceSymbol,
|
||||
|
||||
Reference in New Issue
Block a user