mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
#2 change Everything default search mode
This commit is contained in:
@@ -215,10 +215,15 @@ namespace Wox.Plugin.Everything
|
|||||||
if (maxCount < 0)
|
if (maxCount < 0)
|
||||||
throw new ArgumentOutOfRangeException("maxCount");
|
throw new ArgumentOutOfRangeException("maxCount");
|
||||||
|
|
||||||
|
if (keyWord.StartsWith("@"))
|
||||||
|
{
|
||||||
|
Everything_SetRegex(true);
|
||||||
|
keyWord = keyWord.Substring(1);
|
||||||
|
}
|
||||||
Everything_SetSearch(keyWord);
|
Everything_SetSearch(keyWord);
|
||||||
Everything_SetOffset(offset);
|
Everything_SetOffset(offset);
|
||||||
Everything_SetMax(maxCount);
|
Everything_SetMax(maxCount);
|
||||||
Everything_SetRegex(true);
|
|
||||||
|
|
||||||
if (!Everything_Query(true))
|
if (!Everything_Query(true))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user