mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
@@ -227,8 +227,6 @@ namespace Wox.Plugin.Everything.Everything
|
|||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Everything_SortResultsByPath();
|
|
||||||
|
|
||||||
const int bufferSize = 4096;
|
const int bufferSize = 4096;
|
||||||
StringBuilder buffer = new StringBuilder(bufferSize);
|
StringBuilder buffer = new StringBuilder(bufferSize);
|
||||||
for (int idx = 0; idx < Everything_GetNumResults(); ++idx)
|
for (int idx = 0; idx < Everything_GetNumResults(); ++idx)
|
||||||
|
|||||||
@@ -47,12 +47,6 @@ namespace Wox.Plugin.Everything
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var searchList = api.Search(keyword, maxCount: ContextMenuStorage.Instance.MaxSearchCount).ToList();
|
var searchList = api.Search(keyword, maxCount: ContextMenuStorage.Instance.MaxSearchCount).ToList();
|
||||||
var fuzzyMather = FuzzyMatcher.Create(keyword);
|
|
||||||
searchList.Sort(
|
|
||||||
(x, y) =>
|
|
||||||
fuzzyMather.Evaluate(Path.GetFileName(y.FullPath)).Score -
|
|
||||||
fuzzyMather.Evaluate(Path.GetFileName(x.FullPath)).Score);
|
|
||||||
|
|
||||||
foreach (var s in searchList)
|
foreach (var s in searchList)
|
||||||
{
|
{
|
||||||
var path = s.FullPath;
|
var path = s.FullPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user