diff --git a/PowerToys.sln b/PowerToys.sln
index 396ff8efa7..2fb57c69e9 100644
--- a/PowerToys.sln
+++ b/PowerToys.sln
@@ -158,236 +158,146 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wox.Plugin.Indexer", "src\m
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
- Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {9412D5C6-2CF2-4FC2-A601-B55508EA9B27}.Debug|Any CPU.ActiveCfg = Debug|x64
{9412D5C6-2CF2-4FC2-A601-B55508EA9B27}.Debug|x64.ActiveCfg = Debug|x64
{9412D5C6-2CF2-4FC2-A601-B55508EA9B27}.Debug|x64.Build.0 = Debug|x64
- {9412D5C6-2CF2-4FC2-A601-B55508EA9B27}.Release|Any CPU.ActiveCfg = Release|x64
{9412D5C6-2CF2-4FC2-A601-B55508EA9B27}.Release|x64.ActiveCfg = Release|x64
{9412D5C6-2CF2-4FC2-A601-B55508EA9B27}.Release|x64.Build.0 = Release|x64
- {74485049-C722-400F-ABE5-86AC52D929B3}.Debug|Any CPU.ActiveCfg = Debug|x64
{74485049-C722-400F-ABE5-86AC52D929B3}.Debug|x64.ActiveCfg = Debug|x64
{74485049-C722-400F-ABE5-86AC52D929B3}.Debug|x64.Build.0 = Debug|x64
- {74485049-C722-400F-ABE5-86AC52D929B3}.Release|Any CPU.ActiveCfg = Release|x64
{74485049-C722-400F-ABE5-86AC52D929B3}.Release|x64.ActiveCfg = Release|x64
{74485049-C722-400F-ABE5-86AC52D929B3}.Release|x64.Build.0 = Release|x64
- {A46629C4-1A6C-40FA-A8B6-10E5102BB0BA}.Debug|Any CPU.ActiveCfg = Debug|x64
{A46629C4-1A6C-40FA-A8B6-10E5102BB0BA}.Debug|x64.ActiveCfg = Debug|x64
{A46629C4-1A6C-40FA-A8B6-10E5102BB0BA}.Debug|x64.Build.0 = Debug|x64
- {A46629C4-1A6C-40FA-A8B6-10E5102BB0BA}.Release|Any CPU.ActiveCfg = Release|x64
{A46629C4-1A6C-40FA-A8B6-10E5102BB0BA}.Release|x64.ActiveCfg = Release|x64
{A46629C4-1A6C-40FA-A8B6-10E5102BB0BA}.Release|x64.Build.0 = Release|x64
- {44CC9375-3E6E-4D99-8913-7FB748807EBD}.Debug|Any CPU.ActiveCfg = Debug|x64
{44CC9375-3E6E-4D99-8913-7FB748807EBD}.Debug|x64.ActiveCfg = Debug|x64
{44CC9375-3E6E-4D99-8913-7FB748807EBD}.Debug|x64.Build.0 = Debug|x64
- {44CC9375-3E6E-4D99-8913-7FB748807EBD}.Release|Any CPU.ActiveCfg = Release|x64
{44CC9375-3E6E-4D99-8913-7FB748807EBD}.Release|x64.ActiveCfg = Release|x64
{44CC9375-3E6E-4D99-8913-7FB748807EBD}.Release|x64.Build.0 = Release|x64
- {07C389E3-6BC8-41CF-923E-307B1265FA2D}.Debug|Any CPU.ActiveCfg = Debug|x64
{07C389E3-6BC8-41CF-923E-307B1265FA2D}.Debug|x64.ActiveCfg = Debug|x64
{07C389E3-6BC8-41CF-923E-307B1265FA2D}.Debug|x64.Build.0 = Debug|x64
- {07C389E3-6BC8-41CF-923E-307B1265FA2D}.Release|Any CPU.ActiveCfg = Release|x64
{07C389E3-6BC8-41CF-923E-307B1265FA2D}.Release|x64.ActiveCfg = Release|x64
{07C389E3-6BC8-41CF-923E-307B1265FA2D}.Release|x64.Build.0 = Release|x64
- {F9C68EDF-AC74-4B77-9AF1-005D9C9F6A99}.Debug|Any CPU.ActiveCfg = Debug|x64
{F9C68EDF-AC74-4B77-9AF1-005D9C9F6A99}.Debug|x64.ActiveCfg = Debug|x64
{F9C68EDF-AC74-4B77-9AF1-005D9C9F6A99}.Debug|x64.Build.0 = Debug|x64
- {F9C68EDF-AC74-4B77-9AF1-005D9C9F6A99}.Release|Any CPU.ActiveCfg = Release|x64
{F9C68EDF-AC74-4B77-9AF1-005D9C9F6A99}.Release|x64.ActiveCfg = Release|x64
{F9C68EDF-AC74-4B77-9AF1-005D9C9F6A99}.Release|x64.Build.0 = Release|x64
- {48804216-2A0E-4168-A6D8-9CD068D14227}.Debug|Any CPU.ActiveCfg = Debug|x64
{48804216-2A0E-4168-A6D8-9CD068D14227}.Debug|x64.ActiveCfg = Debug|x64
{48804216-2A0E-4168-A6D8-9CD068D14227}.Debug|x64.Build.0 = Debug|x64
- {48804216-2A0E-4168-A6D8-9CD068D14227}.Release|Any CPU.ActiveCfg = Release|x64
{48804216-2A0E-4168-A6D8-9CD068D14227}.Release|x64.ActiveCfg = Release|x64
{48804216-2A0E-4168-A6D8-9CD068D14227}.Release|x64.Build.0 = Release|x64
- {9C6A7905-72D4-4BF5-B256-ABFDAEF68AE9}.Debug|Any CPU.ActiveCfg = Debug|x64
{9C6A7905-72D4-4BF5-B256-ABFDAEF68AE9}.Debug|x64.ActiveCfg = Debug|x64
{9C6A7905-72D4-4BF5-B256-ABFDAEF68AE9}.Debug|x64.Build.0 = Debug|x64
- {9C6A7905-72D4-4BF5-B256-ABFDAEF68AE9}.Release|Any CPU.ActiveCfg = Release|x64
{9C6A7905-72D4-4BF5-B256-ABFDAEF68AE9}.Release|x64.ActiveCfg = Release|x64
{9C6A7905-72D4-4BF5-B256-ABFDAEF68AE9}.Release|x64.Build.0 = Release|x64
- {1A066C63-64B3-45F8-92FE-664E1CCE8077}.Debug|Any CPU.ActiveCfg = Debug|x64
{1A066C63-64B3-45F8-92FE-664E1CCE8077}.Debug|x64.ActiveCfg = Debug|x64
{1A066C63-64B3-45F8-92FE-664E1CCE8077}.Debug|x64.Build.0 = Debug|x64
- {1A066C63-64B3-45F8-92FE-664E1CCE8077}.Release|Any CPU.ActiveCfg = Release|x64
{1A066C63-64B3-45F8-92FE-664E1CCE8077}.Release|x64.ActiveCfg = Release|x64
{1A066C63-64B3-45F8-92FE-664E1CCE8077}.Release|x64.Build.0 = Release|x64
- {5CCC8468-DEC8-4D36-99D4-5C891BEBD481}.Debug|Any CPU.ActiveCfg = Debug|x64
{5CCC8468-DEC8-4D36-99D4-5C891BEBD481}.Debug|x64.ActiveCfg = Debug|x64
{5CCC8468-DEC8-4D36-99D4-5C891BEBD481}.Debug|x64.Build.0 = Debug|x64
- {5CCC8468-DEC8-4D36-99D4-5C891BEBD481}.Release|Any CPU.ActiveCfg = Release|x64
{5CCC8468-DEC8-4D36-99D4-5C891BEBD481}.Release|x64.ActiveCfg = Release|x64
{5CCC8468-DEC8-4D36-99D4-5C891BEBD481}.Release|x64.Build.0 = Release|x64
- {B25AC7A5-FB9F-4789-B392-D5C85E948670}.Debug|Any CPU.ActiveCfg = Debug|Win32
{B25AC7A5-FB9F-4789-B392-D5C85E948670}.Debug|x64.ActiveCfg = Debug|x64
{B25AC7A5-FB9F-4789-B392-D5C85E948670}.Debug|x64.Build.0 = Debug|x64
- {B25AC7A5-FB9F-4789-B392-D5C85E948670}.Release|Any CPU.ActiveCfg = Release|Win32
{B25AC7A5-FB9F-4789-B392-D5C85E948670}.Release|x64.ActiveCfg = Release|x64
{B25AC7A5-FB9F-4789-B392-D5C85E948670}.Release|x64.Build.0 = Release|x64
- {51920F1F-C28C-4ADF-8660-4238766796C2}.Debug|Any CPU.ActiveCfg = Debug|Win32
{51920F1F-C28C-4ADF-8660-4238766796C2}.Debug|x64.ActiveCfg = Debug|x64
{51920F1F-C28C-4ADF-8660-4238766796C2}.Debug|x64.Build.0 = Debug|x64
- {51920F1F-C28C-4ADF-8660-4238766796C2}.Release|Any CPU.ActiveCfg = Release|Win32
{51920F1F-C28C-4ADF-8660-4238766796C2}.Release|x64.ActiveCfg = Release|x64
{51920F1F-C28C-4ADF-8660-4238766796C2}.Release|x64.Build.0 = Release|x64
- {0E072714-D127-460B-AFAD-B4C40B412798}.Debug|Any CPU.ActiveCfg = Debug|x64
{0E072714-D127-460B-AFAD-B4C40B412798}.Debug|x64.ActiveCfg = Debug|x64
{0E072714-D127-460B-AFAD-B4C40B412798}.Debug|x64.Build.0 = Debug|x64
- {0E072714-D127-460B-AFAD-B4C40B412798}.Release|Any CPU.ActiveCfg = Release|x64
{0E072714-D127-460B-AFAD-B4C40B412798}.Release|x64.ActiveCfg = Release|x64
{0E072714-D127-460B-AFAD-B4C40B412798}.Release|x64.Build.0 = Release|x64
- {A3935CF4-46C5-4A88-84D3-6B12E16E6BA2}.Debug|Any CPU.ActiveCfg = Debug|Win32
{A3935CF4-46C5-4A88-84D3-6B12E16E6BA2}.Debug|x64.ActiveCfg = Debug|x64
{A3935CF4-46C5-4A88-84D3-6B12E16E6BA2}.Debug|x64.Build.0 = Debug|x64
- {A3935CF4-46C5-4A88-84D3-6B12E16E6BA2}.Release|Any CPU.ActiveCfg = Release|Win32
{A3935CF4-46C5-4A88-84D3-6B12E16E6BA2}.Release|x64.ActiveCfg = Release|x64
{A3935CF4-46C5-4A88-84D3-6B12E16E6BA2}.Release|x64.Build.0 = Release|x64
- {2151F984-E006-4A9F-92EF-C6DDE3DC8413}.Debug|Any CPU.ActiveCfg = Debug|Win32
{2151F984-E006-4A9F-92EF-C6DDE3DC8413}.Debug|x64.ActiveCfg = Debug|x64
{2151F984-E006-4A9F-92EF-C6DDE3DC8413}.Debug|x64.Build.0 = Debug|x64
- {2151F984-E006-4A9F-92EF-C6DDE3DC8413}.Release|Any CPU.ActiveCfg = Release|Win32
{2151F984-E006-4A9F-92EF-C6DDE3DC8413}.Release|x64.ActiveCfg = Release|x64
{2151F984-E006-4A9F-92EF-C6DDE3DC8413}.Release|x64.Build.0 = Release|x64
- {64A80062-4D8B-4229-8A38-DFA1D7497749}.Debug|Any CPU.ActiveCfg = Debug|x64
{64A80062-4D8B-4229-8A38-DFA1D7497749}.Debug|x64.ActiveCfg = Debug|x64
{64A80062-4D8B-4229-8A38-DFA1D7497749}.Debug|x64.Build.0 = Debug|x64
- {64A80062-4D8B-4229-8A38-DFA1D7497749}.Release|Any CPU.ActiveCfg = Release|x64
{64A80062-4D8B-4229-8A38-DFA1D7497749}.Release|x64.ActiveCfg = Release|x64
{64A80062-4D8B-4229-8A38-DFA1D7497749}.Release|x64.Build.0 = Release|x64
- {0485F45C-EA7A-4BB5-804B-3E8D14699387}.Debug|Any CPU.ActiveCfg = Debug|x64
{0485F45C-EA7A-4BB5-804B-3E8D14699387}.Debug|x64.ActiveCfg = Debug|x64
{0485F45C-EA7A-4BB5-804B-3E8D14699387}.Debug|x64.Build.0 = Debug|x64
- {0485F45C-EA7A-4BB5-804B-3E8D14699387}.Release|Any CPU.ActiveCfg = Release|x64
{0485F45C-EA7A-4BB5-804B-3E8D14699387}.Release|x64.ActiveCfg = Release|x64
{0485F45C-EA7A-4BB5-804B-3E8D14699387}.Release|x64.Build.0 = Release|x64
- {0B593A6C-4143-4337-860E-DB5710FB87DB}.Debug|Any CPU.ActiveCfg = Debug|Win32
{0B593A6C-4143-4337-860E-DB5710FB87DB}.Debug|x64.ActiveCfg = Debug|x64
{0B593A6C-4143-4337-860E-DB5710FB87DB}.Debug|x64.Build.0 = Debug|x64
- {0B593A6C-4143-4337-860E-DB5710FB87DB}.Release|Any CPU.ActiveCfg = Release|Win32
{0B593A6C-4143-4337-860E-DB5710FB87DB}.Release|x64.ActiveCfg = Release|x64
{0B593A6C-4143-4337-860E-DB5710FB87DB}.Release|x64.Build.0 = Release|x64
- {031AC72E-FA28-4AB7-B690-6F7B9C28AA73}.Debug|Any CPU.ActiveCfg = Debug|Win32
{031AC72E-FA28-4AB7-B690-6F7B9C28AA73}.Debug|x64.ActiveCfg = Debug|x64
{031AC72E-FA28-4AB7-B690-6F7B9C28AA73}.Debug|x64.Build.0 = Debug|x64
- {031AC72E-FA28-4AB7-B690-6F7B9C28AA73}.Release|Any CPU.ActiveCfg = Release|Win32
{031AC72E-FA28-4AB7-B690-6F7B9C28AA73}.Release|x64.ActiveCfg = Release|x64
{031AC72E-FA28-4AB7-B690-6F7B9C28AA73}.Release|x64.Build.0 = Release|x64
- {B9BDF8BE-FED7-49B5-A7AE-DD4D1CA2D9EB}.Debug|Any CPU.ActiveCfg = Debug|x64
{B9BDF8BE-FED7-49B5-A7AE-DD4D1CA2D9EB}.Debug|x64.ActiveCfg = Debug|x64
{B9BDF8BE-FED7-49B5-A7AE-DD4D1CA2D9EB}.Debug|x64.Build.0 = Debug|x64
- {B9BDF8BE-FED7-49B5-A7AE-DD4D1CA2D9EB}.Release|Any CPU.ActiveCfg = Release|x64
{B9BDF8BE-FED7-49B5-A7AE-DD4D1CA2D9EB}.Release|x64.ActiveCfg = Release|x64
{B9BDF8BE-FED7-49B5-A7AE-DD4D1CA2D9EB}.Release|x64.Build.0 = Release|x64
- {51D3BD1F-07A8-48EB-B2A0-0A249CD4E1A6}.Debug|Any CPU.ActiveCfg = Debug|x64
{51D3BD1F-07A8-48EB-B2A0-0A249CD4E1A6}.Debug|x64.ActiveCfg = Debug|x64
{51D3BD1F-07A8-48EB-B2A0-0A249CD4E1A6}.Debug|x64.Build.0 = Debug|x64
- {51D3BD1F-07A8-48EB-B2A0-0A249CD4E1A6}.Release|Any CPU.ActiveCfg = Release|x64
{51D3BD1F-07A8-48EB-B2A0-0A249CD4E1A6}.Release|x64.ActiveCfg = Release|x64
{51D3BD1F-07A8-48EB-B2A0-0A249CD4E1A6}.Release|x64.Build.0 = Release|x64
- {D29DDD63-E2CF-4657-9FD5-2AEDE4257E5D}.Debug|Any CPU.ActiveCfg = Debug|Win32
{D29DDD63-E2CF-4657-9FD5-2AEDE4257E5D}.Debug|x64.ActiveCfg = Debug|x64
{D29DDD63-E2CF-4657-9FD5-2AEDE4257E5D}.Debug|x64.Build.0 = Debug|x64
- {D29DDD63-E2CF-4657-9FD5-2AEDE4257E5D}.Release|Any CPU.ActiveCfg = Release|Win32
{D29DDD63-E2CF-4657-9FD5-2AEDE4257E5D}.Release|x64.ActiveCfg = Release|x64
{D29DDD63-E2CF-4657-9FD5-2AEDE4257E5D}.Release|x64.Build.0 = Release|x64
- {17DA04DF-E393-4397-9CF0-84DABE11032E}.Debug|Any CPU.ActiveCfg = Debug|Win32
{17DA04DF-E393-4397-9CF0-84DABE11032E}.Debug|x64.ActiveCfg = Debug|x64
{17DA04DF-E393-4397-9CF0-84DABE11032E}.Debug|x64.Build.0 = Debug|x64
- {17DA04DF-E393-4397-9CF0-84DABE11032E}.Release|Any CPU.ActiveCfg = Release|Win32
{17DA04DF-E393-4397-9CF0-84DABE11032E}.Release|x64.ActiveCfg = Release|x64
{17DA04DF-E393-4397-9CF0-84DABE11032E}.Release|x64.Build.0 = Release|x64
- {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Debug|x64.ActiveCfg = Debug|Any CPU
- {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Debug|x64.Build.0 = Debug|Any CPU
- {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Release|Any CPU.Build.0 = Release|Any CPU
- {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Release|x64.ActiveCfg = Release|Any CPU
- {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Release|x64.Build.0 = Release|Any CPU
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Debug|x64.ActiveCfg = Debug|Any CPU
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Debug|x64.Build.0 = Debug|Any CPU
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Release|Any CPU.Build.0 = Release|Any CPU
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Release|x64.ActiveCfg = Release|Any CPU
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Release|x64.Build.0 = Release|Any CPU
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|x64.ActiveCfg = Debug|Any CPU
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|x64.Build.0 = Debug|Any CPU
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|Any CPU.Build.0 = Release|Any CPU
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|x64.ActiveCfg = Release|Any CPU
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|x64.Build.0 = Release|Any CPU
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Debug|x64.ActiveCfg = Debug|Any CPU
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Debug|x64.Build.0 = Debug|Any CPU
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Release|Any CPU.Build.0 = Release|Any CPU
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Release|x64.ActiveCfg = Release|Any CPU
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Release|x64.Build.0 = Release|Any CPU
- {FF742965-9A80-41A5-B042-D6C7D3A21708}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FF742965-9A80-41A5-B042-D6C7D3A21708}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FF742965-9A80-41A5-B042-D6C7D3A21708}.Debug|x64.ActiveCfg = Debug|Any CPU
- {FF742965-9A80-41A5-B042-D6C7D3A21708}.Debug|x64.Build.0 = Debug|Any CPU
- {FF742965-9A80-41A5-B042-D6C7D3A21708}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FF742965-9A80-41A5-B042-D6C7D3A21708}.Release|Any CPU.Build.0 = Release|Any CPU
- {FF742965-9A80-41A5-B042-D6C7D3A21708}.Release|x64.ActiveCfg = Release|Any CPU
- {FF742965-9A80-41A5-B042-D6C7D3A21708}.Release|x64.Build.0 = Release|Any CPU
- {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Debug|x64.ActiveCfg = Debug|Any CPU
- {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Debug|x64.Build.0 = Debug|Any CPU
- {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Release|Any CPU.Build.0 = Release|Any CPU
- {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Release|x64.ActiveCfg = Release|Any CPU
- {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Release|x64.Build.0 = Release|Any CPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Debug|x64.ActiveCfg = Debug|Any CPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Debug|x64.Build.0 = Debug|Any CPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Release|Any CPU.Build.0 = Release|Any CPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Release|x64.ActiveCfg = Release|Any CPU
- {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Release|x64.Build.0 = Release|Any CPU
- {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Debug|x64.ActiveCfg = Debug|Any CPU
- {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Debug|x64.Build.0 = Debug|Any CPU
- {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Release|Any CPU.Build.0 = Release|Any CPU
- {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Release|x64.ActiveCfg = Release|Any CPU
- {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Release|x64.Build.0 = Release|Any CPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Debug|x64.ActiveCfg = Debug|Any CPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Debug|x64.Build.0 = Debug|Any CPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Release|Any CPU.Build.0 = Release|Any CPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Release|x64.ActiveCfg = Release|Any CPU
- {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Release|x64.Build.0 = Release|Any CPU
- {E364F67B-BB12-4E91-B639-355866EBCD8B}.Debug|Any CPU.ActiveCfg = Debug|x64
+ {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Debug|x64.ActiveCfg = Debug|x64
+ {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Debug|x64.Build.0 = Debug|x64
+ {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Release|x64.ActiveCfg = Release|x64
+ {DB90F671-D861-46BB-93A3-F1304F5BA1C5}.Release|x64.Build.0 = Release|x64
+ {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Debug|x64.ActiveCfg = Debug|x64
+ {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Debug|x64.Build.0 = Debug|x64
+ {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Release|x64.ActiveCfg = Release|x64
+ {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}.Release|x64.Build.0 = Release|x64
+ {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|x64.ActiveCfg = Debug|x64
+ {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Debug|x64.Build.0 = Debug|x64
+ {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|x64.ActiveCfg = Release|x64
+ {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}.Release|x64.Build.0 = Release|x64
+ {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Debug|x64.ActiveCfg = Debug|x64
+ {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Debug|x64.Build.0 = Debug|x64
+ {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Release|x64.ActiveCfg = Release|x64
+ {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}.Release|x64.Build.0 = Release|x64
+ {FF742965-9A80-41A5-B042-D6C7D3A21708}.Debug|x64.ActiveCfg = Debug|x64
+ {FF742965-9A80-41A5-B042-D6C7D3A21708}.Debug|x64.Build.0 = Debug|x64
+ {FF742965-9A80-41A5-B042-D6C7D3A21708}.Release|x64.ActiveCfg = Release|x64
+ {FF742965-9A80-41A5-B042-D6C7D3A21708}.Release|x64.Build.0 = Release|x64
+ {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Debug|x64.ActiveCfg = Debug|x64
+ {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Debug|x64.Build.0 = Debug|x64
+ {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Release|x64.ActiveCfg = Release|x64
+ {59BD9891-3837-438A-958D-ADC7F91F6F7E}.Release|x64.Build.0 = Release|x64
+ {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Debug|x64.ActiveCfg = Debug|x64
+ {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Debug|x64.Build.0 = Debug|x64
+ {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Release|x64.ActiveCfg = Release|x64
+ {FDB3555B-58EF-4AE6-B5F1-904719637AB4}.Release|x64.Build.0 = Release|x64
+ {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Debug|x64.ActiveCfg = Debug|x64
+ {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Debug|x64.Build.0 = Debug|x64
+ {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Release|x64.ActiveCfg = Release|x64
+ {C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}.Release|x64.Build.0 = Release|x64
+ {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Debug|x64.ActiveCfg = Debug|x64
+ {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Debug|x64.Build.0 = Debug|x64
+ {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Release|x64.ActiveCfg = Release|x64
+ {787B8AA6-CA93-4C84-96FE-DF31110AD1C4}.Release|x64.Build.0 = Release|x64
{E364F67B-BB12-4E91-B639-355866EBCD8B}.Debug|x64.ActiveCfg = Debug|x64
{E364F67B-BB12-4E91-B639-355866EBCD8B}.Debug|x64.Build.0 = Debug|x64
- {E364F67B-BB12-4E91-B639-355866EBCD8B}.Release|Any CPU.ActiveCfg = Release|x64
{E364F67B-BB12-4E91-B639-355866EBCD8B}.Release|x64.ActiveCfg = Release|x64
{E364F67B-BB12-4E91-B639-355866EBCD8B}.Release|x64.Build.0 = Release|x64
- {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Debug|x64.ActiveCfg = Debug|Any CPU
- {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Debug|x64.Build.0 = Debug|Any CPU
- {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Release|Any CPU.Build.0 = Release|Any CPU
- {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Release|x64.ActiveCfg = Release|Any CPU
- {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Release|x64.Build.0 = Release|Any CPU
+ {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Debug|x64.ActiveCfg = Debug|x64
+ {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Debug|x64.Build.0 = Debug|x64
+ {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Release|x64.ActiveCfg = Release|x64
+ {63C3CEA8-51FE-472E-B97C-B58F8B17DD51}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/src/modules/launcher/Plugins/HelloWorldCSharp/App.config b/src/modules/launcher/Plugins/HelloWorldCSharp/App.config
deleted file mode 100644
index 88fa4027bd..0000000000
--- a/src/modules/launcher/Plugins/HelloWorldCSharp/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/HelloWorldCSharp/HelloWorldCSharp.csproj b/src/modules/launcher/Plugins/HelloWorldCSharp/HelloWorldCSharp.csproj
deleted file mode 100644
index 46006f0986..0000000000
--- a/src/modules/launcher/Plugins/HelloWorldCSharp/HelloWorldCSharp.csproj
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {03FFA443-5F50-48D5-8869-F3DF316803AA}
- Library
- Properties
- HelloWorldCSharp
- HelloWorldCSharp
- v4.5.2
- 512
- true
-
-
- AnyCPU
- true
- full
- false
- ..\..\Output\Debug\Plugins\HelloWorldCSharp\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- AnyCPU
- pdbonly
- true
- ..\..\Output\Release\Plugins\HelloWorldCSharp\
- TRACE
- prompt
- 4
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PreserveNewest
-
-
-
-
- {8451ECDD-2EA4-4966-BB0A-7BBC40138E80}
- Wox.Plugin
-
-
-
-
-
- PreserveNewest
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/HelloWorldCSharp/Images/app.png b/src/modules/launcher/Plugins/HelloWorldCSharp/Images/app.png
deleted file mode 100644
index 8c9ca7971a..0000000000
Binary files a/src/modules/launcher/Plugins/HelloWorldCSharp/Images/app.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/HelloWorldCSharp/Main.cs b/src/modules/launcher/Plugins/HelloWorldCSharp/Main.cs
deleted file mode 100644
index 4f17cd43d7..0000000000
--- a/src/modules/launcher/Plugins/HelloWorldCSharp/Main.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Wox.Plugin;
-
-namespace HelloWorldCSharp
-{
- class Main : IPlugin
- {
- public List Query(Query query)
- {
- var result = new Result
- {
- Title = "Hello World from CSharp",
- SubTitle = $"Query: {query.Search}",
- IcoPath = "app.png"
- };
- return new List {result};
- }
-
- public void Init(PluginInitContext context)
- {
-
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/HelloWorldCSharp/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/HelloWorldCSharp/Properties/AssemblyInfo.cs
deleted file mode 100644
index 39677ff22d..0000000000
--- a/src/modules/launcher/Plugins/HelloWorldCSharp/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("HelloWorldCSharp")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("HelloWorldCSharp")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("03ffa443-5f50-48d5-8869-f3df316803aa")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/modules/launcher/Plugins/HelloWorldCSharp/plugin.json b/src/modules/launcher/Plugins/HelloWorldCSharp/plugin.json
deleted file mode 100644
index b7edbd6a9a..0000000000
--- a/src/modules/launcher/Plugins/HelloWorldCSharp/plugin.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "ID":"CEA0FDFC6D3B4085823D60DC76F28844",
- "ActionKeyword":"hc",
- "Name":"Hello World CSharp",
- "Description":"Hello World CSharp",
- "Author":"happlebao",
- "Version":"1.0.0",
- "Language":"csharp",
- "Website":"https://github.com/Wox-launcher/Wox",
- "ExecuteFileName":"HelloWorldCSharp.dll",
- "IcoPath":"app.png",
- "Disabled": true
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/HelloWorldPython/Images/app.png b/src/modules/launcher/Plugins/HelloWorldPython/Images/app.png
deleted file mode 100644
index 8c9ca7971a..0000000000
Binary files a/src/modules/launcher/Plugins/HelloWorldPython/Images/app.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/HelloWorldPython/main.py b/src/modules/launcher/Plugins/HelloWorldPython/main.py
deleted file mode 100644
index e7b7edfc24..0000000000
--- a/src/modules/launcher/Plugins/HelloWorldPython/main.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from wox import Wox
-
-class HelloWorld(Wox):
-
- def query(self, query):
- results = []
- results.append({
- "Title": "Hello World",
- "SubTitle": "Query: {}".format(query),
- "IcoPath":"Images/app.ico",
- "ContextData": "ctxData"
- })
- return results
-
- def context_menu(self, data):
- results = []
- results.append({
- "Title": "Context menu entry",
- "SubTitle": "Data: {}".format(data),
- "IcoPath":"Images/app.ico"
- })
- return results
-
-if __name__ == "__main__":
- HelloWorld()
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/HelloWorldPython/plugin.json b/src/modules/launcher/Plugins/HelloWorldPython/plugin.json
deleted file mode 100644
index a928a5ae5b..0000000000
--- a/src/modules/launcher/Plugins/HelloWorldPython/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "ID":"2f4e384e-76ce-45c3-aea2-b16f5e5c328f",
- "ActionKeyword":"h",
- "Name":"Hello World Python",
- "Description":"Hello World",
- "Author":"happlebao",
- "Version":"1.0",
- "Language":"python",
- "Website":"https://github.com/Wox-launcher/Wox",
- "IcoPath":"Images\\app.png",
- "ExecuteFileName":"main.py"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Bookmark.cs b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Bookmark.cs
deleted file mode 100644
index 700f253e8f..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Bookmark.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-using BinaryAnalysis.UnidecodeSharp;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-
-namespace Wox.Plugin.BrowserBookmark
-{
- public class Bookmark : IEquatable, IEqualityComparer
- {
- private string m_Name;
- public string Name
- {
- get
- {
- return m_Name;
- }
- set
- {
- m_Name = value;
- PinyinName = m_Name.Unidecode();
- }
- }
- public string PinyinName { get; private set; }
- public string Url { get; set; }
- public string Source { get; set; }
- public int Score { get; set; }
-
- /* TODO: since Source maybe unimportant, we just need to compare Name and Url */
- public bool Equals(Bookmark other)
- {
- return Equals(this, other);
- }
-
- public bool Equals(Bookmark x, Bookmark y)
- {
- if (Object.ReferenceEquals(x, y)) return true;
- if (Object.ReferenceEquals(x, null) || Object.ReferenceEquals(y, null))
- return false;
-
- return x.Name == y.Name && x.Url == y.Url;
- }
-
- public int GetHashCode(Bookmark bookmark)
- {
- if (Object.ReferenceEquals(bookmark, null)) return 0;
- int hashName = bookmark.Name == null ? 0 : bookmark.Name.GetHashCode();
- int hashUrl = bookmark.Url == null ? 0 : bookmark.Url.GetHashCode();
- return hashName ^ hashUrl;
- }
-
- public override int GetHashCode()
- {
- return GetHashCode(this);
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/ChromeBookmarks.cs b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/ChromeBookmarks.cs
deleted file mode 100644
index 16e5c328cb..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/ChromeBookmarks.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text.RegularExpressions;
-
-namespace Wox.Plugin.BrowserBookmark
-{
- public class ChromeBookmarks
- {
- private List bookmarks = new List();
-
- public List GetBookmarks()
- {
- bookmarks.Clear();
- LoadChromeBookmarks();
-
- return bookmarks;
- }
-
- private void ParseChromeBookmarks(String path, string source)
- {
- if (!File.Exists(path)) return;
-
- string all = File.ReadAllText(path);
- Regex nameRegex = new Regex("\"name\": \"(?.*?)\"");
- MatchCollection nameCollection = nameRegex.Matches(all);
- Regex typeRegex = new Regex("\"type\": \"(?.*?)\"");
- MatchCollection typeCollection = typeRegex.Matches(all);
- Regex urlRegex = new Regex("\"url\": \"(?.*?)\"");
- MatchCollection urlCollection = urlRegex.Matches(all);
-
- List names = (from Match match in nameCollection select match.Groups["name"].Value).ToList();
- List types = (from Match match in typeCollection select match.Groups["type"].Value).ToList();
- List urls = (from Match match in urlCollection select match.Groups["url"].Value).ToList();
-
- int urlIndex = 0;
- for (int i = 0; i < names.Count; i++)
- {
- string name = DecodeUnicode(names[i]);
- string type = types[i];
- if (type == "url")
- {
- string url = urls[urlIndex];
- urlIndex++;
-
- if (url == null) continue;
- if (url.StartsWith("javascript:", StringComparison.OrdinalIgnoreCase)) continue;
- if (url.StartsWith("vbscript:", StringComparison.OrdinalIgnoreCase)) continue;
-
- bookmarks.Add(new Bookmark()
- {
- Name = name,
- Url = url,
- Source = source
- });
- }
- }
- }
-
- private void LoadChromeBookmarks(string path, string name)
- {
- if (!Directory.Exists(path)) return;
- var paths = Directory.GetDirectories(path);
-
- foreach (var profile in paths)
- {
- if (File.Exists(Path.Combine(profile, "Bookmarks")))
- ParseChromeBookmarks(Path.Combine(profile, "Bookmarks"), name + (Path.GetFileName(profile) == "Default" ? "" : (" (" + Path.GetFileName(profile) + ")")));
- }
- }
-
- private void LoadChromeBookmarks()
- {
- String platformPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
- LoadChromeBookmarks(Path.Combine(platformPath, @"Google\Chrome\User Data"), "Google Chrome");
- LoadChromeBookmarks(Path.Combine(platformPath, @"Google\Chrome SxS\User Data"), "Google Chrome Canary");
- LoadChromeBookmarks(Path.Combine(platformPath, @"Chromium\User Data"), "Chromium");
- }
-
- private String DecodeUnicode(String dataStr)
- {
- Regex reg = new Regex(@"(?i)\\[uU]([0-9a-f]{4})");
- return reg.Replace(dataStr, m => ((char)Convert.ToInt32(m.Groups[1].Value, 16)).ToString());
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Commands/Bookmarks.cs b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Commands/Bookmarks.cs
deleted file mode 100644
index 049b8f1668..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Commands/Bookmarks.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using Wox.Infrastructure;
-
-namespace Wox.Plugin.BrowserBookmark.Commands
-{
- internal static class Bookmarks
- {
- internal static bool MatchProgram(Bookmark bookmark, string queryString)
- {
- if (StringMatcher.FuzzySearch(queryString, bookmark.Name).IsSearchPrecisionScoreMet()) return true;
- if (StringMatcher.FuzzySearch(queryString, bookmark.PinyinName).IsSearchPrecisionScoreMet()) return true;
- if (StringMatcher.FuzzySearch(queryString, bookmark.Url).IsSearchPrecisionScoreMet()) return true;
-
- return false;
- }
-
- internal static List LoadAllBookmarks()
- {
- var allbookmarks = new List();
-
- var chromeBookmarks = new ChromeBookmarks();
- var mozBookmarks = new FirefoxBookmarks();
-
- //TODO: Let the user select which browser's bookmarks are displayed
- // Add Firefox bookmarks
- mozBookmarks.GetBookmarks().ForEach(x => allbookmarks.Add(x));
-
- // Add Chrome bookmarks
- chromeBookmarks.GetBookmarks().ForEach(x => allbookmarks.Add(x));
-
- return allbookmarks.Distinct().ToList();
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/FirefoxBookmarks.cs b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/FirefoxBookmarks.cs
deleted file mode 100644
index 7686501cd7..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/FirefoxBookmarks.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data.SQLite;
-using System.IO;
-using System.Linq;
-
-namespace Wox.Plugin.BrowserBookmark
-{
- public class FirefoxBookmarks
- {
- private const string queryAllBookmarks = @"SELECT moz_places.url, moz_bookmarks.title
- FROM moz_places
- INNER JOIN moz_bookmarks ON (
- moz_bookmarks.fk NOT NULL AND moz_bookmarks.fk = moz_places.id
- )
- ORDER BY moz_places.visit_count DESC
- ";
-
- private const string dbPathFormat = "Data Source ={0};Version=3;New=False;Compress=True;";
-
- ///
- /// Searches the places.sqlite db and returns all bookmarks
- ///
- public List GetBookmarks()
- {
- // Return empty list if the places.sqlite file cannot be found
- if (string.IsNullOrEmpty(PlacesPath) || !File.Exists(PlacesPath))
- return new List();
-
- var bookmarList = new List();
-
- // create the connection string and init the connection
- string dbPath = string.Format(dbPathFormat, PlacesPath);
- using (var dbConnection = new SQLiteConnection(dbPath))
- {
- // Open connection to the database file and execute the query
- dbConnection.Open();
- var reader = new SQLiteCommand(queryAllBookmarks, dbConnection).ExecuteReader();
-
- // return results in List format
- bookmarList = reader.Select(x => new Bookmark()
- {
- Name = (x["title"] is DBNull) ? string.Empty : x["title"].ToString(),
- Url = x["url"].ToString()
- }).ToList();
- }
-
- return bookmarList;
- }
-
- ///
- /// Path to places.sqlite
- ///
- private string PlacesPath
- {
- get
- {
- var profileFolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Mozilla\Firefox");
- var profileIni = Path.Combine(profileFolderPath, @"profiles.ini");
-
- if (!File.Exists(profileIni))
- return string.Empty;
-
- // get firefox default profile directory from profiles.ini
- string ini;
- using (var sReader = new StreamReader(profileIni)) {
- ini = sReader.ReadToEnd();
- }
-
- /*
- Current profiles.ini structure example as of Firefox version 69.0.1
-
- [Install736426B0AF4A39CB]
- Default=Profiles/7789f565.default-release <== this is the default profile this plugin will get the bookmarks from. When opened Firefox will load the default profile
- Locked=1
-
- [Profile2]
- Name=newblahprofile
- IsRelative=0
- Path=C:\t6h2yuq8.newblahprofile <== Note this is a custom location path for the profile user can set, we need to cater for this in code.
-
- [Profile1]
- Name=default
- IsRelative=1
- Path=Profiles/cydum7q4.default
- Default=1
-
- [Profile0]
- Name=default-release
- IsRelative=1
- Path=Profiles/7789f565.default-release
-
- [General]
- StartWithLastProfile=1
- Version=2
- */
-
- var lines = ini.Split(new string[] { "\r\n" }, StringSplitOptions.None).ToList();
-
- var defaultProfileFolderNameRaw = lines.Where(x => x.Contains("Default=") && x != "Default=1").FirstOrDefault() ?? string.Empty;
-
- if (string.IsNullOrEmpty(defaultProfileFolderNameRaw))
- return string.Empty;
-
- var defaultProfileFolderName = defaultProfileFolderNameRaw.Split('=').Last();
-
- var indexOfDefaultProfileAtttributePath = lines.IndexOf("Path="+ defaultProfileFolderName);
-
- // Seen in the example above, the IsRelative attribute is always above the Path attribute
- var relativeAttribute = lines[indexOfDefaultProfileAtttributePath - 1];
-
- return relativeAttribute == "0" // See above, the profile is located in a custom location, path is not relative, so IsRelative=0
- ? defaultProfileFolderName + @"\places.sqlite"
- : Path.Combine(profileFolderPath, defaultProfileFolderName) + @"\places.sqlite";
- }
- }
- }
-
- public static class Extensions
- {
- public static IEnumerable Select(this SQLiteDataReader reader, Func projection)
- {
- while (reader.Read())
- {
- yield return projection(reader);
- }
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Images/bookmark.png b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Images/bookmark.png
deleted file mode 100644
index b8aee3564e..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Images/bookmark.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Languages/en.xaml
deleted file mode 100644
index 7db78333be..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Languages/en.xaml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
- Browser Bookmarks
- Search your browser bookmarks
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Languages/tr.xaml
deleted file mode 100644
index 847d28c7bb..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Languages/tr.xaml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
- Yer İşaretleri
- Tarayıcılarınızdaki yer işaretlerini arayın.
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Main.cs
deleted file mode 100644
index a616edce08..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Main.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Windows.Controls;
-using Wox.Infrastructure.Storage;
-using Wox.Plugin.BrowserBookmark.Commands;
-using Wox.Plugin.BrowserBookmark.Models;
-using Wox.Plugin.BrowserBookmark.Views;
-using Wox.Plugin.SharedCommands;
-
-namespace Wox.Plugin.BrowserBookmark
-{
- public class Main : ISettingProvider, IPlugin, IReloadable, IPluginI18n, ISavable
- {
- private PluginInitContext context;
-
- private List cachedBookmarks = new List();
-
- private readonly Settings _settings;
- private readonly PluginJsonStorage _storage;
-
- public Main()
- {
- _storage = new PluginJsonStorage();
- _settings = _storage.Load();
-
- cachedBookmarks = Bookmarks.LoadAllBookmarks();
- }
-
- public void Init(PluginInitContext context)
- {
- this.context = context;
- }
-
- public List Query(Query query)
- {
- string param = query.GetAllRemainingParameter().TrimStart();
-
- // Should top results be returned? (true if no search parameters have been passed)
- var topResults = string.IsNullOrEmpty(param);
-
- var returnList = cachedBookmarks;
-
- if (!topResults)
- {
- // Since we mixed chrome and firefox bookmarks, we should order them again
- returnList = cachedBookmarks.Where(o => Bookmarks.MatchProgram(o, param)).ToList();
- returnList = returnList.OrderByDescending(o => o.Score).ToList();
- }
-
- return returnList.Select(c => new Result()
- {
- Title = c.Name,
- SubTitle = c.Url,
- IcoPath = @"Images\bookmark.png",
- Score = 5,
- Action = (e) =>
- {
- if (_settings.OpenInNewBrowserWindow)
- {
- c.Url.NewBrowserWindow(_settings.BrowserPath);
- }
- else
- {
- c.Url.NewTabInBrowser(_settings.BrowserPath);
- }
-
- return true;
- }
- }).ToList();
- }
-
- public void ReloadData()
- {
- cachedBookmarks.Clear();
-
- cachedBookmarks = Bookmarks.LoadAllBookmarks();
- }
-
- public string GetTranslatedPluginTitle()
- {
- return context.API.GetTranslation("wox_plugin_browserbookmark_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return context.API.GetTranslation("wox_plugin_browserbookmark_plugin_description");
- }
-
- public Control CreateSettingPanel()
- {
- return new SettingsControl(_settings);
- }
-
- public void Save()
- {
- _storage.Save();
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Models/Settings.cs b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Models/Settings.cs
deleted file mode 100644
index 41d742fe6b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Models/Settings.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace Wox.Plugin.BrowserBookmark.Models
-{
- public class Settings : BaseModel
- {
- public bool OpenInNewBrowserWindow { get; set; } = true;
-
- public string BrowserPath { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Properties/AssemblyInfo.cs
deleted file mode 100644
index 982c549994..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Wox.Plugin.BrowserBookmark")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Oracle Corporation")]
-[assembly: AssemblyProduct("Wox.Plugin.BrowserBookmark")]
-[assembly: AssemblyCopyright("Copyright © Oracle Corporation 2014")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("7dd2e33e-d029-4661-8f1d-594e82cef077")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Views/SettingsControl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Views/SettingsControl.xaml
deleted file mode 100644
index 93b272fcad..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Views/SettingsControl.xaml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Views/SettingsControl.xaml.cs b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Views/SettingsControl.xaml.cs
deleted file mode 100644
index 5c87f2d5ae..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Views/SettingsControl.xaml.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using Microsoft.Win32;
-using System.Windows;
-using System.Windows.Controls;
-using Wox.Plugin.BrowserBookmark.Models;
-
-namespace Wox.Plugin.BrowserBookmark.Views
-{
- ///
- /// Interaction logic for BrowserBookmark.xaml
- ///
- public partial class SettingsControl : UserControl
- {
- private readonly Settings _settings;
-
- public SettingsControl(Settings settings)
- {
- InitializeComponent();
- _settings = settings;
- browserPathBox.Text = _settings.BrowserPath;
- NewWindowBrowser.IsChecked = _settings.OpenInNewBrowserWindow;
- NewTabInBrowser.IsChecked = !_settings.OpenInNewBrowserWindow;
- }
-
- private void OnNewBrowserWindowClick(object sender, RoutedEventArgs e)
- {
- _settings.OpenInNewBrowserWindow = true;
- }
-
- private void OnNewTabClick(object sender, RoutedEventArgs e)
- {
- _settings.OpenInNewBrowserWindow = false;
- }
-
- private void OnChooseClick(object sender, RoutedEventArgs e)
- {
- var fileBrowserDialog = new OpenFileDialog();
- fileBrowserDialog.Filter = "Application(*.exe)|*.exe|All files|*.*";
- fileBrowserDialog.CheckFileExists = true;
- fileBrowserDialog.CheckPathExists = true;
- if (fileBrowserDialog.ShowDialog() == true)
- {
- browserPathBox.Text = fileBrowserDialog.FileName;
- _settings.BrowserPath = fileBrowserDialog.FileName;
- }
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Wox.Plugin.BrowserBookmark.csproj b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Wox.Plugin.BrowserBookmark.csproj
deleted file mode 100644
index 413b0aec79..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/Wox.Plugin.BrowserBookmark.csproj
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {9B130CC5-14FB-41FF-B310-0A95B6894C37}
- Library
- Properties
- Wox.Plugin.BrowserBookmark
- Wox.Plugin.BrowserBookmark
- v4.5.2
- 512
- ..\..\
- true
-
-
-
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.BrowserBookmark\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- ..\..\Output\Release\Plugins\Wox.Plugin.BrowserBookmark\
- TRACE
- prompt
- 4
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- SettingsControl.xaml
-
-
-
-
-
- PreserveNewest
-
-
-
-
- Always
-
-
- Designer
- MSBuild:Compile
- PreserveNewest
-
-
- Always
-
-
- Always
-
-
-
-
- {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
-
-
-
-
- 1.0.111
-
-
- 1.0.111
-
-
- 1.0.0
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/app.config b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/app.config
deleted file mode 100644
index 376ff2d533..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/app.config
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/plugin.json
deleted file mode 100644
index 7d40e4bfc8..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "ID":"0ECADE17459B49F587BF81DC3A125110",
- "ActionKeyword":"b",
- "Name":"Browser Bookmarks",
- "Description":"Search your browser bookmarks",
- "Author":"qianlifeng, Ioannis G.",
- "Version":"1.1",
- "Language":"csharp",
- "Website":"http://www.getwox.com/plugin",
- "ExecuteFileName":"Wox.Plugin.browserBookmark.dll",
- "IcoPath":"Images\\bookmark.png"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/x64/SQLite.Interop.dll b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/x64/SQLite.Interop.dll
deleted file mode 100644
index 877b4d78e6..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/x64/SQLite.Interop.dll and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/x86/SQLite.Interop.dll b/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/x86/SQLite.Interop.dll
deleted file mode 100644
index ccb5e03b6b..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.BrowserBookmark/x86/SQLite.Interop.dll and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Calculator/Wox.Plugin.Calculator.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Calculator/Wox.Plugin.Calculator.csproj
index eeb2504ade..ab51c29e90 100644
--- a/src/modules/launcher/Plugins/Wox.Plugin.Calculator/Wox.Plugin.Calculator.csproj
+++ b/src/modules/launcher/Plugins/Wox.Plugin.Calculator/Wox.Plugin.Calculator.csproj
@@ -14,24 +14,28 @@
..\..\
-
+
true
- full
- false
..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.Caculator\
DEBUG;TRACE
+ full
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
+ false
-
- pdbonly
- true
+
..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.Caculator\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Images/color.png b/src/modules/launcher/Plugins/Wox.Plugin.Color/Images/color.png
deleted file mode 100644
index da28583b1c..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Color/Images/color.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/de.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/de.xaml
deleted file mode 100644
index becb06305e..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/de.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Farben
- Stellt eine HEX-Farben Vorschau bereit. (Versuche #000 in Wox)
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/en.xaml
deleted file mode 100644
index f27231ba5b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/en.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Colors
- Allows to preview colors using hex values.(Try #000 in Wox)
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/pl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/pl.xaml
deleted file mode 100644
index 2a8361eb29..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/pl.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Kolory
- Podgląd kolorów po wpisaniu ich kodu szesnastkowego. (Spróbuj wpisać #000 w oknie Woxa)
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/tr.xaml
deleted file mode 100644
index c3224f517a..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/tr.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Renkler
- Hex kodunu girdiğiniz renkleri görüntülemeye yarar.(#000 yazmayı deneyin)
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/zh-cn.xaml
deleted file mode 100644
index 634f3d0f7e..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/zh-cn.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- 颜色
- 提供在Wox查询hex颜色。(尝试在Wox中输入#000)
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/zh-tw.xaml
deleted file mode 100644
index 2c320cb32d..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Languages/zh-tw.xaml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- 顏色
- 提供在 Wox 查詢 hex 顏色。(試著在 Wox 中輸入 #000)
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.Color/Main.cs
deleted file mode 100644
index 7ae6f453ad..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Main.cs
+++ /dev/null
@@ -1,121 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.Drawing.Imaging;
-using System.IO;
-using System.Linq;
-using System.Windows;
-
-namespace Wox.Plugin.Color
-{
- public sealed class ColorsPlugin : IPlugin, IPluginI18n
- {
- private string DIR_PATH = Path.Combine(Path.GetTempPath(), @"Plugins\Colors\");
- private PluginInitContext context;
- private const int IMG_SIZE = 32;
-
- private DirectoryInfo ColorsDirectory { get; set; }
-
- public ColorsPlugin()
- {
- if (!Directory.Exists(DIR_PATH))
- {
- ColorsDirectory = Directory.CreateDirectory(DIR_PATH);
- }
- else
- {
- ColorsDirectory = new DirectoryInfo(DIR_PATH);
- }
- }
-
- public List Query(Query query)
- {
- var raw = query.Search;
- if (!IsAvailable(raw)) return new List(0);
- try
- {
- var cached = Find(raw);
- if (cached.Length == 0)
- {
- var path = CreateImage(raw);
- return new List
- {
- new Result
- {
- Title = raw,
- IcoPath = path,
- Action = _ =>
- {
- Clipboard.SetText(raw);
- return true;
- }
- }
- };
- }
- return cached.Select(x => new Result
- {
- Title = raw,
- IcoPath = x.FullName,
- Action = _ =>
- {
- Clipboard.SetText(raw);
- return true;
- }
- }).ToList();
- }
- catch (Exception exception)
- {
- // todo: log
- return new List(0);
- }
- }
-
- private bool IsAvailable(string query)
- {
- // todo: rgb, names
- var length = query.Length - 1; // minus `#` sign
- return query.StartsWith("#") && (length == 3 || length == 6);
- }
-
- public FileInfo[] Find(string name)
- {
- var file = string.Format("{0}.png", name.Substring(1));
- return ColorsDirectory.GetFiles(file, SearchOption.TopDirectoryOnly);
- }
-
- private string CreateImage(string name)
- {
- using (var bitmap = new Bitmap(IMG_SIZE, IMG_SIZE))
- using (var graphics = Graphics.FromImage(bitmap))
- {
- var color = ColorTranslator.FromHtml(name);
- graphics.Clear(color);
-
- var path = CreateFileName(name);
- bitmap.Save(path, ImageFormat.Png);
- return path;
- }
- }
-
- private string CreateFileName(string name)
- {
- return string.Format("{0}{1}.png", ColorsDirectory.FullName, name.Substring(1));
- }
-
- public void Init(PluginInitContext context)
- {
- this.context = context;
- }
-
-
- public string GetTranslatedPluginTitle()
- {
- return context.API.GetTranslation("wox_plugin_color_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return context.API.GetTranslation("wox_plugin_color_plugin_description");
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.Color/Properties/AssemblyInfo.cs
deleted file mode 100644
index 1df9ed6e49..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Wox.Plugin.Color")]
-[assembly: Guid("46b03f84-5bf7-4ed4-a69b-f0274c8b3776")]
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/Wox.Plugin.Color.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Color/Wox.Plugin.Color.csproj
deleted file mode 100644
index ca75ed8f3b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/Wox.Plugin.Color.csproj
+++ /dev/null
@@ -1,130 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {F35190AA-4758-4D9E-A193-E3BDF6AD3567}
- Library
- Properties
- Wox.Plugin.Color
- Wox.Plugin.Color
- v4.5.2
- 512
-
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.Color\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- ..\..\Output\Release\Plugins\Wox.Plugin.Color\
- TRACE
- prompt
- 4
- false
-
-
-
- ..\..\packages\JetBrains.Annotations.10.3.0\lib\net\JetBrains.Annotations.dll
- True
-
-
-
-
-
-
-
-
- Properties\SolutionAssemblyInfo.cs
-
-
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- 10.3.0
-
-
- 4.0.0
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Color/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.Color/plugin.json
deleted file mode 100644
index 7acb134517..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Color/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "ID":"9B36CE6181FC47FBB597AA2C29CD9B0A",
- "ActionKeyword":"*",
- "Name":"Colors",
- "Description":"Provide hex color preview.(Try #000 in Wox)",
- "Author":"qianlifeng",
- "Version":"1.0.0",
- "Language":"csharp",
- "Website":"http://www.wox.one/plugin",
- "ExecuteFileName":"Wox.Plugin.Color.dll",
- "IcoPath":"Images\\color.png"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/ControlPanelItem.cs b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/ControlPanelItem.cs
deleted file mode 100644
index a63c9a19c6..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/ControlPanelItem.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System.Diagnostics;
-using System.Drawing;
-
-namespace Wox.Plugin.ControlPanel
-{
- //from:https://raw.githubusercontent.com/CoenraadS/Windows-Control-Panel-Items
- public class ControlPanelItem
- {
- public string LocalizedString { get; private set; }
- public string InfoTip { get; private set; }
- public string GUID { get; private set; }
- public ProcessStartInfo ExecutablePath { get; private set; }
- public Icon Icon { get; private set; }
- public int Score { get; set; }
-
- public ControlPanelItem(string newLocalizedString, string newInfoTip, string newGUID, ProcessStartInfo newExecutablePath, Icon newIcon)
- {
- LocalizedString = newLocalizedString;
- InfoTip = newInfoTip;
- ExecutablePath = newExecutablePath;
- Icon = newIcon;
- GUID = newGUID;
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/ControlPanelList.cs b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/ControlPanelList.cs
deleted file mode 100644
index 49c4b3831f..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/ControlPanelList.cs
+++ /dev/null
@@ -1,339 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Drawing;
-using System.Runtime.InteropServices;
-using System.Text;
-using Microsoft.Win32;
-
-namespace Wox.Plugin.ControlPanel
-{
- //from:https://raw.githubusercontent.com/CoenraadS/Windows-Control-Panel-Items
- public static class ControlPanelList
- {
- private const uint GROUP_ICON = 14;
- private const uint LOAD_LIBRARY_AS_DATAFILE = 0x00000002;
- private const string CONTROL = @"%SystemRoot%\System32\control.exe";
-
- private delegate bool EnumResNameDelegate(
- IntPtr hModule,
- IntPtr lpszType,
- IntPtr lpszName,
- IntPtr lParam);
-
- [DllImport("kernel32.dll", EntryPoint = "EnumResourceNamesW", CharSet = CharSet.Unicode, SetLastError = true)]
- static extern bool EnumResourceNamesWithID(IntPtr hModule, uint lpszType, EnumResNameDelegate lpEnumFunc, IntPtr lParam);
-
- [DllImport("kernel32.dll", SetLastError = true)]
- static extern IntPtr LoadLibraryEx(string lpFileName, IntPtr hFile, uint dwFlags);
-
- [DllImport("kernel32.dll", SetLastError = true)]
- static extern bool FreeLibrary(IntPtr hModule);
-
- [DllImport("user32.dll", CharSet = CharSet.Auto)]
- static extern int LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax);
-
- [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
- static extern IntPtr LoadImage(IntPtr hinst, IntPtr lpszName, uint uType,
- int cxDesired, int cyDesired, uint fuLoad);
-
- [DllImport("user32.dll", CharSet = CharSet.Auto)]
- extern static bool DestroyIcon(IntPtr handle);
-
- [DllImport("kernel32.dll")]
- static extern IntPtr FindResource(IntPtr hModule, IntPtr lpName, IntPtr lpType);
-
- static IntPtr defaultIconPtr;
-
-
- static RegistryKey nameSpace = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ControlPanel\\NameSpace");
- static RegistryKey clsid = Registry.ClassesRoot.OpenSubKey("CLSID");
-
- public static List Create(uint iconSize)
- {
- int size = (int)iconSize;
- RegistryKey currentKey;
- ProcessStartInfo executablePath;
- List controlPanelItems = new List();
- string localizedString;
- string infoTip;
- Icon myIcon;
-
- foreach (string key in nameSpace.GetSubKeyNames())
- {
- currentKey = clsid.OpenSubKey(key);
- if (currentKey != null)
- {
- executablePath = getExecutablePath(currentKey);
-
- if (!(executablePath == null)) //Cannot have item without executable path
- {
- localizedString = getLocalizedString(currentKey);
-
- if (!string.IsNullOrEmpty(localizedString))//Cannot have item without Title
- {
- infoTip = getInfoTip(currentKey);
-
- myIcon = getIcon(currentKey, size);
-
- controlPanelItems.Add(new ControlPanelItem(localizedString, infoTip, key, executablePath, myIcon));
- }
- }
- }
- }
-
- return controlPanelItems;
- }
-
- private static ProcessStartInfo getExecutablePath(RegistryKey currentKey)
- {
- ProcessStartInfo executablePath = new ProcessStartInfo();
- string applicationName;
-
- if (currentKey.GetValue("System.ApplicationName") != null)
- {
- //CPL Files (usually native MS items)
- applicationName = currentKey.GetValue("System.ApplicationName").ToString();
- executablePath.FileName = Environment.ExpandEnvironmentVariables(CONTROL);
- executablePath.Arguments = "-name " + applicationName;
- }
- else if (currentKey.OpenSubKey("Shell\\Open\\Command") != null && currentKey.OpenSubKey("Shell\\Open\\Command").GetValue(null) != null)
- {
- //Other files (usually third party items)
- string input = "\"" + Environment.ExpandEnvironmentVariables(currentKey.OpenSubKey("Shell\\Open\\Command").GetValue(null).ToString()) + "\"";
- executablePath.FileName = "cmd.exe";
- executablePath.Arguments = "/C " + input;
- executablePath.WindowStyle = ProcessWindowStyle.Hidden;
- }
- else
- {
- return null;
- }
-
- return executablePath;
- }
-
- private static string getLocalizedString(RegistryKey currentKey)
- {
- IntPtr dataFilePointer;
- string[] localizedStringRaw;
- uint stringTableIndex;
- StringBuilder resource;
- string localizedString;
-
- if (currentKey.GetValue("LocalizedString") != null)
- {
- localizedStringRaw = currentKey.GetValue("LocalizedString").ToString().Split(new[] { ",-" }, StringSplitOptions.None);
-
- if (localizedStringRaw.Length > 1)
- {
- if (localizedStringRaw[0][0] == '@')
- {
- localizedStringRaw[0] = localizedStringRaw[0].Substring(1);
- }
-
- localizedStringRaw[0] = Environment.ExpandEnvironmentVariables(localizedStringRaw[0]);
-
- dataFilePointer = LoadLibraryEx(localizedStringRaw[0], IntPtr.Zero, LOAD_LIBRARY_AS_DATAFILE); //Load file with strings
-
- stringTableIndex = sanitizeUint(localizedStringRaw[1]);
-
- resource = new StringBuilder(255);
- LoadString(dataFilePointer, stringTableIndex, resource, resource.Capacity + 1); //Extract needed string
- FreeLibrary(dataFilePointer);
-
- localizedString = resource.ToString();
-
- //Some apps don't return a string, although they do have a stringIndex. Use Default value.
-
- if (String.IsNullOrEmpty(localizedString))
- {
- if (currentKey.GetValue(null) != null)
- {
- localizedString = currentKey.GetValue(null).ToString();
- }
- else
- {
- return null; //Cannot have item without title.
- }
- }
- }
- else
- {
- localizedString = localizedStringRaw[0];
- }
- }
- else if (currentKey.GetValue(null) != null)
- {
- localizedString = currentKey.GetValue(null).ToString();
- }
- else
- {
- return null; //Cannot have item without title.
- }
- return localizedString;
- }
-
- private static string getInfoTip(RegistryKey currentKey)
- {
- IntPtr dataFilePointer;
- string[] infoTipRaw;
- uint stringTableIndex;
- StringBuilder resource;
- string infoTip = "";
-
- if (currentKey.GetValue("InfoTip") != null)
- {
- infoTipRaw = currentKey.GetValue("InfoTip").ToString().Split(new[] { ",-" }, StringSplitOptions.None);
-
- if (infoTipRaw.Length == 2)
- {
- if (infoTipRaw[0][0] == '@')
- {
- infoTipRaw[0] = infoTipRaw[0].Substring(1);
- }
- infoTipRaw[0] = Environment.ExpandEnvironmentVariables(infoTipRaw[0]);
-
- dataFilePointer = LoadLibraryEx(infoTipRaw[0], IntPtr.Zero, LOAD_LIBRARY_AS_DATAFILE); //Load file with strings
-
- stringTableIndex = sanitizeUint(infoTipRaw[1]);
-
- resource = new StringBuilder(255);
- LoadString(dataFilePointer, stringTableIndex, resource, resource.Capacity + 1); //Extract needed string
- FreeLibrary(dataFilePointer);
-
- infoTip = resource.ToString();
- }
- else
- {
- infoTip = currentKey.GetValue("InfoTip").ToString();
- }
- }
- else
- {
- infoTip = "";
- }
-
- return infoTip;
- }
-
- private static Icon getIcon(RegistryKey currentKey, int iconSize)
- {
- IntPtr iconPtr = IntPtr.Zero;
- List iconString;
- IntPtr dataFilePointer;
- IntPtr iconIndex;
- Icon myIcon = null;
-
- if (currentKey.OpenSubKey("DefaultIcon") != null)
- {
- if (currentKey.OpenSubKey("DefaultIcon").GetValue(null) != null)
- {
- iconString = new List(currentKey.OpenSubKey("DefaultIcon").GetValue(null).ToString().Split(new[] { ',' }, 2));
- if (string.IsNullOrEmpty(iconString[0]))
- {
- // fallback to default icon
- return null;
- }
-
- if (iconString[0][0] == '@')
- {
- iconString[0] = iconString[0].Substring(1);
- }
-
- dataFilePointer = LoadLibraryEx(iconString[0], IntPtr.Zero, LOAD_LIBRARY_AS_DATAFILE);
-
- if (iconString.Count == 2)
- {
- iconIndex = (IntPtr)sanitizeUint(iconString[1]);
-
- iconPtr = LoadImage(dataFilePointer, iconIndex, 1, iconSize, iconSize, 0);
- }
-
- if (iconPtr == IntPtr.Zero)
- {
- defaultIconPtr = IntPtr.Zero;
- EnumResourceNamesWithID(dataFilePointer, GROUP_ICON, EnumRes, IntPtr.Zero); //Iterate through resources.
-
- iconPtr = LoadImage(dataFilePointer, defaultIconPtr, 1, iconSize, iconSize, 0);
- }
-
- FreeLibrary(dataFilePointer);
-
- if (iconPtr != IntPtr.Zero)
- {
- try
- {
- myIcon = Icon.FromHandle(iconPtr);
- myIcon = (Icon)myIcon.Clone(); //Remove pointer dependancy.
- }
- catch
- {
- //Silently fail for now.
- }
- }
- }
- }
-
- if (iconPtr != IntPtr.Zero)
- {
- DestroyIcon(iconPtr);
- }
- return myIcon;
- }
-
- private static uint sanitizeUint(string args) //Remove all chars before and after first set of digits.
- {
- int x = 0;
-
- while (x < args.Length && !Char.IsDigit(args[x]))
- {
- args = args.Substring(1);
- }
-
- x = 0;
-
- while (x < args.Length && Char.IsDigit(args[x]))
- {
- x++;
- }
-
- if (x < args.Length)
- {
- args = args.Remove(x);
- }
-
- /*If the logic is correct, this should never through an exception.
- * If there is an exception, then need to analyze what the input is.
- * Returning the wrong number will cause more errors */
- return Convert.ToUInt32(args);
- }
-
- private static bool IS_INTRESOURCE(IntPtr value)
- {
- if (((uint)value) > ushort.MaxValue)
- return false;
- return true;
- }
-
- private static uint GET_RESOURCE_ID(IntPtr value)
- {
- if (IS_INTRESOURCE(value))
- return (uint)value;
- throw new NotSupportedException("value is not an ID!");
- }
-
- private static string GET_RESOURCE_NAME(IntPtr value)
- {
- if (IS_INTRESOURCE(value))
- return value.ToString();
- return Marshal.PtrToStringUni(value);
- }
-
- private static bool EnumRes(IntPtr hModule, IntPtr lpszType, IntPtr lpszName, IntPtr lParam)
- {
- defaultIconPtr = lpszName;
- return false;
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Images/ControlPanel.png b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Images/ControlPanel.png
deleted file mode 100644
index 1a69112f39..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Images/ControlPanel.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/de.xaml b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/de.xaml
deleted file mode 100644
index 994c4c60d0..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/de.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Systemsteuerung
- Suche in der Systemsteuerung
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/en.xaml
deleted file mode 100644
index cfab068b4c..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/en.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Control Panel
- Search within the Control Panel
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/pl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/pl.xaml
deleted file mode 100644
index 018cf2f1f6..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/pl.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Panel sterowania
- Szybie wyszukiwanie ustawień w panelu sterowania
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/tr.xaml
deleted file mode 100644
index e5bb3827b8..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/tr.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Denetim Masası
- Denetim Masası'nda arama yapın.
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/zh-cn.xaml
deleted file mode 100644
index bef221881d..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/zh-cn.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- 控制面板
- 搜索控制面板
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/zh-tw.xaml
deleted file mode 100644
index 58eb9232cc..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Languages/zh-tw.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- 控制台
- 搜尋控制台
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Main.cs
deleted file mode 100644
index 77b57fe865..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Main.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using Wox.Infrastructure;
-
-namespace Wox.Plugin.ControlPanel
-{
- public class Main : IPlugin, IPluginI18n
- {
- private PluginInitContext context;
- private List controlPanelItems = new List();
- private string iconFolder;
- private string fileType;
-
- public void Init(PluginInitContext context)
- {
- this.context = context;
- controlPanelItems = ControlPanelList.Create(48);
- iconFolder = Path.Combine(context.CurrentPluginMetadata.PluginDirectory, @"Images\ControlPanelIcons\");
- fileType = ".bmp";
-
- if (!Directory.Exists(iconFolder))
- {
- Directory.CreateDirectory(iconFolder);
- }
-
- foreach (ControlPanelItem item in controlPanelItems)
- {
- if (!File.Exists(iconFolder + item.GUID + fileType) && item.Icon != null)
- {
- item.Icon.ToBitmap().Save(iconFolder + item.GUID + fileType);
- }
- }
- }
-
- public List Query(Query query)
- {
- List results = new List();
-
- foreach (var item in controlPanelItems)
- {
- var titleMatch = StringMatcher.FuzzySearch(query.Search, item.LocalizedString);
- var subTitleMatch = StringMatcher.FuzzySearch(query.Search, item.InfoTip);
-
- item.Score = Math.Max(titleMatch.Score, subTitleMatch.Score);
- if (item.Score > 0)
- {
- var result = new Result
- {
- Title = item.LocalizedString,
- SubTitle = item.InfoTip,
- Score = item.Score,
- IcoPath = Path.Combine(context.CurrentPluginMetadata.PluginDirectory,
- @"Images\\ControlPanelIcons\\" + item.GUID + fileType),
- Action = e =>
- {
- try
- {
- Process.Start(item.ExecutablePath);
- }
- catch (Exception)
- {
- //Silently Fail for now.. todo
- }
- return true;
- }
- };
-
- if (item.Score == titleMatch.Score)
- {
- result.TitleHighlightData = titleMatch.MatchData;
- }
- else
- {
- result.SubTitleHighlightData = subTitleMatch.MatchData;
- }
-
- results.Add(result);
- }
- }
-
- List panelItems = results.OrderByDescending(o => o.Score).Take(5).ToList();
- return panelItems;
- }
-
- public string GetTranslatedPluginTitle()
- {
- return context.API.GetTranslation("wox_plugin_controlpanel_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return context.API.GetTranslation("wox_plugin_controlpanel_plugin_description");
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Properties/AssemblyInfo.cs
deleted file mode 100644
index 10e8283a21..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Wox.Plugin.ControlPanel")]
-[assembly: Guid("59141b10-8941-4e90-a0a6-bc9385a04cc6")]
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Wox.Plugin.ControlPanel.csproj b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Wox.Plugin.ControlPanel.csproj
deleted file mode 100644
index 711cb8e29f..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/Wox.Plugin.ControlPanel.csproj
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {1EE20B48-82FB-48A2-8086-675D6DDAB4F0}
- Library
- Properties
- Wox.Plugin.ControlPanel
- Wox.Plugin.ControlPanel
- v4.5.2
- 512
-
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.ControlPanel\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- ..\..\Output\Release\Plugins\Wox.Plugin.ControlPanel\
- TRACE
- prompt
- 4
- false
-
-
-
- ..\..\packages\JetBrains.Annotations.10.3.0\lib\net\JetBrains.Annotations.dll
- True
-
-
-
-
-
-
-
-
- Properties\SolutionAssemblyInfo.cs
-
-
-
-
-
-
-
-
- PreserveNewest
-
-
-
-
- {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- 10.3.0
-
-
- 4.0.0
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/plugin.json
deleted file mode 100644
index 7dc4552097..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.ControlPanel/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "ID":"209621585B9B4D81813913C507C058C6",
- "ActionKeyword":"*",
- "Name":"Control Panel",
- "Description":"Search within the Control Panel.",
- "Author":"CoenraadS",
- "Version":"1.0.0",
- "Language":"csharp",
- "Website":"http://www.wox.one/plugin",
- "ExecuteFileName":"Wox.Plugin.ControlPanel.dll",
- "IcoPath":"Images\\ControlPanel.png"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/.gitattributes b/src/modules/launcher/Plugins/Wox.Plugin.Everything/.gitattributes
deleted file mode 100644
index 1ff0c42304..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/.gitattributes
+++ /dev/null
@@ -1,63 +0,0 @@
-###############################################################################
-# Set default behavior to automatically normalize line endings.
-###############################################################################
-* text=auto
-
-###############################################################################
-# Set default behavior for command prompt diff.
-#
-# This is need for earlier builds of msysgit that does not have it on by
-# default for csharp files.
-# Note: This is only used by command line
-###############################################################################
-#*.cs diff=csharp
-
-###############################################################################
-# Set the merge driver for project and solution files
-#
-# Merging from the command prompt will add diff markers to the files if there
-# are conflicts (Merging from VS is not affected by the settings below, in VS
-# the diff markers are never inserted). Diff markers may cause the following
-# file extensions to fail to load in VS. An alternative would be to treat
-# these files as binary and thus will always conflict and require user
-# intervention with every merge. To do so, just uncomment the entries below
-###############################################################################
-#*.sln merge=binary
-#*.csproj merge=binary
-#*.vbproj merge=binary
-#*.vcxproj merge=binary
-#*.vcproj merge=binary
-#*.dbproj merge=binary
-#*.fsproj merge=binary
-#*.lsproj merge=binary
-#*.wixproj merge=binary
-#*.modelproj merge=binary
-#*.sqlproj merge=binary
-#*.wwaproj merge=binary
-
-###############################################################################
-# behavior for image files
-#
-# image files are treated as binary by default.
-###############################################################################
-#*.jpg binary
-#*.png binary
-#*.gif binary
-
-###############################################################################
-# diff behavior for common document formats
-#
-# Convert binary document formats to text before diffing them. This feature
-# is only available from the command line. Turn it on by uncommenting the
-# entries below.
-###############################################################################
-#*.doc diff=astextplain
-#*.DOC diff=astextplain
-#*.docx diff=astextplain
-#*.DOCX diff=astextplain
-#*.dot diff=astextplain
-#*.DOT diff=astextplain
-#*.pdf diff=astextplain
-#*.PDF diff=astextplain
-#*.rtf diff=astextplain
-#*.RTF diff=astextplain
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/.gitignore b/src/modules/launcher/Plugins/Wox.Plugin.Everything/.gitignore
deleted file mode 100644
index 2f72fc4243..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/.gitignore
+++ /dev/null
@@ -1,156 +0,0 @@
-## Ignore Visual Studio temporary files, build results, and
-## files generated by popular Visual Studio add-ons.
-
-# User-specific files
-*.suo
-*.user
-*.sln.docstates
-
-# Build results
-
-[Dd]ebug/
-[Rr]elease/
-x64/
-build/
-[Bb]in/
-[Oo]bj/
-
-# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
-!packages/*/build/
-
-# MSTest test Results
-[Tt]est[Rr]esult*/
-[Bb]uild[Ll]og.*
-
-*_i.c
-*_p.c
-*.ilk
-*.meta
-*.obj
-*.pch
-*.pdb
-*.pgc
-*.pgd
-*.rsp
-*.sbr
-*.tlb
-*.tli
-*.tlh
-*.tmp
-*.tmp_proj
-*.log
-*.vspscc
-*.vssscc
-.builds
-*.pidb
-*.log
-*.scc
-
-# Visual C++ cache files
-ipch/
-*.aps
-*.ncb
-*.opensdf
-*.sdf
-*.cachefile
-
-# Visual Studio profiler
-*.psess
-*.vsp
-*.vspx
-
-# Guidance Automation Toolkit
-*.gpState
-
-# ReSharper is a .NET coding add-in
-_ReSharper*/
-*.[Rr]e[Ss]harper
-
-# TeamCity is a build add-in
-_TeamCity*
-
-# DotCover is a Code Coverage Tool
-*.dotCover
-
-# NCrunch
-*.ncrunch*
-.*crunch*.local.xml
-
-# Installshield output folder
-[Ee]xpress/
-
-# DocProject is a documentation generator add-in
-DocProject/buildhelp/
-DocProject/Help/*.HxT
-DocProject/Help/*.HxC
-DocProject/Help/*.hhc
-DocProject/Help/*.hhk
-DocProject/Help/*.hhp
-DocProject/Help/Html2
-DocProject/Help/html
-
-# Click-Once directory
-publish/
-
-# Publish Web Output
-*.Publish.xml
-
-# NuGet Packages Directory
-## TODO: If you have NuGet Package Restore enabled, uncomment the next line
-packages/
-
-# Windows Azure Build Output
-csx
-*.build.csdef
-
-# Windows Store app package directory
-AppPackages/
-
-# Others
-sql/
-*.Cache
-ClientBin/
-[Ss]tyle[Cc]op.*
-~$*
-*~
-*.dbmdl
-*.[Pp]ublish.xml
-*.pfx
-*.publishsettings
-
-# RIA/Silverlight projects
-Generated_Code/
-
-# Backup & report files from converting an old project file to a newer
-# Visual Studio version. Backup files are not needed, because we have git ;-)
-_UpgradeReport_Files/
-Backup*/
-UpgradeLog*.XML
-UpgradeLog*.htm
-
-# SQL Server files
-App_Data/*.mdf
-App_Data/*.ldf
-
-
-#LightSwitch generated files
-GeneratedArtifacts/
-_Pvt_Extensions/
-ModelManifest.xml
-
-# =========================
-# Windows detritus
-# =========================
-
-# Windows image file caches
-Thumbs.db
-ehthumbs.db
-
-# Folder config file
-Desktop.ini
-
-# Recycle Bin used on file shares
-$RECYCLE.BIN/
-
-# Mac desktop service store files
-.DS_Store
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/EverythingAPI.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/EverythingAPI.cs
deleted file mode 100644
index b9d2098ebd..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/EverythingAPI.cs
+++ /dev/null
@@ -1,218 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.Text;
-using System.Threading;
-using Wox.Infrastructure.Logger;
-using Wox.Plugin.Everything.Everything.Exceptions;
-
-namespace Wox.Plugin.Everything.Everything
-{
- public interface IEverythingApi
- {
- ///
- /// Searches the specified key word.
- ///
- /// The key word.
- /// token that allow cancellation
- /// The offset.
- /// The max count.
- ///
- List Search(string keyWord, CancellationToken token, int offset = 0, int maxCount = 100);
-
- void Load(string sdkPath);
- }
-
- public sealed class EverythingApi : IEverythingApi
- {
- private const int BufferSize = 4096;
-
- private readonly object _syncObject = new object();
- // cached buffer to remove redundant allocations.
- private readonly StringBuilder _buffer = new StringBuilder(BufferSize);
-
- public enum StateCode
- {
- OK,
- MemoryError,
- IPCError,
- RegisterClassExError,
- CreateWindowError,
- CreateThreadError,
- InvalidIndexError,
- InvalidCallError
- }
-
- ///
- /// Gets or sets a value indicating whether [match path].
- ///
- /// true if [match path]; otherwise, false.
- public bool MatchPath
- {
- get
- {
- return EverythingApiDllImport.Everything_GetMatchPath();
- }
- set
- {
- EverythingApiDllImport.Everything_SetMatchPath(value);
- }
- }
-
- ///
- /// Gets or sets a value indicating whether [match case].
- ///
- /// true if [match case]; otherwise, false.
- public bool MatchCase
- {
- get
- {
- return EverythingApiDllImport.Everything_GetMatchCase();
- }
- set
- {
- EverythingApiDllImport.Everything_SetMatchCase(value);
- }
- }
-
- ///
- /// Gets or sets a value indicating whether [match whole word].
- ///
- /// true if [match whole word]; otherwise, false.
- public bool MatchWholeWord
- {
- get
- {
- return EverythingApiDllImport.Everything_GetMatchWholeWord();
- }
- set
- {
- EverythingApiDllImport.Everything_SetMatchWholeWord(value);
- }
- }
-
- ///
- /// Gets or sets a value indicating whether [enable regex].
- ///
- /// true if [enable regex]; otherwise, false.
- public bool EnableRegex
- {
- get
- {
- return EverythingApiDllImport.Everything_GetRegex();
- }
- set
- {
- EverythingApiDllImport.Everything_SetRegex(value);
- }
- }
-
- ///
- /// Resets this instance.
- ///
- public void Reset()
- {
- lock (_syncObject)
- {
- EverythingApiDllImport.Everything_Reset();
- }
- }
-
- ///
- /// Searches the specified key word and reset the everything API afterwards
- ///
- /// The key word.
- /// when cancelled the current search will stop and exit (and would not reset)
- /// The offset.
- /// The max count.
- ///
- public List Search(string keyWord, CancellationToken token, int offset = 0, int maxCount = 100)
- {
- if (string.IsNullOrEmpty(keyWord))
- throw new ArgumentNullException(nameof(keyWord));
-
- if (offset < 0)
- throw new ArgumentOutOfRangeException(nameof(offset));
-
- if (maxCount < 0)
- throw new ArgumentOutOfRangeException(nameof(maxCount));
-
- lock (_syncObject)
- {
- if (keyWord.StartsWith("@"))
- {
- EverythingApiDllImport.Everything_SetRegex(true);
- keyWord = keyWord.Substring(1);
- }
-
- EverythingApiDllImport.Everything_SetSearchW(keyWord);
- EverythingApiDllImport.Everything_SetOffset(offset);
- EverythingApiDllImport.Everything_SetMax(maxCount);
-
- if (token.IsCancellationRequested)
- {
- return null;
- }
-
-
- if (!EverythingApiDllImport.Everything_QueryW(true))
- {
- CheckAndThrowExceptionOnError();
- return null;
- }
-
- var results = new List();
- for (int idx = 0; idx < EverythingApiDllImport.Everything_GetNumResults(); ++idx)
- {
- if (token.IsCancellationRequested)
- {
- return null;
- }
-
- EverythingApiDllImport.Everything_GetResultFullPathNameW(idx, _buffer, BufferSize);
-
- var result = new SearchResult { FullPath = _buffer.ToString() };
- if (EverythingApiDllImport.Everything_IsFolderResult(idx))
- result.Type = ResultType.Folder;
- else if (EverythingApiDllImport.Everything_IsFileResult(idx))
- result.Type = ResultType.File;
-
- results.Add(result);
- }
-
- Reset();
-
- return results;
- }
- }
-
- [DllImport("kernel32.dll")]
- private static extern int LoadLibrary(string name);
-
- public void Load(string sdkPath)
- {
- LoadLibrary(sdkPath);
- }
-
- private static void CheckAndThrowExceptionOnError()
- {
- switch (EverythingApiDllImport.Everything_GetLastError())
- {
- case StateCode.CreateThreadError:
- throw new CreateThreadException();
- case StateCode.CreateWindowError:
- throw new CreateWindowException();
- case StateCode.InvalidCallError:
- throw new InvalidCallException();
- case StateCode.InvalidIndexError:
- throw new InvalidIndexException();
- case StateCode.IPCError:
- throw new IPCErrorException();
- case StateCode.MemoryError:
- throw new MemoryErrorException();
- case StateCode.RegisterClassExError:
- throw new RegisterClassExException();
- }
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/EverythingApiDllImport.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/EverythingApiDllImport.cs
deleted file mode 100644
index 6c056a0f57..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/EverythingApiDllImport.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-using System.Runtime.InteropServices;
-using System.Text;
-
-namespace Wox.Plugin.Everything.Everything
-{
- public sealed class EverythingApiDllImport
- {
- [DllImport(Main.DLL, CharSet = CharSet.Unicode)]
- internal static extern int Everything_SetSearchW(string lpSearchString);
-
- [DllImport(Main.DLL)]
- internal static extern void Everything_SetMatchPath(bool bEnable);
-
- [DllImport(Main.DLL)]
- internal static extern void Everything_SetMatchCase(bool bEnable);
-
- [DllImport(Main.DLL)]
- internal static extern void Everything_SetMatchWholeWord(bool bEnable);
-
- [DllImport(Main.DLL)]
- internal static extern void Everything_SetRegex(bool bEnable);
-
- [DllImport(Main.DLL)]
- internal static extern void Everything_SetMax(int dwMax);
-
- [DllImport(Main.DLL)]
- internal static extern void Everything_SetOffset(int dwOffset);
-
- [DllImport(Main.DLL)]
- internal static extern bool Everything_GetMatchPath();
-
- [DllImport(Main.DLL)]
- internal static extern bool Everything_GetMatchCase();
-
- [DllImport(Main.DLL)]
- internal static extern bool Everything_GetMatchWholeWord();
-
- [DllImport(Main.DLL)]
- internal static extern bool Everything_GetRegex();
-
- [DllImport(Main.DLL)]
- internal static extern uint Everything_GetMax();
-
- [DllImport(Main.DLL)]
- internal static extern uint Everything_GetOffset();
-
- [DllImport(Main.DLL, CharSet = CharSet.Unicode)]
- internal static extern string Everything_GetSearchW();
-
- [DllImport(Main.DLL)]
- internal static extern EverythingApi.StateCode Everything_GetLastError();
-
- [DllImport(Main.DLL, CharSet = CharSet.Unicode)]
- internal static extern bool Everything_QueryW(bool bWait);
-
- [DllImport(Main.DLL)]
- internal static extern void Everything_SortResultsByPath();
-
- [DllImport(Main.DLL)]
- internal static extern int Everything_GetNumFileResults();
-
- [DllImport(Main.DLL)]
- internal static extern int Everything_GetNumFolderResults();
-
- [DllImport(Main.DLL)]
- internal static extern int Everything_GetNumResults();
-
- [DllImport(Main.DLL)]
- internal static extern int Everything_GetTotFileResults();
-
- [DllImport(Main.DLL)]
- internal static extern int Everything_GetTotFolderResults();
-
- [DllImport(Main.DLL)]
- internal static extern int Everything_GetTotResults();
-
- [DllImport(Main.DLL)]
- internal static extern bool Everything_IsVolumeResult(int nIndex);
-
- [DllImport(Main.DLL)]
- internal static extern bool Everything_IsFolderResult(int nIndex);
-
- [DllImport(Main.DLL)]
- internal static extern bool Everything_IsFileResult(int nIndex);
-
- [DllImport(Main.DLL, CharSet = CharSet.Unicode)]
- internal static extern void Everything_GetResultFullPathNameW(int nIndex, StringBuilder lpString, int nMaxCount);
-
- [DllImport(Main.DLL)]
- internal static extern void Everything_Reset();
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/CreateThreadException.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/CreateThreadException.cs
deleted file mode 100644
index 170acde189..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/CreateThreadException.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace Wox.Plugin.Everything.Everything
-{
- ///
- ///
- ///
- public class CreateThreadException : ApplicationException
- {
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/CreateWindowException.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/CreateWindowException.cs
deleted file mode 100644
index 54fc903f1c..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/CreateWindowException.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace Wox.Plugin.Everything.Everything
-{
- ///
- ///
- ///
- public class CreateWindowException : ApplicationException
- {
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/IPCErrorException.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/IPCErrorException.cs
deleted file mode 100644
index 92ea7fb726..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/IPCErrorException.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace Wox.Plugin.Everything.Everything
-{
- ///
- ///
- ///
- public class IPCErrorException : ApplicationException
- {
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/InvalidCallException.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/InvalidCallException.cs
deleted file mode 100644
index b109f4d30c..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/InvalidCallException.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace Wox.Plugin.Everything.Everything
-{
- ///
- ///
- ///
- public class InvalidCallException : ApplicationException
- {
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/InvalidIndexException.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/InvalidIndexException.cs
deleted file mode 100644
index a6e7bfa443..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/InvalidIndexException.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace Wox.Plugin.Everything.Everything
-{
- ///
- ///
- ///
- public class InvalidIndexException : ApplicationException
- {
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/MemoryErrorException.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/MemoryErrorException.cs
deleted file mode 100644
index cd74e84872..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/MemoryErrorException.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace Wox.Plugin.Everything.Everything.Exceptions
-{
- ///
- ///
- ///
- public class MemoryErrorException : ApplicationException
- {
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/RegisterClassExException.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/RegisterClassExException.cs
deleted file mode 100644
index e51b7e8aa1..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/Exceptions/RegisterClassExException.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace Wox.Plugin.Everything.Everything
-{
- ///
- ///
- ///
- public class RegisterClassExException : ApplicationException
- {
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/ResultType.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/ResultType.cs
deleted file mode 100644
index bd9776a13e..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/ResultType.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace Wox.Plugin.Everything.Everything
-{
- public enum ResultType
- {
- Volume,
- Folder,
- File
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/SearchResult.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/SearchResult.cs
deleted file mode 100644
index 2a9af23a21..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Everything/SearchResult.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace Wox.Plugin.Everything.Everything
-{
- public class SearchResult
- {
- public string FullPath { get; set; }
- public ResultType Type { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSDK/x64/Everything.dll b/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSDK/x64/Everything.dll
deleted file mode 100644
index 20c2ed86ca..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSDK/x64/Everything.dll and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSDK/x86/Everything.dll b/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSDK/x86/Everything.dll
deleted file mode 100644
index 19761064e1..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSDK/x86/Everything.dll and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml
deleted file mode 100644
index ba98b17cb7..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml.cs
deleted file mode 100644
index 4377df2921..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/EverythingSettings.xaml.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using System.Windows;
-using System.Windows.Controls;
-using Microsoft.Win32;
-
-namespace Wox.Plugin.Everything
-{
- public partial class EverythingSettings : UserControl
- {
- private readonly Settings _settings;
-
- public EverythingSettings(Settings settings)
- {
- InitializeComponent();
- _settings = settings;
- }
-
- private void View_Loaded(object sender, RoutedEventArgs re)
- {
- UseLocationAsWorkingDir.IsChecked = _settings.UseLocationAsWorkingDir;
-
- UseLocationAsWorkingDir.Checked += (o, e) =>
- {
- _settings.UseLocationAsWorkingDir = true;
- };
-
- UseLocationAsWorkingDir.Unchecked += (o, e) =>
- {
- _settings.UseLocationAsWorkingDir = false;
- };
-
- EditorPath.Content = _settings.EditorPath;
- }
-
- private void EditorPath_Clicked(object sender, RoutedEventArgs e)
- {
- OpenFileDialog openFileDialog = new OpenFileDialog();
- openFileDialog.Filter = "Executable File(*.exe)| *.exe";
- if (!string.IsNullOrEmpty(_settings.EditorPath))
- openFileDialog.InitialDirectory = System.IO.Path.GetDirectoryName(_settings.EditorPath);
-
- if (openFileDialog.ShowDialog() == true)
- {
- _settings.EditorPath = openFileDialog.FileName;
- }
-
- EditorPath.Content = _settings.EditorPath;
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/error.png b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/error.png
deleted file mode 100644
index 022fbc197a..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/error.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/file.png b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/file.png
deleted file mode 100644
index 36156767a6..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/file.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/find.png b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/find.png
deleted file mode 100644
index a3f0be1f5b..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/find.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/folder.png b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/folder.png
deleted file mode 100644
index 569fa70491..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/folder.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/image.png b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/image.png
deleted file mode 100644
index 7fc14c38e9..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/image.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/warning.png b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/warning.png
deleted file mode 100644
index 8d29625ee7..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Images/warning.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/de.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/de.xaml
deleted file mode 100644
index 34b1fcae63..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/de.xaml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
- Everything Service läuft nicht
- Everything Plugin hat einen Fehler (drücke Enter zum kopieren der Fehlernachricht)
- kopiert
- Kann {0} nicht starten
- Öffne enthaltenden Ordner
- Openen met {0}
- Editor pad
-
- Everything
- Suche Dateien mit Everything
-
- Verwenden Suchergebnis Standort als ausführbare Arbeitsverzeichnis
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/en.xaml
deleted file mode 100644
index 4e94146604..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/en.xaml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
- Everything Service is not running
- Error while querying Everything
- Copied
- Can’t start {0}
- Open parent folder
- Open with {0}
- Editor Path
- Copy path
- Copy
- Delete
- Can't delete {0}
-
- Everything
- Search on-disk files using Everything
-
- Use search result's location as executable working directory
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/pl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/pl.xaml
deleted file mode 100644
index 1fe95777e1..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/pl.xaml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- Everything Service nie jest uruchomiony
- Wystąpił błąd podczas pobierania wyników z Everything
- Skopiowano
- Nie udało się uruchomić {0}
- Otwórz folder nadrzędny.
- Otwórz za pomocą {0}
- Ścieżka edytora
-
- Everything
- Szukaj w plikach na dysku używając programu Everything
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/tr.xaml
deleted file mode 100644
index 12cdc15094..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/tr.xaml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
- Everything Servisi çalışmıyor
- Sorgu Everything üzerinde çalıştırılırken hata oluştu
- Kopyalandı
- {0} başlatılamıyor
- İçeren klasörü aç
- {0} ile aç
- Düzenleyici Konumu
- Konumu Kopyala
- Kopyala
- Sil
- {0} silinemiyor
-
- Everything
- Everything programı yardımıyla diskteki dosyalarınızı arayın.
-
- Programın çalışma klasörü olarak sonuç klasörünü kullan
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/zh-cn.xaml
deleted file mode 100644
index 6b57eed286..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/zh-cn.xaml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
- Everything Service 没有运行
- Everything 插件发生了一个错误(回车拷贝具体错误信息)
- 拷贝成功
- 不能启动 {0}
- 打开所属文件夹
- 使用{0}打开
- 编辑器路径
- 拷贝路径
- 拷贝
- 删除
- 无法删除 {0}
-
- Everything
- 利用 Everything 搜索磁盘文件
-
- 使用应用程序的位置为可执行的工作目录
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/zh-tw.xaml
deleted file mode 100644
index 9f9c0bd88b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Languages/zh-tw.xaml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- Everything Service 尚未啟動
- Everything 套件發生錯誤(Enter 複製具體錯誤訊息)
- 複製成功
- 無法啟動 {0}
- 開啟檔案位置
- 利用{0}啟動
- 編輯器路径
-
- Everything
- 利用 Everything 搜尋磁碟上的檔案
-
- 使用程式所在目錄作為工作目錄
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Main.cs
deleted file mode 100644
index 6c4e3f20df..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Main.cs
+++ /dev/null
@@ -1,286 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Diagnostics;
-using System.IO;
-using System.Runtime.InteropServices;
-using System.Threading;
-using System.Windows;
-using System.Windows.Controls;
-using Wox.Infrastructure;
-using Wox.Infrastructure.Logger;
-using Wox.Infrastructure.Storage;
-using Wox.Plugin.Everything.Everything;
-
-namespace Wox.Plugin.Everything
-{
- public class Main : IPlugin, ISettingProvider, IPluginI18n, IContextMenu, ISavable
- {
- public const string DLL = "Everything.dll";
- private readonly IEverythingApi _api = new EverythingApi();
-
-
-
- private PluginInitContext _context;
-
- private Settings _settings;
- private PluginJsonStorage _storage;
- private CancellationTokenSource _cancellationTokenSource;
-
- public void Save()
- {
- _storage.Save();
- }
-
- public List Query(Query query)
- {
- _cancellationTokenSource?.Cancel(); // cancel if already exist
- var cts = _cancellationTokenSource = new CancellationTokenSource();
- var results = new List();
- if (!string.IsNullOrEmpty(query.Search))
- {
- var keyword = query.Search;
-
- try
- {
- var searchList = _api.Search(keyword, cts.Token, maxCount: _settings.MaxSearchCount);
- if (searchList == null)
- {
- return results;
- }
-
- foreach (var searchResult in searchList)
- {
- var r = CreateResult(keyword, searchResult);
- results.Add(r);
- }
- }
- catch (IPCErrorException)
- {
- results.Add(new Result
- {
- Title = _context.API.GetTranslation("wox_plugin_everything_is_not_running"),
- IcoPath = "Images\\warning.png"
- });
- }
- catch (Exception e)
- {
- Log.Exception("EverythingPlugin", "Query Error", e);
- results.Add(new Result
- {
- Title = _context.API.GetTranslation("wox_plugin_everything_query_error"),
- SubTitle = e.Message,
- Action = _ =>
- {
- Clipboard.SetText(e.Message + "\r\n" + e.StackTrace);
- _context.API.ShowMsg(_context.API.GetTranslation("wox_plugin_everything_copied"), null, string.Empty);
- return false;
- },
- IcoPath = "Images\\error.png"
- });
- }
- }
-
- return results;
- }
-
- private Result CreateResult(string keyword, SearchResult searchResult)
- {
- var path = searchResult.FullPath;
-
- string workingDir = null;
- if (_settings.UseLocationAsWorkingDir)
- workingDir = Path.GetDirectoryName(path);
-
- var r = new Result
- {
- Title = Path.GetFileName(path),
- SubTitle = path,
- IcoPath = path,
- TitleHighlightData = StringMatcher.FuzzySearch(keyword, Path.GetFileName(path)).MatchData,
- Action = c =>
- {
- bool hide;
- try
- {
- Process.Start(new ProcessStartInfo
- {
- FileName = path, UseShellExecute = true, WorkingDirectory = workingDir
- });
- hide = true;
- }
- catch (Win32Exception)
- {
- var name = $"Plugin: {_context.CurrentPluginMetadata.Name}";
- var message = "Can't open this file";
- _context.API.ShowMsg(name, message, string.Empty);
- hide = false;
- }
-
- return hide;
- },
- ContextData = searchResult,
- SubTitleHighlightData = StringMatcher.FuzzySearch(keyword, path).MatchData
- };
- return r;
- }
-
-
-
- private List GetDefaultContextMenu()
- {
- List defaultContextMenus = new List();
- ContextMenu openFolderContextMenu = new ContextMenu
- {
- Name = _context.API.GetTranslation("wox_plugin_everything_open_containing_folder"),
- Command = "explorer.exe",
- Argument = " /select,\"{path}\"",
- ImagePath = "Images\\folder.png"
- };
-
- defaultContextMenus.Add(openFolderContextMenu);
-
- string editorPath = string.IsNullOrEmpty(_settings.EditorPath) ? "notepad.exe" : _settings.EditorPath;
-
- ContextMenu openWithEditorContextMenu = new ContextMenu
- {
- Name = string.Format(_context.API.GetTranslation("wox_plugin_everything_open_with_editor"), Path.GetFileNameWithoutExtension(editorPath)),
- Command = editorPath,
- Argument = " \"{path}\"",
- ImagePath = editorPath
- };
-
- defaultContextMenus.Add(openWithEditorContextMenu);
-
- return defaultContextMenus;
- }
-
- public void Init(PluginInitContext context)
- {
- _context = context;
- _storage = new PluginJsonStorage();
- _settings = _storage.Load();
- if (_settings.MaxSearchCount <= 0)
- {
- _settings.MaxSearchCount = Settings.DefaultMaxSearchCount;
- }
-
- var pluginDirectory = context.CurrentPluginMetadata.PluginDirectory;
- const string sdk = "EverythingSDK";
- var bundledSDKDirectory = Path.Combine(pluginDirectory, sdk, CpuType());
- var sdkDirectory = Path.Combine(_storage.DirectoryPath, sdk, CpuType());
- Helper.ValidateDataDirectory(bundledSDKDirectory, sdkDirectory);
-
- var sdkPath = Path.Combine(sdkDirectory, DLL);
- Constant.EverythingSDKPath = sdkPath;
- _api.Load(sdkPath);
- }
-
- private static string CpuType()
- {
- return Environment.Is64BitOperatingSystem ? "x64" : "x86";
- }
-
- public string GetTranslatedPluginTitle()
- {
- return _context.API.GetTranslation("wox_plugin_everything_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return _context.API.GetTranslation("wox_plugin_everything_plugin_description");
- }
-
- public List LoadContextMenus(Result selectedResult)
- {
- SearchResult record = selectedResult.ContextData as SearchResult;
- List contextMenus = new List();
- if (record == null) return contextMenus;
-
- List availableContextMenus = new List();
- availableContextMenus.AddRange(GetDefaultContextMenu());
- availableContextMenus.AddRange(_settings.ContextMenus);
-
- if (record.Type == ResultType.File)
- {
- foreach (ContextMenu contextMenu in availableContextMenus)
- {
- var menu = contextMenu;
- contextMenus.Add(new Result
- {
- Title = contextMenu.Name,
- Action = _ =>
- {
- string argument = menu.Argument.Replace("{path}", record.FullPath);
- try
- {
- Process.Start(menu.Command, argument);
- }
- catch
- {
- _context.API.ShowMsg(string.Format(_context.API.GetTranslation("wox_plugin_everything_canot_start"), record.FullPath), string.Empty, string.Empty);
- return false;
- }
- return true;
- },
- IcoPath = contextMenu.ImagePath
- });
- }
- }
-
- var icoPath = (record.Type == ResultType.File) ? "Images\\file.png" : "Images\\folder.png";
- contextMenus.Add(new Result
- {
- Title = _context.API.GetTranslation("wox_plugin_everything_copy_path"),
- Action = (context) =>
- {
- Clipboard.SetText(record.FullPath);
- return true;
- },
- IcoPath = icoPath
- });
-
- contextMenus.Add(new Result
- {
- Title = _context.API.GetTranslation("wox_plugin_everything_copy"),
- Action = (context) =>
- {
- Clipboard.SetFileDropList(new System.Collections.Specialized.StringCollection { record.FullPath });
- return true;
- },
- IcoPath = icoPath
- });
-
- if (record.Type == ResultType.File || record.Type == ResultType.Folder)
- contextMenus.Add(new Result
- {
- Title = _context.API.GetTranslation("wox_plugin_everything_delete"),
- Action = (context) =>
- {
- try
- {
- if (record.Type == ResultType.File)
- System.IO.File.Delete(record.FullPath);
- else
- System.IO.Directory.Delete(record.FullPath);
- }
- catch
- {
- _context.API.ShowMsg(string.Format(_context.API.GetTranslation("wox_plugin_everything_canot_delete"), record.FullPath), string.Empty, string.Empty);
- return false;
- }
-
- return true;
- },
- IcoPath = icoPath
- });
-
- return contextMenus;
- }
-
- public Control CreateSettingPanel()
- {
- return new EverythingSettings(_settings);
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Properties/AssemblyInfo.cs
deleted file mode 100644
index 22f46590a5..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Wox.Plugin.Everything")]
-[assembly: Guid("97f6ccd0-e9dc-4aa2-b4ce-6b9f14ea20a7")]
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/README.md b/src/modules/launcher/Plugins/Wox.Plugin.Everything/README.md
deleted file mode 100644
index bb64b31c7c..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-Wox.Plugin.Everything
-=====================
-
-Wox plugin for Everything
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Settings.cs b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Settings.cs
deleted file mode 100644
index 9fb5ac89bb..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Settings.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System.Collections.Generic;
-using System.ComponentModel;
-using Newtonsoft.Json;
-using Wox.Infrastructure.Storage;
-
-namespace Wox.Plugin.Everything
-{
- public class Settings
- {
- public const int DefaultMaxSearchCount = 50;
-
- public string EditorPath { get; set; } = "";
-
- public List ContextMenus = new List();
-
- public int MaxSearchCount { get; set; } = DefaultMaxSearchCount;
-
- public bool UseLocationAsWorkingDir { get; set; } = false;
- }
-
- public class ContextMenu
- {
- public string Name { get; set; }
- public string Command { get; set; }
- public string Argument { get; set; }
- public string ImagePath { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Wox.Plugin.Everything.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Everything/Wox.Plugin.Everything.csproj
deleted file mode 100644
index 2ec791bf8c..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/Wox.Plugin.Everything.csproj
+++ /dev/null
@@ -1,189 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {230AE83F-E92E-4E69-8355-426B305DA9C0}
- Library
- Properties
- Wox.Plugin.Everything
- Wox.Plugin.Everything
- v4.5.2
- 512
- ..\Wox\
-
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.Everything\
- DEBUG;TRACE
- prompt
- 4
- AnyCPU
- false
-
-
- pdbonly
- true
- ..\..\Output\Release\Plugins\Wox.Plugin.Everything\
- TRACE
- prompt
- 4
- false
-
-
-
-
-
-
- ..\..\packages\JetBrains.Annotations.10.3.0\lib\net\JetBrains.Annotations.dll
- True
-
-
- ..\..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
- True
-
-
-
-
-
-
-
-
-
-
-
- Properties\SolutionAssemblyInfo.cs
-
-
- EverythingSettings.xaml
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
- {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- 10.3.0
-
-
- 9.0.1
-
-
- 4.0.0
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Everything/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.Everything/plugin.json
deleted file mode 100644
index c19d9a80ff..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Everything/plugin.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "ID":"D2D2C23B084D411DB66FE0C79D6C2A6E",
- "ActionKeyword":"*",
- "Name":"Everything",
- "Description":"Search Everything",
- "Author":"qianlifeng,orzfly",
- "Version":"1.1.0",
- "Language":"csharp",
- "Website":"http://www.wox.one",
- "IcoPath":"Images\\find.png",
- "ExecuteFileName":"Wox.Plugin.Everything.dll",
- "Disabled": true
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj
index ea6ce4c20d..2c11b7263c 100644
--- a/src/modules/launcher/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj
+++ b/src/modules/launcher/Plugins/Wox.Plugin.Folder/Wox.Plugin.Folder.csproj
@@ -14,24 +14,28 @@
..\..\
-
+
true
- full
- false
..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.Folder\
DEBUG;TRACE
+ full
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
+ false
-
- pdbonly
- true
+
..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.Folder\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
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 1a7bdbe8c7..9974b99b6d 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
@@ -14,21 +14,27 @@
true
-
+
true
- full
- false
..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.Indexer\
DEBUG;TRACE
+ full
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
+ false
-
- pdbonly
- true
+
..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.Indexer\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Images/work.png b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Images/work.png
deleted file mode 100644
index 6ff9b8b157..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Images/work.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/de.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/de.xaml
deleted file mode 100644
index 3ee680a64b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/de.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Plugin Indikator
- Stellt Vorschläge für Plugin-Befehle bereit
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/en.xaml
deleted file mode 100644
index e3cf4ace6a..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/en.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Plugin Indicator
- Provides plugins action words suggestions
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/pl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/pl.xaml
deleted file mode 100644
index d8016140ad..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/pl.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Plugin Indicator
- Pokazuje podpowiedzi jakich zainstalowanych wtyczek możesz użyć
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/tr.xaml
deleted file mode 100644
index a4cb364c88..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/tr.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Eklenti Göstergesi
- Eklenti eylemleri hakkında kelime önerileri sunar
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/zh-cn.xaml
deleted file mode 100644
index 12a49d04e0..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/zh-cn.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- 插件关键词提示
- 提供插件关键词搜索提示
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/zh-tw.xaml
deleted file mode 100644
index 87320a317b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Languages/zh-tw.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- 套件關鍵字提示
- 提供套件關鍵字搜尋提示
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Main.cs
deleted file mode 100644
index 54dcf007a0..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Main.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using Wox.Core.Plugin;
-
-namespace Wox.Plugin.PluginIndicator
-{
- public class Main : IPlugin, IPluginI18n
- {
- private PluginInitContext context;
-
- public List Query(Query query)
- {
- var results = from keyword in PluginManager.NonGlobalPlugins.Keys
- where keyword.StartsWith(query.Terms[0])
- let metadata = PluginManager.NonGlobalPlugins[keyword].Metadata
- where !metadata.Disabled
- select new Result
- {
- Title = keyword,
- SubTitle = $"Activate {metadata.Name} plugin",
- Score = 100,
- IcoPath = metadata.IcoPath,
- Action = c =>
- {
- context.API.ChangeQuery($"{keyword}{Plugin.Query.TermSeperater}");
- return false;
- }
- };
- return results.ToList();
- }
-
- public void Init(PluginInitContext context)
- {
- this.context = context;
- }
-
- public string GetTranslatedPluginTitle()
- {
- return context.API.GetTranslation("wox_plugin_pluginindicator_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return context.API.GetTranslation("wox_plugin_pluginindicator_plugin_description");
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Properties/AssemblyInfo.cs
deleted file mode 100644
index 5323b0bc14..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Wox.Plugin.PluginIndicator")]
-[assembly: Guid("27f6d9fc-340b-47be-90ea-2a86bfca7bad")]
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Wox.Plugin.PluginIndicator.csproj b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Wox.Plugin.PluginIndicator.csproj
deleted file mode 100644
index 709016b069..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/Wox.Plugin.PluginIndicator.csproj
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {FDED22C8-B637-42E8-824A-63B5B6E05A3A}
- Library
- Properties
- Wox.Plugin.PluginIndicator
- Wox.Plugin.PluginIndicator
- v4.5.2
- 512
-
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.PluginIndicator\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- ..\..\Output\Release\Plugins\Wox.Plugin.PluginIndicator\
- TRACE
- prompt
- 4
- false
-
-
-
-
-
-
-
-
- Properties\SolutionAssemblyInfo.cs
-
-
-
-
-
-
- PreserveNewest
-
-
-
-
- {b749f0db-8e75-47db-9e5e-265d16d0c0d2}
- Wox.Core
-
-
- {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- 10.3.0
-
-
- 4.0.0
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/plugin.json
deleted file mode 100644
index a8effc2e7e..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginIndicator/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "ID":"6A122269676E40EB86EB543B945932B9",
- "ActionKeyword":"*",
- "Name":"Plugin Indicator",
- "Description":"Provide plugin actionword suggestion",
- "Author":"qianlifeng",
- "Version":"1.0.0",
- "Language":"csharp",
- "Website":"http://www.wox.one/plugin",
- "ExecuteFileName":"Wox.Plugin.PluginIndicator.dll",
- "IcoPath":"Images\\work.png"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Images/plugin.png b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Images/plugin.png
deleted file mode 100644
index 6ff9b8b157..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Images/plugin.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/de.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/de.xaml
deleted file mode 100644
index aa3de26f05..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/de.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Wox Plugin Verwaltung
- Installiere/Entferne/Aktualisiere Wox Plugins
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/en.xaml
deleted file mode 100644
index 46d7025c31..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/en.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Wox Plugin Management
- Install, remove or update Wox plugins
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/pl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/pl.xaml
deleted file mode 100644
index d26a771905..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/pl.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Zarządzanie wtyczkami Wox
- Pozwala na instalacje, usuwanie i aktualizacje wtyczek
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/tr.xaml
deleted file mode 100644
index 15e5163a57..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/tr.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Wox Eklenti Yöneticisi
- Wox eklentilerini kurun, kaldırın ya da güncelleyin
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/zh-cn.xaml
deleted file mode 100644
index 00ada8ff36..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/zh-cn.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Wox插件管理
- 安装/卸载/更新Wox插件
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/zh-tw.xaml
deleted file mode 100644
index c50b0c06e9..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Languages/zh-tw.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Wox 外掛管理
- 安裝/解除安裝/更新 Wox 外掛
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Main.cs
deleted file mode 100644
index 1ee0fd7ae8..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Main.cs
+++ /dev/null
@@ -1,259 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Net;
-using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Windows;
-using Newtonsoft.Json;
-using Wox.Infrastructure;
-using Wox.Infrastructure.Http;
-using Wox.Infrastructure.Logger;
-
-namespace Wox.Plugin.PluginManagement
-{
- public class Main : IPlugin, IPluginI18n
- {
- private static string APIBASE = "http://api.wox.one";
- private static string PluginConfigName = "plugin.json";
- private static string pluginSearchUrl = APIBASE + "/plugin/search/";
- private const string ListCommand = "list";
- private const string InstallCommand = "install";
- private const string UninstallCommand = "uninstall";
- private PluginInitContext context;
-
- public List Query(Query query)
- {
- List results = new List();
-
- if (string.IsNullOrEmpty(query.Search))
- {
- results.Add(ResultForListCommandAutoComplete(query));
- results.Add(ResultForInstallCommandAutoComplete(query));
- results.Add(ResultForUninstallCommandAutoComplete(query));
- return results;
- }
-
- string command = query.FirstSearch.ToLower();
- if (string.IsNullOrEmpty(command)) return results;
-
- if (command == ListCommand)
- {
- return ResultForListInstalledPlugins();
- }
- if (command == UninstallCommand)
- {
- return ResultForUnInstallPlugin(query);
- }
- if (command == InstallCommand)
- {
- return ResultForInstallPlugin(query);
- }
-
- if (InstallCommand.Contains(command))
- {
- results.Add(ResultForInstallCommandAutoComplete(query));
- }
- if (UninstallCommand.Contains(command))
- {
- results.Add(ResultForUninstallCommandAutoComplete(query));
- }
- if (ListCommand.Contains(command))
- {
- results.Add(ResultForListCommandAutoComplete(query));
- }
-
- return results;
- }
-
- private Result ResultForListCommandAutoComplete(Query query)
- {
- string title = ListCommand;
- string subtitle = "list installed plugins";
- return ResultForCommand(query, ListCommand, title, subtitle);
- }
-
- private Result ResultForInstallCommandAutoComplete(Query query)
- {
- string title = $"{InstallCommand} ";
- string subtitle = "list installed plugins";
- return ResultForCommand(query, InstallCommand, title, subtitle);
- }
-
- private Result ResultForUninstallCommandAutoComplete(Query query)
- {
- string title = $"{UninstallCommand} ";
- string subtitle = "list installed plugins";
- return ResultForCommand(query, UninstallCommand, title, subtitle);
- }
-
- private Result ResultForCommand(Query query, string command, string title, string subtitle)
- {
- const string seperater = Plugin.Query.TermSeperater;
- var result = new Result
- {
- Title = title,
- IcoPath = "Images\\plugin.png",
- SubTitle = subtitle,
- Action = e =>
- {
- context.API.ChangeQuery($"{query.ActionKeyword}{seperater}{command}{seperater}");
- return false;
- }
- };
- return result;
- }
-
- private List ResultForInstallPlugin(Query query)
- {
- List results = new List();
- string pluginName = query.SecondSearch;
- if (string.IsNullOrEmpty(pluginName)) return results;
- string json;
- try
- {
- json = Http.Get(pluginSearchUrl + pluginName).Result;
- }
- catch (WebException e)
- {
- //todo happlebao add option in log to decide give user prompt or not
- context.API.ShowMsg("PluginManagement.ResultForInstallPlugin: Can't connect to Wox plugin website, check your conenction");
- Log.Exception("|PluginManagement.ResultForInstallPlugin|Can't connect to Wox plugin website, check your conenction", e);
- return new List();
- }
- List searchedPlugins;
- try
- {
- searchedPlugins = JsonConvert.DeserializeObject>(json);
- }
- catch (JsonSerializationException e)
- {
- context.API.ShowMsg("PluginManagement.ResultForInstallPlugin: Coundn't parse api search results, Please update your Wox!");
- Log.Exception("|PluginManagement.ResultForInstallPlugin|Coundn't parse api search results, Please update your Wox!", e);
- return results;
- }
-
- foreach (WoxPluginResult r in searchedPlugins)
- {
- WoxPluginResult r1 = r;
- results.Add(new Result
- {
- Title = r.name,
- SubTitle = r.description,
- IcoPath = "Images\\plugin.png",
- TitleHighlightData = StringMatcher.FuzzySearch(query.SecondSearch, r.name).MatchData,
- SubTitleHighlightData = StringMatcher.FuzzySearch(query.SecondSearch, r.description).MatchData,
- Action = c =>
- {
- MessageBoxResult result = MessageBox.Show("Are you sure you wish to install the \'" + r.name + "\' plugin",
- "Install plugin", MessageBoxButton.YesNo);
-
- if (result == MessageBoxResult.Yes)
- {
- string folder = Path.Combine(Path.GetTempPath(), "WoxPluginDownload");
- if (!Directory.Exists(folder)) Directory.CreateDirectory(folder);
- string filePath = Path.Combine(folder, Guid.NewGuid().ToString() + ".wox");
-
- string pluginUrl = APIBASE + "/media/" + r1.plugin_file;
-
- try
- {
- Http.Download(pluginUrl, filePath);
- }
- catch (WebException e)
- {
- context.API.ShowMsg($"PluginManagement.ResultForInstallPlugin: download failed for <{r.name}>");
- Log.Exception($"|PluginManagement.ResultForInstallPlugin|download failed for <{r.name}>", e);
- return false;
- }
- context.API.InstallPlugin(filePath);
- }
- return false;
- }
- });
- }
- return results;
- }
-
- private List ResultForUnInstallPlugin(Query query)
- {
- List results = new List();
- List allInstalledPlugins = context.API.GetAllPlugins().Select(o => o.Metadata).ToList();
- if (!string.IsNullOrEmpty(query.SecondSearch))
- {
- allInstalledPlugins =
- allInstalledPlugins.Where(o => o.Name.ToLower().Contains(query.SecondSearch.ToLower())).ToList();
- }
-
- foreach (PluginMetadata plugin in allInstalledPlugins)
- {
- results.Add(new Result
- {
- Title = plugin.Name,
- SubTitle = plugin.Description,
- IcoPath = plugin.IcoPath,
- TitleHighlightData = StringMatcher.FuzzySearch(query.SecondSearch, plugin.Name).MatchData,
- SubTitleHighlightData = StringMatcher.FuzzySearch(query.SecondSearch, plugin.Description).MatchData,
- Action = e =>
- {
- UnInstallPlugin(plugin);
- return false;
- }
- });
- }
- return results;
- }
-
- private void UnInstallPlugin(PluginMetadata plugin)
- {
- string content = $"Do you want to uninstall following plugin?{Environment.NewLine}{Environment.NewLine}" +
- $"Name: {plugin.Name}{Environment.NewLine}" +
- $"Version: {plugin.Version}{Environment.NewLine}" +
- $"Author: {plugin.Author}";
- if (MessageBox.Show(content, "Wox", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
- {
- File.Create(Path.Combine(plugin.PluginDirectory, "NeedDelete.txt")).Close();
- var result = MessageBox.Show($"You have uninstalled plugin {plugin.Name} successfully.{Environment.NewLine}" +
- "Restart Wox to take effect?",
- "Install plugin", MessageBoxButton.YesNo, MessageBoxImage.Question);
- if (result == MessageBoxResult.Yes)
- {
- context.API.RestarApp();
- }
- }
- }
-
- private List ResultForListInstalledPlugins()
- {
- List results = new List();
- foreach (PluginMetadata plugin in context.API.GetAllPlugins().Select(o => o.Metadata))
- {
- string actionKeywordString = string.Join(" or ", plugin.ActionKeywords.ToArray());
- results.Add(new Result
- {
- Title = $"{plugin.Name} - Action Keywords: {actionKeywordString}",
- SubTitle = plugin.Description,
- IcoPath = plugin.IcoPath
- });
- }
- return results;
- }
-
- public void Init(PluginInitContext context)
- {
- this.context = context;
- }
-
- public string GetTranslatedPluginTitle()
- {
- return context.API.GetTranslation("wox_plugin_plugin_management_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return context.API.GetTranslation("wox_plugin_plugin_management_plugin_description");
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Properties/AssemblyInfo.cs
deleted file mode 100644
index 6fa58f5d18..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Wox.Plugin.PluginManagement")]
-[assembly: Guid("92b59bab-5c8c-414b-a8d7-326c7be3a11d")]
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Wox.Plugin.PluginManagement.csproj b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Wox.Plugin.PluginManagement.csproj
deleted file mode 100644
index 227a2f9f0d..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/Wox.Plugin.PluginManagement.csproj
+++ /dev/null
@@ -1,137 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {049490F0-ECD2-4148-9B39-2135EC346EBE}
- Library
- Properties
- Wox.Plugin.PluginManagement
- Wox.Plugin.PluginManagement
- v4.5.2
- 512
- ..\..\
-
-
-
- true
- full
- false
- ..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.PluginManagement\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- ..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.PluginManagement\
- TRACE
- prompt
- 4
- false
-
-
-
-
-
-
-
-
-
-
-
- Properties\SolutionAssemblyInfo.cs
-
-
-
-
-
-
-
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- 10.3.0
-
-
- 9.0.1
-
-
- 4.0.0
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/WoxPluginResult.cs b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/WoxPluginResult.cs
deleted file mode 100644
index a7fcd513e2..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/WoxPluginResult.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-namespace Wox.Plugin.PluginManagement
-{
- public class WoxPluginResult
- {
- public string plugin_file;
- public string description;
- public int liked_count;
- public string name;
- public string version;
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/plugin.json
deleted file mode 100644
index 88a134e264..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.PluginManagement/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "ID":"D2D2C23B084D422DB66FE0C79D6C2A6A",
- "ActionKeyword":"wpm",
- "Name":"Wox Plugin Management",
- "Description":"Install/Remove/Update wox plugins",
- "Author":"qianlifeng",
- "Version":"1.0",
- "Language":"csharp",
- "Website":"http://www.wox.one/plugin",
- "ExecuteFileName":"Wox.Plugin.PluginManagement.dll",
- "IcoPath":"Images\\plugin.png"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj
index 931045fb8a..b055d7ec99 100644
--- a/src/modules/launcher/Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj
+++ b/src/modules/launcher/Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj
@@ -16,24 +16,28 @@
-
+
true
- full
- false
..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.Program\
DEBUG;TRACE
+ full
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
+ false
-
- pdbonly
- true
+
..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.Program\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Shell/Wox.Plugin.Shell.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Shell/Wox.Plugin.Shell.csproj
index b5ec1371e1..b381d8b863 100644
--- a/src/modules/launcher/Plugins/Wox.Plugin.Shell/Wox.Plugin.Shell.csproj
+++ b/src/modules/launcher/Plugins/Wox.Plugin.Shell/Wox.Plugin.Shell.csproj
@@ -14,24 +14,28 @@
..\..\
-
+
true
- full
- false
..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.Shell\
DEBUG;TRACE
+ full
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
+ false
-
- pdbonly
- true
+
..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.Shell\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/app.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/app.png
deleted file mode 100644
index 8c9ca7971a..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/app.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/checkupdate.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/checkupdate.png
deleted file mode 100644
index 955f6fdbb7..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/checkupdate.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/close.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/close.png
deleted file mode 100644
index 17c4363ad3..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/close.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/lock.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/lock.png
deleted file mode 100644
index 4aef7007ba..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/lock.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/logoff.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/logoff.png
deleted file mode 100644
index 0d1378830e..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/logoff.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/recyclebin.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/recyclebin.png
deleted file mode 100644
index 2cc3b0116c..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/recyclebin.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/restart.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/restart.png
deleted file mode 100644
index aaa2ee7116..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/restart.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/shutdown.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/shutdown.png
deleted file mode 100644
index 7da7a528d6..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/shutdown.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/sleep.png b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/sleep.png
deleted file mode 100644
index 42426286dd..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Images/sleep.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/de.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/de.xaml
deleted file mode 100644
index f47676b47b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/de.xaml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
- Befehl
- Beschreibung
-
- Computer herunterfahren
- Computer neu starten
- Abmelden
- Computer sperren
- Wox schließen
- Wox neu starten
- Anwendung beschleunigen
- Computer in Schlafmodus versetzen
- Papierkorb leeren
-
- Systembefehle
- Stellt Systemrelevante Befehle bereit. z.B. herunterfahren, sperren, Einstellungen, usw.
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/en.xaml
deleted file mode 100644
index f4b8bbfba5..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/en.xaml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
- Command
- Description
-
- Shutdown Computer
- Restart Computer
- Log off
- Lock this computer
- Close Wox
- Restart Wox
- Tweak this app
- Put computer to sleep
- Empty recycle bin
- Hibernate computer
- Save all Wox settings
- Reloads plugin data with new content added after Wox started. Plugins need to have this feature already added.
-
-
- Success
- All Wox settings saved
- Reloaded all applicable plugin data
- Are you sure you want to shut the computer down?
- Are you sure you want to restart the computer?
-
- System Commands
- Provides System related commands. e.g. shutdown, lock, settings etc.
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/ja.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/ja.xaml
deleted file mode 100644
index 0f90930238..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/ja.xaml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
- コマンド
- 説明
-
- コンピュータをシャットダウンする
- コンピュータを再起動する
- ログオフ
- このコンピュータをロックする
- Woxを終了する
- Woxを再起動する
- このアプリの設定
- スリープ
- ゴミ箱を空にする
-
- システムコマンド
- システム関連のコマンドを提供します。例:シャットダウン、ロック、設定など
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/pl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/pl.xaml
deleted file mode 100644
index 19a9c1a67b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/pl.xaml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
- Komenda
- Opis
-
- Wyłącz komputer
- Uruchom ponownie komputer
- Wyloguj się
- Zablokuj ten komputer
- Wyłącz Woxa
- Uruchom ponownie Woxa
- Dostosuj ustawienia
- Przełącz komputer w tryb uśpienia
- Opróżnij kosz
-
- Komendy systemowe
- Wykonywanie komend systemowych, np. wyłącz, zablokuj komputer, otwórz ustawienia itp.
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/tr.xaml
deleted file mode 100644
index 5111aa7785..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/tr.xaml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
- Komut
- Açıklama
-
- Bilgisayarı Kapat
- Yeniden Başlat
- Oturumu Kapat
- Bilgisayarı Kilitle
- Wox'u Kapat
- Wox'u Yeniden Başlat
- Wox Ayarlarını Aç
- Bilgisayarı Uyku Moduna Al
- Geri Dönüşüm Kutusunu Boşalt
- Bilgisayarı Askıya Al
- Tüm Wox Ayarlarını Kaydet
- Eklentilerin verilerini Wox'un açılışından sonra yapılan değişiklikleri için günceller. Eklentilerin bu özelliği zaten eklemiş olması gerekir.
-
-
- Başarılı
- Tüm Wox ayarları kaydedildi.
- Bilgisayarı kapatmak istediğinize emin misiniz?
- Bilgisayarı yeniden başlatmak istediğinize emin misiniz?
-
-
- Sistem Komutları
- Sistem ile ilgili komutlara erişim sağlar. ör. shutdown, lock, settings vb.
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/zh-cn.xaml
deleted file mode 100644
index 58e2096198..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/zh-cn.xaml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
- 命令
- 描述
-
- 关闭电脑
- 重启这台电脑
- 注销
- 锁定这台电脑
- 退出Wox
- 重启Wox
- 设置
- 休眠这台电脑
- 清空回收站
-
- 系统命令
- 系统系统相关的命令。例如,关机,锁定,设置等
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/zh-tw.xaml
deleted file mode 100644
index ac035bdd8f..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Languages/zh-tw.xaml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
- 命令
- 描述
-
- 電腦關機
- 電腦重新啟動
- 登出
- 鎖定電腦
- 退出Wox
- 重新啟動 Wox
- 設定
- 睡眠
- 清空資源回收桶
-
- 系統命令
- 系統相關的命令。例如,關機,鎖定,設定等
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Main.cs
deleted file mode 100644
index f6be3a4358..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Main.cs
+++ /dev/null
@@ -1,266 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Runtime.InteropServices;
-using System.Windows;
-using System.Windows.Forms;
-using System.Windows.Interop;
-using Wox.Infrastructure;
-using Application = System.Windows.Application;
-using Control = System.Windows.Controls.Control;
-using FormsApplication = System.Windows.Forms.Application;
-using MessageBox = System.Windows.MessageBox;
-
-namespace Wox.Plugin.Sys
-{
- public class Main : IPlugin, ISettingProvider, IPluginI18n
- {
- private PluginInitContext context;
-
- #region DllImport
-
- internal const int EWX_LOGOFF = 0x00000000;
- internal const int EWX_SHUTDOWN = 0x00000001;
- internal const int EWX_REBOOT = 0x00000002;
- internal const int EWX_FORCE = 0x00000004;
- internal const int EWX_POWEROFF = 0x00000008;
- internal const int EWX_FORCEIFHUNG = 0x00000010;
-
- [DllImport("user32")]
- private static extern bool ExitWindowsEx(uint uFlags, uint dwReason);
-
- [DllImport("user32")]
- private static extern void LockWorkStation();
-
- [DllImport("Shell32.dll", CharSet = CharSet.Unicode)]
- private static extern uint SHEmptyRecycleBin(IntPtr hWnd, uint dwFlags);
-
- // http://www.pinvoke.net/default.aspx/Enums/HRESULT.html
- private enum HRESULT : uint
- {
- S_FALSE = 0x0001,
- S_OK = 0x0000
- }
-
- #endregion
-
- public Control CreateSettingPanel()
- {
- var results = Commands();
- return new SysSettings(results);
- }
-
- public List Query(Query query)
- {
- var commands = Commands();
- var results = new List();
- foreach (var c in commands)
- {
- var titleMatch = StringMatcher.FuzzySearch(query.Search, c.Title);
- var subTitleMatch = StringMatcher.FuzzySearch(query.Search, c.SubTitle);
-
- var score = Math.Max(titleMatch.Score, subTitleMatch.Score);
- if (score > 0)
- {
- c.Score = score;
- if (score == titleMatch.Score)
- {
- c.TitleHighlightData = titleMatch.MatchData;
- }
- else
- {
- c.SubTitleHighlightData = subTitleMatch.MatchData;
- }
- results.Add(c);
- }
- }
- return results;
- }
-
- public void Init(PluginInitContext context)
- {
- this.context = context;
- }
-
- private List Commands()
- {
- var results = new List();
- results.AddRange(new[]
- {
- new Result
- {
- Title = "Shutdown",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_shutdown_computer"),
- IcoPath = "Images\\shutdown.png",
- Action = c =>
- {
- var reuslt = MessageBox.Show(context.API.GetTranslation("wox_plugin_sys_dlgtext_shutdown_computer"),
- context.API.GetTranslation("wox_plugin_sys_shutdown_computer"),
- MessageBoxButton.YesNo, MessageBoxImage.Warning);
- if (reuslt == MessageBoxResult.Yes)
- {
- Process.Start("shutdown", "/s /t 0");
- }
- return true;
- }
- },
- new Result
- {
- Title = "Restart",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_restart_computer"),
- IcoPath = "Images\\restart.png",
- Action = c =>
- {
- var result = MessageBox.Show(context.API.GetTranslation("wox_plugin_sys_dlgtext_restart_computer"),
- context.API.GetTranslation("wox_plugin_sys_restart_computer"),
- MessageBoxButton.YesNo, MessageBoxImage.Warning);
- if (result == MessageBoxResult.Yes)
- {
- Process.Start("shutdown", "/r /t 0");
- }
- return true;
- }
- },
- new Result
- {
- Title = "Log Off",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_log_off"),
- IcoPath = "Images\\logoff.png",
- Action = c => ExitWindowsEx(EWX_LOGOFF, 0)
- },
- new Result
- {
- Title = "Lock",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_lock"),
- IcoPath = "Images\\lock.png",
- Action = c =>
- {
- LockWorkStation();
- return true;
- }
- },
- new Result
- {
- Title = "Sleep",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_sleep"),
- IcoPath = "Images\\sleep.png",
- Action = c => FormsApplication.SetSuspendState(PowerState.Suspend, false, false)
- },
- new Result
- {
- Title = "Hibernate",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_hibernate"),
- IcoPath = "Images\\sleep.png", // Icon change needed
- Action = c => FormsApplication.SetSuspendState(PowerState.Hibernate, false, false)
- },
- new Result
- {
- Title = "Empty Recycle Bin",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_emptyrecyclebin"),
- IcoPath = "Images\\recyclebin.png",
- Action = c =>
- {
- // http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html
- // FYI, couldn't find documentation for this but if the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED))
- // 0 for nothing
- var result = SHEmptyRecycleBin(new WindowInteropHelper(Application.Current.MainWindow).Handle, 0);
- if (result != (uint) HRESULT.S_OK && result != (uint)0x8000FFFF)
- {
- MessageBox.Show($"Error emptying recycle bin, error code: {result}\n" +
- "please refer to https://msdn.microsoft.com/en-us/library/windows/desktop/aa378137",
- "Error",
- MessageBoxButton.OK, MessageBoxImage.Error);
- }
- return true;
- }
- },
- new Result
- {
- Title = "Exit",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_exit"),
- IcoPath = "Images\\app.png",
- Action = c =>
- {
- Application.Current.MainWindow.Close();
- return true;
- }
- },
- new Result
- {
- Title = "Save Settings",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_save_all_settings"),
- IcoPath = "Images\\app.png",
- Action = c =>
- {
- context.API.SaveAppAllSettings();
- context.API.ShowMsg(context.API.GetTranslation("wox_plugin_sys_dlgtitle_success"),
- context.API.GetTranslation("wox_plugin_sys_dlgtext_all_settings_saved"));
- return true;
- }
- },
- new Result
- {
- Title = "Restart Wox",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_restart"),
- IcoPath = "Images\\app.png",
- Action = c =>
- {
- context.API.RestarApp();
- return false;
- }
- },
- new Result
- {
- Title = "Settings",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_setting"),
- IcoPath = "Images\\app.png",
- Action = c =>
- {
- context.API.OpenSettingDialog();
- return true;
- }
- },
- new Result
- {
- Title = "Reload Plugin Data",
- SubTitle = context.API.GetTranslation("wox_plugin_sys_reload_plugin_data"),
- IcoPath = "Images\\app.png",
- Action = c =>
- {
- // Hide the window first then show msg after done because sometimes the reload could take a while, so not to make user think it's frozen.
- Application.Current.MainWindow.Hide();
- context.API.ReloadAllPluginData();
- context.API.ShowMsg(context.API.GetTranslation("wox_plugin_sys_dlgtitle_success"),
- context.API.GetTranslation("wox_plugin_sys_dlgtext_all_applicableplugins_reloaded"));
- return true;
- }
- },
- new Result
- {
- Title = "Check For Update",
- SubTitle = "Check for new Wox update",
- IcoPath = "Images\\checkupdate.png",
- Action = c =>
- {
- Application.Current.MainWindow.Hide();
- context.API.CheckForNewUpdate();
- context.API.ShowMsg("Please wait...",
- "Checking for new update");
- return true;
- }
- }
- });
- return results;
- }
-
- public string GetTranslatedPluginTitle()
- {
- return context.API.GetTranslation("wox_plugin_sys_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return context.API.GetTranslation("wox_plugin_sys_plugin_description");
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Properties/AssemblyInfo.cs
deleted file mode 100644
index db9072038a..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Wox.Plugin.Sys")]
-[assembly: Guid("e1eecff6-3f25-424d-9bbd-cbd7d6e1e11e")]
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/SysSettings.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Sys/SysSettings.xaml
deleted file mode 100644
index 5ef2443a56..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/SysSettings.xaml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/SysSettings.xaml.cs b/src/modules/launcher/Plugins/Wox.Plugin.Sys/SysSettings.xaml.cs
deleted file mode 100644
index bb1abc8194..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/SysSettings.xaml.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Collections.Generic;
-using System.Windows.Controls;
-
-namespace Wox.Plugin.Sys
-{
- public partial class SysSettings : UserControl
- {
- public SysSettings(List Results)
- {
- InitializeComponent();
-
- foreach (var Result in Results)
- {
- lbxCommands.Items.Add(Result);
- }
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Wox.Plugin.Sys.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Sys/Wox.Plugin.Sys.csproj
deleted file mode 100644
index ffdfa59720..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/Wox.Plugin.Sys.csproj
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {0B9DE348-9361-4940-ADB6-F5953BFFCCEC}
- Library
- Properties
- Wox.Plugin.Sys
- Wox.Plugin.Sys
- v4.5.2
- 512
- ..\..\
-
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.Sys\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- ..\..\Output\Release\Plugins\Wox.Plugin.Sys\
- TRACE
- prompt
- 4
- false
-
-
-
- ..\..\packages\JetBrains.Annotations.10.3.0\lib\net\JetBrains.Annotations.dll
- True
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Properties\SolutionAssemblyInfo.cs
-
-
-
-
- SysSettings.xaml
-
-
-
-
- {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
-
-
-
- 10.3.0
-
-
- 4.0.0
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Sys/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.Sys/plugin.json
deleted file mode 100644
index 20c709a795..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Sys/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "ID":"CEA08895D2544B019B2E9C5009600DF4",
- "ActionKeyword":"*",
- "Name":"System Commands",
- "Description":"Provide System related commands. e.g. shutdown,lock,setting etc.",
- "Author":"qianlifeng",
- "Version":"1.0.0",
- "Language":"csharp",
- "Website":"http://www.wox.one/plugin",
- "ExecuteFileName":"Wox.Plugin.Sys.dll",
- "IcoPath":"Images\\lock.png"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Images/url.png b/src/modules/launcher/Plugins/Wox.Plugin.Url/Images/url.png
deleted file mode 100644
index 619d1ad6ab..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.Url/Images/url.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/de.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/de.xaml
deleted file mode 100644
index 172a8412bc..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/de.xaml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- Öffne URL:{0}
- Kann URL nicht öffnen:{0}
-
- URL
- Öffne eine eingegebene URL mit Wox
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/en.xaml
deleted file mode 100644
index 082f12d2d8..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/en.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- Open url:{0}
- Can't open url:{0}
-
- URL
- Open the typed URL from Wox
-
- Please set your browser path:
- Choose
- Application(*.exe)|*.exe|All files|*.*
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/ja.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/ja.xaml
deleted file mode 100644
index b20f1a493f..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/ja.xaml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- 次のURLを開く:{0}
- 次のURLを開くことができません:{0}
-
- URL
- 入力したURLをWoxから開くプラグインです。
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/pl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/pl.xaml
deleted file mode 100644
index b2be290d1e..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/pl.xaml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- Otwórz adres URL: {0}
- Nie udało się otworzyć adresu: {0}
-
- URL
- Otwórz wpisany adres URL z poziomu Woxa
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/tr.xaml
deleted file mode 100644
index 05ac1d1a45..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/tr.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- URL'yi Aç: {0}
- URL Açılamıyor: {0}
-
- URL
- Wox'a yazılan URL'leri açar
-
- Tarayıcınızın konumunu ayarlayın:
- Seç
- Programlar (*.exe)|*.exe|Tüm Dosyalar|*.*
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/zh-cn.xaml
deleted file mode 100644
index 6a4429b012..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/zh-cn.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- 打开链接:{0}
- 无法打开链接:{0}
-
- URL
- 从Wox打开链接
-
- 请设置你的浏览器路径:
- 选择
- 程序文件(*.exe)|*.exe|所有文件|*.*
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/zh-tw.xaml
deleted file mode 100644
index 33e7d1bedd..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Languages/zh-tw.xaml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- 開啟連結:{0}
- 無法開啟連結:{0}
-
- URL
- 從 Wox 開啟連結
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.Url/Main.cs
deleted file mode 100644
index ed4e55b867..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Main.cs
+++ /dev/null
@@ -1,143 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text.RegularExpressions;
-using System.Windows.Controls;
-using Wox.Infrastructure.Storage;
-using Wox.Plugin.SharedCommands;
-
-namespace Wox.Plugin.Url
-{
- public class Main : ISettingProvider,IPlugin, IPluginI18n, ISavable
- {
- //based on https://gist.github.com/dperini/729294
- private const string urlPattern = "^" +
- // protocol identifier
- "(?:(?:https?|ftp)://|)" +
- // user:pass authentication
- "(?:\\S+(?::\\S*)?@)?" +
- "(?:" +
- // IP address exclusion
- // private & local networks
- "(?!(?:10|127)(?:\\.\\d{1,3}){3})" +
- "(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})" +
- "(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})" +
- // IP address dotted notation octets
- // excludes loopback network 0.0.0.0
- // excludes reserved space >= 224.0.0.0
- // excludes network & broacast addresses
- // (first & last IP address of each class)
- "(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])" +
- "(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}" +
- "(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))" +
- "|" +
- // host name
- "(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)" +
- // domain name
- "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*" +
- // TLD identifier
- "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))" +
- ")" +
- // port number
- "(?::\\d{2,5})?" +
- // resource path
- "(?:/\\S*)?" +
- "$";
- Regex reg = new Regex(urlPattern, RegexOptions.Compiled | RegexOptions.IgnoreCase);
- private PluginInitContext context;
- private readonly Settings _settings;
- private readonly PluginJsonStorage _storage;
-
- public Main()
- {
- _storage = new PluginJsonStorage();
- _settings = _storage.Load();
- }
-
- public void Save()
- {
- _storage.Save();
- }
-
- public List Query(Query query)
- {
- var raw = query.Search;
- if (IsURL(raw))
- {
- return new List
- {
- new Result
- {
- Title = raw,
- SubTitle = string.Format(context.API.GetTranslation("wox_plugin_url_open_url"),raw),
- IcoPath = "Images/url.png",
- Score = 8,
- Action = _ =>
- {
- if (!raw.ToLower().StartsWith("http"))
- {
- raw = "http://" + raw;
- }
- try
- {
- if (_settings.OpenInNewBrowserWindow)
- {
- raw.NewBrowserWindow(_settings.BrowserPath);
- }
- else
- {
- raw.NewTabInBrowser(_settings.BrowserPath);
- }
-
- return true;
- }
- catch(Exception ex)
- {
- context.API.ShowMsg(string.Format(context.API.GetTranslation("wox_plugin_url_canot_open_url"), raw));
- return false;
- }
- }
- }
- };
- }
- return new List(0);
- }
-
-
- public Control CreateSettingPanel()
- {
- return new SettingsControl(context.API,_settings);
- }
-
- public bool IsURL(string raw)
- {
- raw = raw.ToLower();
-
- if (reg.Match(raw).Value == raw) return true;
-
- if (raw == "localhost" || raw.StartsWith("localhost:") ||
- raw == "http://localhost" || raw.StartsWith("http://localhost:") ||
- raw == "https://localhost" || raw.StartsWith("https://localhost:")
- )
- {
- return true;
- }
-
- return false;
- }
-
- public void Init(PluginInitContext context)
- {
- this.context = context;
- }
-
- public string GetTranslatedPluginTitle()
- {
- return context.API.GetTranslation("wox_plugin_url_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return context.API.GetTranslation("wox_plugin_url_plugin_description");
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.Url/Properties/AssemblyInfo.cs
deleted file mode 100644
index 83520f2f11..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Wox.Plugin.Url")]
-[assembly: Guid("ea42b60d-34ff-4656-8ee1-012afa397d3e")]
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Settings.cs b/src/modules/launcher/Plugins/Wox.Plugin.Url/Settings.cs
deleted file mode 100644
index 9ee074afcf..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Settings.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Wox.Plugin.Url
-{
- public class Settings
- {
- public string BrowserPath { get; set; }
-
- public bool OpenInNewBrowserWindow { get; set; } = true;
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/SettingsControl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.Url/SettingsControl.xaml
deleted file mode 100644
index 5bbca57f06..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/SettingsControl.xaml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/SettingsControl.xaml.cs b/src/modules/launcher/Plugins/Wox.Plugin.Url/SettingsControl.xaml.cs
deleted file mode 100644
index 50fb4f6adc..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/SettingsControl.xaml.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using Microsoft.Win32;
-
-
-namespace Wox.Plugin.Url
-{
- ///
- /// SettingsControl.xaml 的交互逻辑
- ///
- public partial class SettingsControl : UserControl
- {
- private Settings _settings;
- private IPublicAPI _woxAPI;
-
- public SettingsControl(IPublicAPI woxAPI,Settings settings)
- {
- InitializeComponent();
- _settings = settings;
- _woxAPI = woxAPI;
- browserPathBox.Text = _settings.BrowserPath;
- NewWindowBrowser.IsChecked = _settings.OpenInNewBrowserWindow;
- NewTabInBrowser.IsChecked = !_settings.OpenInNewBrowserWindow;
- }
-
- private void OnChooseClick(object sender, RoutedEventArgs e)
- {
- var fileBrowserDialog = new OpenFileDialog();
- fileBrowserDialog.Filter = _woxAPI.GetTranslation("wox_plugin_url_plugin_filter"); ;
- fileBrowserDialog.CheckFileExists = true;
- fileBrowserDialog.CheckPathExists = true;
- if (fileBrowserDialog.ShowDialog() == true)
- {
- browserPathBox.Text = fileBrowserDialog.FileName;
- _settings.BrowserPath = fileBrowserDialog.FileName;
- }
- }
-
- private void OnNewBrowserWindowClick(object sender, RoutedEventArgs e)
- {
- _settings.OpenInNewBrowserWindow = true;
- }
-
- private void OnNewTabClick(object sender, RoutedEventArgs e)
- {
- _settings.OpenInNewBrowserWindow = false;
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/Wox.Plugin.Url.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Url/Wox.Plugin.Url.csproj
deleted file mode 100644
index d3088778ce..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/Wox.Plugin.Url.csproj
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {A3DCCBCA-ACC1-421D-B16E-210896234C26}
- Library
- Properties
- Wox.Plugin.Url
- Wox.Plugin.Url
- v4.5.2
- 512
-
-
-
- true
- full
- false
- ..\..\..\..\..\x64\Debug\modules\launcher\Plugins\Wox.Plugin.Url\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- ..\..\..\..\..\x64\Release\modules\launcher\Plugins\Wox.Plugin.Url\
- TRACE
- prompt
- 4
- false
- x64
-
-
-
- ..\..\packages\JetBrains.Annotations.10.3.0\lib\net\JetBrains.Annotations.dll
- True
-
-
-
-
-
-
-
-
-
-
- Properties\SolutionAssemblyInfo.cs
-
-
-
-
-
- SettingsControl.xaml
-
-
-
-
- PreserveNewest
-
-
-
-
- {4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- Designer
- MSBuild:Compile
-
-
-
-
- 10.3.0
-
-
- 4.0.0
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Url/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.Url/plugin.json
deleted file mode 100644
index 09c54a7ffa..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.Url/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "ID":"0308FD86DE0A4DEE8D62B9B535370992",
- "ActionKeyword":"*",
- "Name":"URL",
- "Description":"Open the typed URL from Wox",
- "Author":"qianlifeng",
- "Version":"1.0.0",
- "Language":"csharp",
- "Website":"http://www.wox.one/plugin",
- "ExecuteFileName":"Wox.Plugin.Url.dll",
- "IcoPath":"Images\\url.png"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/baidu.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/baidu.png
deleted file mode 100644
index 2d30b504eb..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/baidu.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/bing.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/bing.png
deleted file mode 100644
index 0e74ef2d6f..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/bing.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/duckduckgo.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/duckduckgo.png
deleted file mode 100644
index 7cd1abc61f..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/duckduckgo.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/facebook.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/facebook.png
deleted file mode 100644
index f9479fc253..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/facebook.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/gist.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/gist.png
deleted file mode 100644
index dd9fb6f001..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/gist.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/github.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/github.png
deleted file mode 100644
index dd9fb6f001..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/github.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/gmail.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/gmail.png
deleted file mode 100644
index aaeff30202..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/gmail.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google.png
deleted file mode 100644
index 8971516848..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_drive.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_drive.png
deleted file mode 100644
index ce2346a316..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_drive.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_maps.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_maps.png
deleted file mode 100644
index 2413eec586..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_maps.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_translate.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_translate.png
deleted file mode 100644
index 63ff5c883d..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/google_translate.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/pictures.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/pictures.png
deleted file mode 100644
index 7fc14c38e9..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/pictures.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/stackoverflow.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/stackoverflow.png
deleted file mode 100644
index ca9027afb1..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/stackoverflow.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/twitter.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/twitter.png
deleted file mode 100644
index 4003ac7def..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/twitter.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/web_search.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/web_search.png
deleted file mode 100644
index a3f0be1f5b..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/web_search.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/wiki.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/wiki.png
deleted file mode 100644
index a58ce1e415..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/wiki.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/wolframalpha.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/wolframalpha.png
deleted file mode 100644
index a62e2c7df0..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/wolframalpha.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/yahoo.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/yahoo.png
deleted file mode 100644
index 3736ca80af..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/yahoo.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/youtube.png b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/youtube.png
deleted file mode 100644
index 3a3f8310a8..0000000000
Binary files a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Images/youtube.png and /dev/null differ
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/de.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/de.xaml
deleted file mode 100644
index 9cc70038b5..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/de.xaml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- Löschen
- Bearbeiten
- Hinzufügen
- Confirm
- Aktionsschlüsselwort
- URL
- Suche
- Aktiviere Suchvorschläge
- Bitte wähle einen Suchdienst
- Willst du wirklich {0} löschen?
-
-
-
- Titel
- Aktivieren
- Wähle Symbol
- Symbol
- Abbrechen
- Ungültige Internetsuche
- Bitte Titel eingeben
- Bitte Aktionsschlüsselwort eingeben
- Bitte URL eingeben
- Aktionsschlüsselwort existiert bereits. Bitte gebe ein anderes ein.
- Erfolgreich
-
- Internetsuche
- Stellt die Möglichkeit für Internetsuchen bereit
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/en.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/en.xaml
deleted file mode 100644
index f3d8135ca3..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/en.xaml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- Delete
- Edit
- Add
- Confirm
- Action Keyword
- URL
- Search
- Enable search suggestions
- Please select a web search
- Are you sure you want to delete {0}?
-
-
- Title
- Enable
- Select Icon
- Icon
- Cancel
- Invalid web search
- Please enter a title
- Please enter an action keyword
- Please enter a URL
- Action keyword already exists, please enter a different one
- Success
-
- Web Searches
- Allows to perform web searches
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/ja.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/ja.xaml
deleted file mode 100644
index d82cb1456d..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/ja.xaml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- 削除
- 編集
- 追加
- キーワード
- URL
- 検索
- 検索サジェスチョンを有効にする
- web検索を選択してください
- 本当に{0}を削除しますか?
-
-
-
- タイトル
- 有効
- アイコンを選択
- アイコン
- キャンセル
- web検索を無効にする
- タイトルを入力してください
- キーワードを入力してください
- URLを入力してください
- キーワードはすでに存在します。違うキーワードを入力してください
- 成功
-
- Web検索
- Web検索を提供
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/pl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/pl.xaml
deleted file mode 100644
index fb6acf9410..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/pl.xaml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- Usuń
- Edytuj
- Dodaj
- Confirm
- Wyzwalacz
- Adres URL
- Szukaj
- Pokazuj podpowiedzi wyszukiwania
- Musisz wybrać coś z listy
- Czy jesteś pewnie że chcesz usunąć {0}?
-
-
- Tytuł
- Aktywne
- Wybierz ikonę
- Ikona
- Anuluj
- Niepoprawne wyszukanie
- Musisz wpisać tytuł
- Musisz wpisać wyzwalacz
- Musisz wpisać adres URL
- Ten wyzwalacz jest już używany, musisz wybrać inny
- Sukces
-
- Wyszukiwarka WWW
- Szybkie wyszukiwanie na stronach WWW
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/tr.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/tr.xaml
deleted file mode 100644
index 1a3951faf7..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/tr.xaml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- Sil
- Düzenle
- Ekle
- Onayla
- Anahtar Kelime
- URL
- Ara:
- Arama önerilerini etkinleştir
- Lütfen bir web araması seçin
- {0} aramasını silmek istediğinize emin misiniz?
-
-
- Başlık
- Etkin
- Simge Seç
- Simge
- İptal
- Geçersiz web araması
- Lütfen bir başlık giriniz
- Lütfen anahtar kelime giriniz
- Lütfen bir URL giriniz
- Anahtar kelime zaten mevcut. Lütfen yeni bir tane seçiniz.
- Başarılı
-
- Web Araması
- Web üzerinde arama yapmanızı sağlar
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/zh-cn.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/zh-cn.xaml
deleted file mode 100644
index d580fb0f51..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/zh-cn.xaml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- 删除
- 编辑
- 添加
- 确认
- 触发关键字
- URL
- 搜索
- 启用搜索建议
- 请选择一项
- 你确定要删除 {0} 吗?
-
-
-
- 标题
- 启用
- 图标
- 选择图标
- 取消
- 非法的网页搜索
- 请输入标题
- 请输入触发关键字
- 请输入URL
- 触发关键字已经存在,请选择一个新的关键字
- 操作成功
-
- 网页搜索
- 提供网页搜索能力
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/zh-tw.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/zh-tw.xaml
deleted file mode 100644
index 5f16400668..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Languages/zh-tw.xaml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- 刪除
- 編輯
- 新增
- 確定
- 觸發關鍵字
- URL
- 搜尋
- 啟用搜尋建議
- 請選擇一項
- 你確定要刪除 {0} 嗎?
-
-
-
- 標題
- 啟用
- 圖示
- 選擇圖示
- 取消
- 無效的網頁搜尋
- 請輸入標題
- 請輸入觸發關鍵字
- 請輸入 URL
- 觸發關鍵字已經存在,請選擇一個新的關鍵字
- 操作成功
-
- 網頁搜尋
- 提供網頁搜尋功能
-
-
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Main.cs
deleted file mode 100644
index 429e51cc06..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Main.cs
+++ /dev/null
@@ -1,195 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Windows.Controls;
-using Wox.Infrastructure;
-using Wox.Infrastructure.Storage;
-using Wox.Plugin.SharedCommands;
-
-namespace Wox.Plugin.WebSearch
-{
- public class Main : IPlugin, ISettingProvider, IPluginI18n, ISavable, IResultUpdated
- {
- private PluginInitContext _context;
-
- private readonly Settings _settings;
- private readonly SettingsViewModel _viewModel;
- private CancellationTokenSource _updateSource;
- private CancellationToken _updateToken;
-
- public const string Images = "Images";
- public static string ImagesDirectory;
-
- private readonly string SearchSourceGlobalPluginWildCardSign = "*";
-
- public void Save()
- {
- _viewModel.Save();
- }
-
- public List Query(Query query)
- {
- var searchSourceList = new List();
- var results = new List();
-
- _updateSource?.Cancel();
- _updateSource = new CancellationTokenSource();
- _updateToken = _updateSource.Token;
-
- _settings.SearchSources.Where(o => (o.ActionKeyword == query.ActionKeyword || o.ActionKeyword == SearchSourceGlobalPluginWildCardSign)
- && o.Enabled)
- .ToList()
- .ForEach(x => searchSourceList.Add(x));
-
- if (searchSourceList.Any())
- {
- foreach (SearchSource searchSource in searchSourceList)
- {
- string keyword = string.Empty;
- keyword = searchSource.ActionKeyword == SearchSourceGlobalPluginWildCardSign ? query.ToString() : query.Search;
- var title = keyword;
- string subtitle = _context.API.GetTranslation("wox_plugin_websearch_search") + " " + searchSource.Title;
-
- if (string.IsNullOrEmpty(keyword))
- {
- var result = new Result
- {
- Title = subtitle,
- SubTitle = string.Empty,
- IcoPath = searchSource.IconPath
- };
- results.Add(result);
- }
- else
- {
- var result = new Result
- {
- Title = title,
- SubTitle = subtitle,
- Score = 6,
- IcoPath = searchSource.IconPath,
- Action = c =>
- {
- if (_settings.OpenInNewBrowser)
- {
- searchSource.Url.Replace("{q}", Uri.EscapeDataString(keyword)).NewBrowserWindow(_settings.BrowserPath);
- }
- else
- {
- searchSource.Url.Replace("{q}", Uri.EscapeDataString(keyword)).NewTabInBrowser(_settings.BrowserPath);
- }
-
- return true;
- }
- };
-
- results.Add(result);
- ResultsUpdated?.Invoke(this, new ResultUpdatedEventArgs
- {
- Results = results,
- Query = query
- });
-
- UpdateResultsFromSuggestion(results, keyword, subtitle, searchSource, query);
- }
- }
- }
-
- return results;
- }
-
- private void UpdateResultsFromSuggestion(List results, string keyword, string subtitle,
- SearchSource searchSource, Query query)
- {
- if (_settings.EnableSuggestion)
- {
- const int waittime = 300;
- var task = Task.Run(async () =>
- {
- var suggestions = await Suggestions(keyword, subtitle, searchSource);
- results.AddRange(suggestions);
- }, _updateToken);
-
- if (!task.Wait(waittime))
- {
- task.ContinueWith(_ => ResultsUpdated?.Invoke(this, new ResultUpdatedEventArgs
- {
- Results = results,
- Query = query
- }), _updateToken);
- }
- }
- }
-
- private async Task> Suggestions(string keyword, string subtitle, SearchSource searchSource)
- {
- var source = _settings.SelectedSuggestion;
- if (source != null)
- {
- var suggestions = await source.Suggestions(keyword);
- var resultsFromSuggestion = suggestions.Select(o => new Result
- {
- Title = o,
- SubTitle = subtitle,
- Score = 5,
- IcoPath = searchSource.IconPath,
- Action = c =>
- {
- if (_settings.OpenInNewBrowser)
- {
- searchSource.Url.Replace("{q}", Uri.EscapeDataString(o)).NewBrowserWindow(_settings.BrowserPath);
- }
- else
- {
- searchSource.Url.Replace("{q}", Uri.EscapeDataString(o)).NewTabInBrowser(_settings.BrowserPath);
- }
-
- return true;
- }
- });
- return resultsFromSuggestion;
- }
- return new List();
- }
-
- public Main()
- {
- _viewModel = new SettingsViewModel();
- _settings = _viewModel.Settings;
- }
-
- public void Init(PluginInitContext context)
- {
- _context = context;
- var pluginDirectory = _context.CurrentPluginMetadata.PluginDirectory;
- var bundledImagesDirectory = Path.Combine(pluginDirectory, Images);
- ImagesDirectory = Path.Combine(_context.CurrentPluginMetadata.PluginDirectory, Images);
- Helper.ValidateDataDirectory(bundledImagesDirectory, ImagesDirectory);
- }
-
- #region ISettingProvider Members
-
- public Control CreateSettingPanel()
- {
- return new SettingsControl(_context, _viewModel);
- }
-
- #endregion
-
- public string GetTranslatedPluginTitle()
- {
- return _context.API.GetTranslation("wox_plugin_websearch_plugin_name");
- }
-
- public string GetTranslatedPluginDescription()
- {
- return _context.API.GetTranslation("wox_plugin_websearch_plugin_description");
- }
-
- public event ResultUpdatedEventHandler ResultsUpdated;
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Properties/AssemblyInfo.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Properties/AssemblyInfo.cs
deleted file mode 100644
index 26736bdf44..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Wox.Plugin.WebSearch")]
-[assembly: Guid("42c17706-44ba-4549-ab66-7bd994706cd1")]
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSource.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSource.cs
deleted file mode 100644
index 5e8b8bdabf..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSource.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System.IO;
-using System.Windows.Media;
-using JetBrains.Annotations;
-using Newtonsoft.Json;
-using Wox.Infrastructure.Image;
-
-namespace Wox.Plugin.WebSearch
-{
- public class SearchSource : BaseModel
- {
- public const string DefaultIcon = "web_search.png";
- public string Title { get; set; }
- public string ActionKeyword { get; set; }
-
- [NotNull]
- public string Icon { get; set; } = DefaultIcon;
-
- ///
- /// All icon should be put under Images directory
- ///
- [NotNull]
- [JsonIgnore]
- internal string IconPath => Path.Combine(Main.ImagesDirectory, Icon);
-
- [JsonIgnore]
- public ImageSource Image => ImageLoader.Load(IconPath);
-
- public string Url { get; set; }
- public bool Enabled { get; set; }
-
- public SearchSource DeepCopy()
- {
- var webSearch = new SearchSource
- {
- Title = string.Copy(Title),
- ActionKeyword = string.Copy(ActionKeyword),
- Url = string.Copy(Url),
- Icon = string.Copy(Icon),
- Enabled = Enabled
- };
- return webSearch;
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceSetting.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceSetting.xaml
deleted file mode 100644
index 5a1e5bce50..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceSetting.xaml
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceSetting.xaml.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceSetting.xaml.cs
deleted file mode 100644
index 9bc31dd03f..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceSetting.xaml.cs
+++ /dev/null
@@ -1,148 +0,0 @@
-using System.Collections.Generic;
-using System.IO;
-using System.Windows;
-using Microsoft.Win32;
-using Wox.Core.Plugin;
-
-namespace Wox.Plugin.WebSearch
-{
- public partial class SearchSourceSettingWindow
- {
- private readonly SearchSource _oldSearchSource;
- private SearchSource _searchSource;
- private IList _searchSources;
- private Action _action;
- private PluginInitContext _context;
- private IPublicAPI _api;
- private SearchSourceViewModel _viewModel;
-
-
- public SearchSourceSettingWindow(IList sources, PluginInitContext context, SearchSource old)
- {
- _oldSearchSource = old;
- _viewModel = new SearchSourceViewModel {SearchSource = old.DeepCopy()};
- Initilize(sources, context, Action.Edit);
- }
-
- public SearchSourceSettingWindow(IList sources, PluginInitContext context)
- {
- _viewModel = new SearchSourceViewModel {SearchSource = new SearchSource()};
- Initilize(sources, context, Action.Add);
- }
-
- private void Initilize(IList sources, PluginInitContext context, Action action)
- {
- InitializeComponent();
- DataContext = _viewModel;
- _searchSource = _viewModel.SearchSource;
- _searchSources = sources;
- _action = action;
- _context = context;
- _api = _context.API;
- }
-
- private void OnCancelButtonClick(object sender, RoutedEventArgs e)
- {
- Close();
- }
-
- private void OnConfirmButtonClick(object sender, RoutedEventArgs e)
- {
- if (string.IsNullOrEmpty(_searchSource.Title))
- {
- var warning = _api.GetTranslation("wox_plugin_websearch_input_title");
- MessageBox.Show(warning);
- }
- else if (string.IsNullOrEmpty(_searchSource.Url))
- {
- var warning = _api.GetTranslation("wox_plugin_websearch_input_url");
- MessageBox.Show(warning);
- }
- else if (string.IsNullOrEmpty(_searchSource.ActionKeyword))
- {
- var warning = _api.GetTranslation("wox_plugin_websearch_input_action_keyword");
- MessageBox.Show(warning);
- }
- else if (_action == Action.Add)
- {
- AddSearchSource();
- }
- else if (_action == Action.Edit)
- {
- EditSearchSource();
- }
- }
-
- private void AddSearchSource()
- {
- var keyword = _searchSource.ActionKeyword;
- if (!PluginManager.ActionKeywordRegistered(keyword))
- {
- var id = _context.CurrentPluginMetadata.ID;
- PluginManager.AddActionKeyword(id, keyword);
-
- _searchSources.Add(_searchSource);
-
- var info = _api.GetTranslation("success");
- MessageBox.Show(info);
- Close();
- }
- else
- {
- var warning = _api.GetTranslation("newActionKeywordsHasBeenAssigned");
- MessageBox.Show(warning);
- }
- }
-
- private void EditSearchSource()
- {
- var newKeyword = _searchSource.ActionKeyword;
- var oldKeyword = _oldSearchSource.ActionKeyword;
- if (!PluginManager.ActionKeywordRegistered(newKeyword) || oldKeyword == newKeyword)
- {
- var id = _context.CurrentPluginMetadata.ID;
- PluginManager.ReplaceActionKeyword(id, oldKeyword, newKeyword);
-
- var index = _searchSources.IndexOf(_oldSearchSource);
- _searchSources[index] = _searchSource;
-
- var info = _api.GetTranslation("success");
- MessageBox.Show(info);
- Close();
- }
- else
- {
- var warning = _api.GetTranslation("newActionKeywordsHasBeenAssigned");
- MessageBox.Show(warning);
- }
- }
-
- private void OnSelectIconClick(object sender, RoutedEventArgs e)
- {
- var directory = Main.ImagesDirectory;
- const string filter = "Image files (*.jpg, *.jpeg, *.gif, *.png, *.bmp) |*.jpg; *.jpeg; *.gif; *.png; *.bmp";
- var dialog = new OpenFileDialog {InitialDirectory = directory, Filter = filter};
-
- var result = dialog.ShowDialog();
- if (result == true)
- {
- var fullpath = dialog.FileName;
- if (!string.IsNullOrEmpty(fullpath))
- {
- _searchSource.Icon = Path.GetFileName(fullpath);
- if (!File.Exists(_searchSource.IconPath))
- {
- _searchSource.Icon = SearchSource.DefaultIcon;
- MessageBox.Show($"The file should be put under {directory}");
- }
- }
- }
- }
- }
-
- public enum Action
- {
- Add,
- Edit
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceViewModel.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceViewModel.cs
deleted file mode 100644
index d57225c812..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SearchSourceViewModel.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace Wox.Plugin.WebSearch
-{
- public class SearchSourceViewModel
- {
- public SearchSource SearchSource { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Settings.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Settings.cs
deleted file mode 100644
index a5c59dad0c..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Settings.cs
+++ /dev/null
@@ -1,227 +0,0 @@
-using System;
-using System.Collections.ObjectModel;
-using Newtonsoft.Json;
-using Wox.Plugin.WebSearch.SuggestionSources;
-
-namespace Wox.Plugin.WebSearch
-{
- public class Settings : BaseModel
- {
- public Settings()
- {
- SelectedSuggestion = Suggestions[0];
- if (SearchSources.Count > 0)
- {
- SelectedSearchSource = SearchSources[0];
- }
- }
-
- public ObservableCollection SearchSources { get; set; } = new ObservableCollection
- {
- new SearchSource
- {
- Title = "Google",
- ActionKeyword = "g",
- Icon = "google.png",
- Url = "https://www.google.com/search?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Google Scholar",
- ActionKeyword = "sc",
- Icon = "google.png",
- Url = "https://scholar.google.com/scholar?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Wikipedia",
- ActionKeyword = "wiki",
- Icon = "wiki.png",
- Url = "https://en.wikipedia.org/wiki/{q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "FindIcon",
- ActionKeyword = "findicon",
- Icon = "pictures.png",
- Url = "http://findicons.com/search/{q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Facebook",
- ActionKeyword = "facebook",
- Icon = "facebook.png",
- Url = "https://www.facebook.com/search/?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Twitter",
- ActionKeyword = "twitter",
- Icon = "twitter.png",
- Url = "https://twitter.com/search?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Google Maps",
- ActionKeyword = "maps",
- Icon = "google_maps.png",
- Url = "https://maps.google.com/maps?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Google Translate",
- ActionKeyword = "translate",
- Icon = "google_translate.png",
- Url = "https://translate.google.com/#auto|en|{q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Duckduckgo",
- ActionKeyword = "duckduckgo",
- Icon = "duckduckgo.png",
- Url = "https://duckduckgo.com/?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Github",
- ActionKeyword = "github",
- Icon = "github.png",
- Url = "https://github.com/search?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Github Gist",
- ActionKeyword = "gist",
- Icon = "gist.png",
- Url = "https://gist.github.com/search?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Gmail",
- ActionKeyword = "gmail",
- Icon = "gmail.png",
- Url = "https://mail.google.com/mail/ca/u/0/#apps/{q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Google Drive",
- ActionKeyword = "drive",
- Icon = "google_drive.png",
- Url = "https://drive.google.com/?hl=en&tab=bo#search/{q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Wolframalpha",
- ActionKeyword = "wolframalpha",
- Icon = "wolframalpha.png",
- Url = "https://www.wolframalpha.com/input/?i={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Stackoverflow",
- ActionKeyword = "stackoverflow",
- Icon = "stackoverflow.png",
- Url = "https://stackoverflow.com/search?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "I'm Feeling Lucky",
- ActionKeyword = "lucky",
- Icon = "google.png",
- Url = "https://google.com/search?q={q}&btnI=I",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Google Image",
- ActionKeyword = "image",
- Icon = "google.png",
- Url = "https://www.google.com/search?q={q}&tbm=isch",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Youtube",
- ActionKeyword = "youtube",
- Icon = "youtube.png",
- Url = "https://www.youtube.com/results?search_query={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Bing",
- ActionKeyword = "bing",
- Icon = "bing.png",
- Url = "https://www.bing.com/search?q={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Yahoo",
- ActionKeyword = "yahoo",
- Icon = "yahoo.png",
- Url = "https://www.search.yahoo.com/search?p={q}",
- Enabled = true
- },
- new SearchSource
- {
- Title = "Baidu",
- ActionKeyword = "bd",
- Icon = "baidu.png",
- Url = "https://www.baidu.com/#ie=UTF-8&wd={q}",
- Enabled = true
- }
- };
-
- [JsonIgnore]
- public SearchSource SelectedSearchSource { get; set; }
-
- public bool EnableSuggestion { get; set; }
-
- [JsonIgnore]
- public SuggestionSource[] Suggestions { get; set; } = {
- new Google(),
- new Baidu()
- };
-
- [JsonIgnore]
- public SuggestionSource SelectedSuggestion { get; set; }
-
- ///
- /// used to store Settings.json only
- ///
- public string Suggestion
- {
- get { return SelectedSuggestion.ToString(); }
- set
- {
- foreach (var s in Suggestions)
- {
- if (string.Equals(s.ToString(), value, StringComparison.OrdinalIgnoreCase))
- {
- SelectedSuggestion = s;
- }
- }
- }
- }
-
- public string BrowserPath { get; set; }
-
- public bool OpenInNewBrowser { get; set; } = true;
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsControl.xaml b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsControl.xaml
deleted file mode 100644
index 0cc580da0d..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsControl.xaml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsControl.xaml.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsControl.xaml.cs
deleted file mode 100644
index b95ace883f..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsControl.xaml.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-using Microsoft.Win32;
-using System.Windows;
-using System.Windows.Controls;
-using Wox.Core.Plugin;
-
-namespace Wox.Plugin.WebSearch
-{
- ///
- /// Interaction logic for WebSearchesSetting.xaml
- ///
- public partial class SettingsControl : UserControl
- {
- private readonly Settings _settings;
- private readonly PluginInitContext _context;
-
- public SettingsControl(PluginInitContext context, SettingsViewModel viewModel)
- {
- InitializeComponent();
- _context = context;
- _settings = viewModel.Settings;
- DataContext = viewModel;
- browserPathBox.Text = _settings.BrowserPath;
- NewWindowBrowser.IsChecked = _settings.OpenInNewBrowser;
- NewTabInBrowser.IsChecked = !_settings.OpenInNewBrowser;
- }
-
- private void OnAddSearchSearchClick(object sender, RoutedEventArgs e)
- {
- var setting = new SearchSourceSettingWindow(_settings.SearchSources, _context);
- setting.ShowDialog();
- }
-
- private void OnDeleteSearchSearchClick(object sender, RoutedEventArgs e)
- {
- if (_settings.SelectedSearchSource != null)
- {
- var selected = _settings.SelectedSearchSource;
- var warning = _context.API.GetTranslation("wox_plugin_websearch_delete_warning");
- var formated = string.Format(warning, selected.Title);
-
- var result = MessageBox.Show(formated, string.Empty, MessageBoxButton.YesNo);
- if (result == MessageBoxResult.Yes)
- {
- var id = _context.CurrentPluginMetadata.ID;
- PluginManager.RemoveActionKeyword(id, selected.ActionKeyword);
- _settings.SearchSources.Remove(selected);
- }
- }
- }
-
- private void OnEditSearchSourceClick(object sender, RoutedEventArgs e)
- {
- if (_settings.SelectedSearchSource != null)
- {
- var webSearch = new SearchSourceSettingWindow
- (
- _settings.SearchSources, _context, _settings.SelectedSearchSource
- );
-
- webSearch.ShowDialog();
- }
- }
-
- private void OnNewBrowserWindowClick(object sender, RoutedEventArgs e)
- {
- _settings.OpenInNewBrowser = true;
- }
-
- private void OnNewTabClick(object sender, RoutedEventArgs e)
- {
- _settings.OpenInNewBrowser = false;
- }
-
- private void OnChooseClick(object sender, RoutedEventArgs e)
- {
- var fileBrowserDialog = new OpenFileDialog();
- fileBrowserDialog.Filter = "Application(*.exe)|*.exe|All files|*.*";
- fileBrowserDialog.CheckFileExists = true;
- fileBrowserDialog.CheckPathExists = true;
- if (fileBrowserDialog.ShowDialog() == true)
- {
- browserPathBox.Text = fileBrowserDialog.FileName;
- _settings.BrowserPath = fileBrowserDialog.FileName;
- }
- }
- }
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsViewModel.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsViewModel.cs
deleted file mode 100644
index 5d50c3926c..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SettingsViewModel.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using Wox.Infrastructure.Storage;
-
-namespace Wox.Plugin.WebSearch
-{
- public class SettingsViewModel
- {
- private readonly PluginJsonStorage _storage;
-
- public SettingsViewModel()
- {
- _storage = new PluginJsonStorage();
- Settings = _storage.Load();
- }
-
- public Settings Settings { get; set; }
-
- public void Save()
- {
- _storage.Save();
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/Baidu.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/Baidu.cs
deleted file mode 100644
index 7d58a57f5c..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/Baidu.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
-using Wox.Infrastructure.Http;
-using Wox.Infrastructure.Logger;
-
-namespace Wox.Plugin.WebSearch.SuggestionSources
-{
- public class Baidu : SuggestionSource
- {
- private readonly Regex _reg = new Regex("window.baidu.sug\\((.*)\\)");
-
- public override async Task> Suggestions(string query)
- {
- string result;
-
- try
- {
- const string api = "http://suggestion.baidu.com/su?json=1&wd=";
- result = await Http.Get(api + Uri.EscapeUriString(query), "GB2312");
- }
- catch (WebException e)
- {
- Log.Exception("|Baidu.Suggestions|Can't get suggestion from baidu", e);
- return new List();
- }
-
- if (string.IsNullOrEmpty(result)) return new List();
- Match match = _reg.Match(result);
- if (match.Success)
- {
- JContainer json;
- try
- {
- json = JsonConvert.DeserializeObject(match.Groups[1].Value) as JContainer;
- }
- catch (JsonSerializationException e)
- {
- Log.Exception("|Baidu.Suggestions|can't parse suggestions", e);
- return new List();
- }
-
- if (json != null)
- {
- var results = json["s"] as JArray;
- if (results != null)
- {
- return results.OfType().Select(o => o.Value).OfType().ToList();
- }
- }
- }
-
- return new List();
- }
-
- public override string ToString()
- {
- return "Baidu";
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/Google.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/Google.cs
deleted file mode 100644
index d7a908969b..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/Google.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
-using System.Threading.Tasks;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
-using Wox.Infrastructure.Http;
-using Wox.Infrastructure.Logger;
-
-namespace Wox.Plugin.WebSearch.SuggestionSources
-{
- public class Google : SuggestionSource
- {
- public override async Task> Suggestions(string query)
- {
- string result;
- try
- {
- const string api = "https://www.google.com/complete/search?output=chrome&q=";
- result = await Http.Get(api + Uri.EscapeUriString(query));
- }
- catch (WebException e)
- {
- Log.Exception("|Google.Suggestions|Can't get suggestion from google", e);
- return new List();
- ;
- }
- if (string.IsNullOrEmpty(result)) return new List();
- JContainer json;
- try
- {
- json = JsonConvert.DeserializeObject(result) as JContainer;
- }
- catch (JsonSerializationException e)
- {
- Log.Exception("|Google.Suggestions|can't parse suggestions", e);
- return new List();
- }
- if (json != null)
- {
- var results = json[1] as JContainer;
- if (results != null)
- {
- return results.OfType().Select(o => o.Value).OfType().ToList();
- }
- }
- return new List();
- }
-
- public override string ToString()
- {
- return "Google";
- }
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/SuggestionSource.cs b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/SuggestionSource.cs
deleted file mode 100644
index 173efcfaa5..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/SuggestionSources/SuggestionSource.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Collections.Generic;
-using System.Threading.Tasks;
-
-namespace Wox.Plugin.WebSearch.SuggestionSources
-{
- public abstract class SuggestionSource
- {
- public abstract Task> Suggestions(string query);
- }
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj
deleted file mode 100644
index 7073487b78..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/Wox.Plugin.WebSearch.csproj
+++ /dev/null
@@ -1,206 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {403B57F2-1856-4FC7-8A24-36AB346B763E}
- Library
- Properties
- Wox.Plugin.WebSearch
- Wox.Plugin.WebSearch
- v4.5.2
- 512
- ..\..\
-
-
-
- true
- full
- false
- ..\..\Output\Debug\Plugins\Wox.Plugin.WebSearch\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- ..\..\Output\Release\Plugins\Wox.Plugin.WebSearch\
- TRACE
- prompt
- 4
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Properties\SolutionAssemblyInfo.cs
-
-
-
-
-
-
-
-
-
- SettingsControl.xaml
-
-
-
- SearchSourceSetting.xaml
-
-
-
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
- PreserveNewest
-
-
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
-
-
-
-
- {B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}
- Wox.Core
-
-
- {4fd29318-a8ab-4d8f-aa47-60bc241b8da3}
- Wox.Infrastructure
-
-
- {8451ecdd-2ea4-4966-bb0a-7bbc40138e80}
- Wox.Plugin
-
-
-
-
- PreserveNewest
-
-
-
-
- PreserveNewest
-
-
-
-
- 10.3.0
-
-
- 9.0.1
-
-
- 4.0.0
-
-
-
-
-
\ No newline at end of file
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/plugin.json b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/plugin.json
deleted file mode 100644
index 2fe7fe2921..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/plugin.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "ID": "565B73353DBF4806919830B9202EE3BF",
- "ActionKeywords": [
- "g",
- "wiki",
- "findicon",
- "facebook",
- "twitter",
- "maps",
- "translate",
- "duckduckgo",
- "github",
- "gist",
- "gmail",
- "drive",
- "wolframalpha",
- "stackoverflow",
- "lucky",
- "image",
- "youtube",
- "bing",
- "yahoo",
- "bd"
- ],
- "Name": "Web Searches",
- "Description": "Provide the web search ability",
- "Author": "qianlifeng",
- "Version": "1.0.0",
- "Language": "csharp",
- "Website": "http://www.wox.one/plugin",
- "ExecuteFileName": "Wox.Plugin.WebSearch.dll",
- "IcoPath": "Images\\web_search.png"
-}
diff --git a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/setting.json b/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/setting.json
deleted file mode 100644
index c31d02ae67..0000000000
--- a/src/modules/launcher/Plugins/Wox.Plugin.WebSearch/setting.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "WebSearches": [
- {
- "Title": "Google",
- "ActionKeyword": "g",
- "IconPath": "Images\\google.png",
- "Url": "https://www.google.com/search?q={q}",
- "Enabled": true
- },
- {
- "Title": "Wikipedia",
- "ActionKeyword": "wiki",
- "IconPath": "Images\\wiki.png",
- "Url": "http://en.wikipedia.org/wiki/{q}",
- "Enabled": true
- },
- {
- "Title": "FindIcon",
- "ActionKeyword": "findicon",
- "IconPath": "Images\\pictures.png",
- "Url": "http://findicons.com/search/{q}",
- "Enabled": true
- },
- {
- "Title": "Facebook",
- "ActionKeyword": "facebook",
- "IconPath": "Images\\facebook.png",
- "Url": "http://www.facebook.com/search/?q={q}",
- "Enabled": true
- },
- {
- "Title": "Twitter",
- "ActionKeyword": "twitter",
- "IconPath": "Images\\twitter.png",
- "Url": "http://twitter.com/search?q={q}",
- "Enabled": true
- },
- {
- "Title": "Google Maps",
- "ActionKeyword": "maps",
- "IconPath": "Images\\google_maps.png",
- "Url": "http://maps.google.com/maps?q={q}",
- "Enabled": true
- },
- {
- "Title": "Google Translate",
- "ActionKeyword": "translate",
- "IconPath": "Images\\google_translate.png",
- "Url": "http://translate.google.com/#auto|en|{q}",
- "Enabled": true
- },
- {
- "Title": "Duckduckgo",
- "ActionKeyword": "duckduckgo",
- "IconPath": "Images\\duckduckgo.png",
- "Url": "https://duckduckgo.com/?q={q}",
- "Enabled": true
- },
- {
- "Title": "Github",
- "ActionKeyword": "github",
- "IconPath": "Images\\github.png",
- "Url": "https://github.com/search?q={q}",
- "Enabled": true
- },
- {
- "Title": "Github Gist",
- "ActionKeyword": "gist",
- "IconPath": "Images\\gist.png",
- "Url": "https://gist.github.com/search?q={q}",
- "Enabled": true
- },
- {
- "Title": "Gmail",
- "ActionKeyword": "gmail",
- "IconPath": "Images\\gmail.png",
- "Url": "https://mail.google.com/mail/ca/u/0/#apps/{q}",
- "Enabled": true
- },
- {
- "Title": "Google Drive",
- "ActionKeyword": "drive",
- "IconPath": "Images\\google_drive.png",
- "Url": "http://drive.google.com/?hl=en&tab=bo#search/{q}",
- "Enabled": true
- },
- {
- "Title": "Wolframalpha",
- "ActionKeyword": "wolframalpha",
- "IconPath": "Images\\wolframalpha.png",
- "Url": "http://www.wolframalpha.com/input/?i={q}",
- "Enabled": true
- },
- {
- "Title": "Stackoverflow",
- "ActionKeyword": "stackoverflow",
- "IconPath": "Images\\stackoverflow.png",
- "Url": "http://stackoverflow.com/search?q={q}",
- "Enabled": true
- },
- {
- "Title": "I'm Feeling Lucky",
- "ActionKeyword": "lucky",
- "IconPath": "Images\\google.png",
- "Url": "http://google.com/search?q={q}&btnI=I",
- "Enabled": true
- },
- {
- "Title": "Google Image",
- "ActionKeyword": "image",
- "IconPath": "Images\\google.png",
- "Url": "https://www.google.com/search?q={q}&tbm=isch",
- "Enabled": true
- },
- {
- "Title": "Youtube",
- "ActionKeyword": "youtube",
- "IconPath": "Images\\youtube.png",
- "Url": "http://www.youtube.com/results?search_query={q}",
- "Enabled": true
- },
- {
- "Title": "Bing",
- "ActionKeyword": "bing",
- "IconPath": "Images\\bing.png",
- "URL": "https://www.bing.com/search?q={q}",
- "Enabled": true
- },
- {
- "Title": "Yahoo",
- "ActionKeyword": "yahoo",
- "IconPath": "Images\\yahoo.png",
- "URL": "http://www.search.yahoo.com/search?p={q}",
- "Enabled": true
- }
- ],
- "EnableWebSearchSuggestion": false,
- "WebSearchSuggestionSource": "Google"
-}
\ No newline at end of file
diff --git a/src/modules/launcher/Wox.Core/Wox.Core.csproj b/src/modules/launcher/Wox.Core/Wox.Core.csproj
index ed33ee7980..c7235c9fd5 100644
--- a/src/modules/launcher/Wox.Core/Wox.Core.csproj
+++ b/src/modules/launcher/Wox.Core/Wox.Core.csproj
@@ -16,24 +16,28 @@
-
+
true
- full
- false
..\..\..\..\x64\Debug\modules\launcher\
DEBUG;TRACE
+ full
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
+ false
-
- pdbonly
- true
+
..\..\..\..\x64\Release\modules\launcher\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
diff --git a/src/modules/launcher/Wox.Infrastructure/Wox.Infrastructure.csproj b/src/modules/launcher/Wox.Infrastructure/Wox.Infrastructure.csproj
index 0b0a7db25c..ed90cd4612 100644
--- a/src/modules/launcher/Wox.Infrastructure/Wox.Infrastructure.csproj
+++ b/src/modules/launcher/Wox.Infrastructure/Wox.Infrastructure.csproj
@@ -14,26 +14,29 @@
..\
-
+
true
- full
- false
..\..\..\..\x64\Debug\modules\launcher\
DEBUG;TRACE
- prompt
- 4
true
- false
+ full
+ x64
+ 7.3
+ prompt
+ MinimumRecommendedRules.ruleset
+ 4
+ false
-
- pdbonly
- true
+
..\..\..\..\x64\Release\modules\launcher\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
- false
diff --git a/src/modules/launcher/Wox.Plugin/Wox.Plugin.csproj b/src/modules/launcher/Wox.Plugin/Wox.Plugin.csproj
index fd2fbcf6dd..5bae8ae060 100644
--- a/src/modules/launcher/Wox.Plugin/Wox.Plugin.csproj
+++ b/src/modules/launcher/Wox.Plugin/Wox.Plugin.csproj
@@ -15,25 +15,28 @@
-
+
true
- full
- false
..\..\..\..\x64\Debug\modules\launcher\
DEBUG;TRACE
+ full
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- AnyCPU
- false
+ false
-
- pdbonly
- true
+
..\..\..\..\x64\Release\modules\launcher\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
diff --git a/src/modules/launcher/Wox.Test/Wox.Test.csproj b/src/modules/launcher/Wox.Test/Wox.Test.csproj
index e656fca226..df6e88f333 100644
--- a/src/modules/launcher/Wox.Test/Wox.Test.csproj
+++ b/src/modules/launcher/Wox.Test/Wox.Test.csproj
@@ -16,24 +16,29 @@
-
+
true
- full
- false
- bin\Debug\
+ ..\..\..\..\x64\Debug\modules\launcher\
DEBUG;TRACE
+ full
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
+ false
+ false
-
- pdbonly
- true
- bin\Release\
+
+ ..\..\..\..\x64\Release\modules\launcher\
TRACE
+ true
+ pdbonly
+ x64
+ 7.3
prompt
+ MinimumRecommendedRules.ruleset
4
- false
diff --git a/src/modules/launcher/Wox/Wox.csproj b/src/modules/launcher/Wox/Wox.csproj
index aba4f16037..b0677e84c2 100644
--- a/src/modules/launcher/Wox/Wox.csproj
+++ b/src/modules/launcher/Wox/Wox.csproj
@@ -33,28 +33,6 @@
false
true
-
- AnyCPU
- true
- full
- false
- ..\..\..\..\x64\Debug\modules\launcher\
- DEBUG;TRACE
- prompt
- 4
- true
- false
-
-
- AnyCPU
- pdbonly
- true
- ..\..\..\..\x64\Release\modules\launcher\
- TRACE;RELEASE
- prompt
- 4
- false
-
Resources\app.ico
@@ -64,6 +42,29 @@
app.manifest
+
+ true
+ ..\..\..\..\x64\Debug\modules\launcher\
+ DEBUG;TRACE
+ full
+ x64
+ 7.3
+ prompt
+ MinimumRecommendedRules.ruleset
+ 4
+ false
+
+
+ ..\..\..\..\x64\Release\modules\launcher\
+ TRACE;RELEASE
+ true
+ pdbonly
+ x64
+ 7.3
+ prompt
+ MinimumRecommendedRules.ruleset
+ 4
+