mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Change plugin config file format (from ini to json)
This commit is contained in:
|
Before Width: | Height: | Size: 924 B After Width: | Height: | Size: 924 B |
@@ -60,7 +60,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
<None Include="plugin.ini">
|
||||
<None Include="plugin.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
12
Plugins/Wox.Plugin.Clipboard/plugin.json
Normal file
12
Plugins/Wox.Plugin.Clipboard/plugin.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ID":"D2D2C23B084D411DB66FE0C79D6C2A6C",
|
||||
"ActionKeyword":"cb",
|
||||
"Name":"Wox.Plugin.Clipboard",
|
||||
"Description":"clipboard history search",
|
||||
"Author":"qianlifeng",
|
||||
"Version":"1.0",
|
||||
"Language":"csharp",
|
||||
"Website":"http://www.getwox.com",
|
||||
"ExecuteFileName":"Wox.Plugin.Clipboard.dll"
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Wox.Plugin.Doc
|
||||
|
||||
public void Init(PluginInitContext context)
|
||||
{
|
||||
docsetBasePath = context.PluginMetadata.PluginDirecotry + @"Docset";
|
||||
docsetBasePath = context.CurrentPluginMetadata.PluginDirecotry + @"Docset";
|
||||
if (!Directory.Exists(docsetBasePath))
|
||||
Directory.CreateDirectory(docsetBasePath);
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
<None Include="plugin.ini">
|
||||
<None Include="plugin.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="README.md" />
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[plugin]
|
||||
ActionKeyword = doc
|
||||
Name = Dash.Doc
|
||||
Author = qianlifeng
|
||||
Version = 0.1
|
||||
Language = csharp
|
||||
Description = Offline doc, inspired by dash
|
||||
ExecuteFile = Wox.Plugin.Doc.dll
|
||||
11
Plugins/Wox.Plugin.Doc/plugin.json
Normal file
11
Plugins/Wox.Plugin.Doc/plugin.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ID":"D2D2C23B084D411DB66FE0C79D6C2A6B",
|
||||
"ActionKeyword":"doc",
|
||||
"Name":"Dash.Doc",
|
||||
"Description":"Offline doc, inspired by dash",
|
||||
"Author":"qianlifeng",
|
||||
"Version":"1.0",
|
||||
"Language":"csharp",
|
||||
"Website":"http://www.getwox.com",
|
||||
"ExecuteFileName":"Wox.Plugin.Doc.dll"
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
[plugin]
|
||||
ActionKeyword = cb
|
||||
Name = clipboard monitor
|
||||
Author = qianlifeng
|
||||
Version = 0.1
|
||||
Language = csharp
|
||||
Description = clipboard monitor
|
||||
ExecuteFile = Wox.Plugin.Clipboard.dll
|
||||
@@ -1,8 +0,0 @@
|
||||
[plugin]
|
||||
ActionKeyword = movie
|
||||
Name = douban
|
||||
Author = qianlifeng
|
||||
Version = 0.1
|
||||
Language = python
|
||||
Description = test
|
||||
ExecuteFile = main.py
|
||||
11
Plugins/Wox.Plugin.DouBan/plugin.json
Normal file
11
Plugins/Wox.Plugin.DouBan/plugin.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ID":"D2D2C23B084D411DB66FE0C79D6C2A6D",
|
||||
"ActionKeyword":"movie",
|
||||
"Name":"Wox.Plugin.Douban.Movie",
|
||||
"Description":"search douban movies",
|
||||
"Author":"qianlifeng",
|
||||
"Version":"1.0",
|
||||
"Language":"python",
|
||||
"Website":"http://www.getwox.com",
|
||||
"ExecuteFileName":"main.py"
|
||||
}
|
||||
@@ -55,7 +55,7 @@ namespace Wox.Plugin.Everything
|
||||
this.context = context;
|
||||
|
||||
LoadLibrary(Path.Combine(
|
||||
Path.Combine(context.PluginMetadata.PluginDirecotry, (IntPtr.Size == 4) ? "x86" : "x64"),
|
||||
Path.Combine(context.CurrentPluginMetadata.PluginDirecotry, (IntPtr.Size == 4) ? "x86" : "x64"),
|
||||
"Everything.dll"
|
||||
));
|
||||
//init everything
|
||||
|
||||
@@ -70,15 +70,15 @@
|
||||
<Name>Wox.Plugin</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="plugin.ini">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="x64\Everything.dll" />
|
||||
<Content Include="x86\Everything.dll" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="plugin.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>xcopy /Y /E $(TargetDir)*.* $(SolutionDir)Wox\bin\Debug\Plugins\$(ProjectName)\
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[plugin]
|
||||
ActionKeyword = ev
|
||||
Name = everything
|
||||
Author = qianlifeng
|
||||
Version = 0.1
|
||||
Language = csharp
|
||||
Description = test
|
||||
ExecuteFile = Wox.Plugin.Everything.dll
|
||||
11
Plugins/Wox.Plugin.Everything/plugin.json
Normal file
11
Plugins/Wox.Plugin.Everything/plugin.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ID":"D2D2C23B084D411DB66FE0C79D6C2A6E",
|
||||
"ActionKeyword":"ev",
|
||||
"Name":"Wox.Plugin.Everything",
|
||||
"Description":"Search Everything",
|
||||
"Author":"orzfly",
|
||||
"Version":"1.0",
|
||||
"Language":"csharp",
|
||||
"Website":"http://www.getwox.com",
|
||||
"ExecuteFileName":"Wox.Plugin.Everything.dll"
|
||||
}
|
||||
@@ -59,7 +59,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
<None Include="plugin.ini">
|
||||
<None Include="plugin.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[plugin]
|
||||
ActionKeyword = fy
|
||||
Name = Translator
|
||||
Author = qianlifeng
|
||||
Version = 0.1
|
||||
Language = csharp
|
||||
Description = Chinese and English Translator
|
||||
ExecuteFile = Wox.Plugin.Fanyi.dll
|
||||
11
Plugins/Wox.Plugin.Fanyi/plugin.json
Normal file
11
Plugins/Wox.Plugin.Fanyi/plugin.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ID":"D2D2C23B084D411DB66FE0C79D6C2A6A",
|
||||
"ActionKeyword":"fy",
|
||||
"Name":"Baidu Translator",
|
||||
"Description":"Translate Chinese and English",
|
||||
"Author":"qianlifeng",
|
||||
"Version":"1.0",
|
||||
"Language":"csharp",
|
||||
"Website":"http://www.getwox.com",
|
||||
"ExecuteFileName":"Wox.Plugin.Fanyi.dll"
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
[plugin]
|
||||
ActionKeyword = kill
|
||||
Name = Wox.Kill
|
||||
Author = qianlifeng
|
||||
Version = 0.1
|
||||
Language = python
|
||||
Description = kill process
|
||||
ExecuteFile = main.py
|
||||
12
Plugins/Wox.Plugin.Kill/plugin.json
Normal file
12
Plugins/Wox.Plugin.Kill/plugin.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ID":"D2D2C23B084D411DB66FE0C79D6C2A6G",
|
||||
"ActionKeyword":"kill",
|
||||
"Name":"Wox.Plugin.kill",
|
||||
"Description":"kill running program",
|
||||
"Author":"qianlifeng",
|
||||
"Version":"1.0",
|
||||
"Language":"python",
|
||||
"Website":"http://www.getwox.com",
|
||||
"ExecuteFileName":"main.py"
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[plugin]
|
||||
ActionKeyword = v2ex
|
||||
Name = Wox.V2ex
|
||||
Author = qianlifeng
|
||||
Version = 0.1
|
||||
Language = python
|
||||
Description = workflow for v2ex
|
||||
ExecuteFile = main.py
|
||||
12
Plugins/Wox.Plugin.V2ex/plugin.json
Normal file
12
Plugins/Wox.Plugin.V2ex/plugin.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ID":"D2D2C23B084D411DB66FE0C79D6C2A6H",
|
||||
"ActionKeyword":"v2ex",
|
||||
"Name":"Wox.Plugin.v2ex",
|
||||
"Description":"v2ex viewer",
|
||||
"Author":"qianlifeng",
|
||||
"Version":"1.0",
|
||||
"Language":"python",
|
||||
"Website":"http://www.getwox.com",
|
||||
"ExecuteFileName":"main.py"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user