mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
parent
de1491a310
commit
1248307b96
2 changed files with 0 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue