From 6a43b8b159e12667a8280187f19e405f7f8d2f94 Mon Sep 17 00:00:00 2001 From: Alekhya Reddy Date: Thu, 2 Apr 2020 15:53:39 -0700 Subject: [PATCH 1/4] copy resource files to output folder --- .../Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj index 37f4a2e7bd..f6e8c454d3 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj @@ -39,4 +39,13 @@ + + + PreserveNewest + + + PreserveNewest + + + From 38490195e3ed772e2f2abf7a459a10fafd4e9a32 Mon Sep 17 00:00:00 2001 From: Alekhya Reddy Date: Thu, 2 Apr 2020 15:55:30 -0700 Subject: [PATCH 2/4] Corrected the output path for the indexer plugin --- .../Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj index f6e8c454d3..0631ed280b 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj @@ -7,7 +7,7 @@ true - ..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.Folder\ + ..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.Indexer\ DEBUG;TRACE full x64 @@ -19,7 +19,7 @@ - ..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.Folder\ + ..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.Indexer\ TRACE true pdbonly From ad6ca65d4b3da20bd302425edac69515226c3d98 Mon Sep 17 00:00:00 2001 From: Alekhya Reddy Date: Thu, 2 Apr 2020 17:49:43 -0700 Subject: [PATCH 3/4] windows indexer plugin is working --- .../launcher/Plugins/Wox.Plugin.Indexer/Main.cs | 2 +- .../SearchHelper/WindowsSearchAPI.cs | 10 ++++++---- .../Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj | 13 ++++++++++++- src/modules/launcher/Wox/Wox.csproj | 2 ++ 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Main.cs index 652af40c40..8d6af797e9 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Main.cs +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Main.cs @@ -92,7 +92,7 @@ namespace Wox.Plugin.Indexer results.Add(new Result { // TODO: Localize the string - Title = "Windows indexer plugin is not running", + Title = ex.ToString(), IcoPath = "Images\\WindowsIndexerImg.bmp" }); } diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs index 64875595a1..23dc200635 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs @@ -32,10 +32,12 @@ namespace Wox.Plugin.Indexer.SearchHelper while (WDSResults.Read()) { // col 0 is our path in display format - Console.WriteLine("{0}", WDSResults.GetString(0)); - var result = new SearchResult { Path = WDSResults.GetString(0) }; - - yield return result; + if (WDSResults.GetString(0) != null) + { + //Console.WriteLine("{0}", WDSResults.GetString(0)); + var result = new SearchResult { Path = WDSResults.GetString(0) }; + yield return result; + } } } diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj index 0631ed280b..eb9676e683 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj @@ -1,7 +1,14 @@ - + netcoreapp3.1 + {F8B870EB-D5F5-45BA-9CF7-A5C459818820} + Properties + Wox.Plugin.Indexer + Wox.Plugin.Indexer + true + false + false x64 @@ -48,4 +55,8 @@ + + + + diff --git a/src/modules/launcher/Wox/Wox.csproj b/src/modules/launcher/Wox/Wox.csproj index a67357ac21..fc0cd94bd9 100644 --- a/src/modules/launcher/Wox/Wox.csproj +++ b/src/modules/launcher/Wox/Wox.csproj @@ -68,9 +68,11 @@ runtime; build; native; contentfiles; analyzers; buildtransitive + + From 57c616abfed5349f3e20e644ecaaf95d0e1dfc77 Mon Sep 17 00:00:00 2001 From: Alekhya Reddy Date: Thu, 2 Apr 2020 18:03:40 -0700 Subject: [PATCH 4/4] Remove console print statement --- .../Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs index 23dc200635..fb7b6ffcd1 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs @@ -34,7 +34,6 @@ namespace Wox.Plugin.Indexer.SearchHelper // col 0 is our path in display format if (WDSResults.GetString(0) != null) { - //Console.WriteLine("{0}", WDSResults.GetString(0)); var result = new SearchResult { Path = WDSResults.GetString(0) }; yield return result; }