Skip to content

Release 1.9.0 | Plugin 2.1.0 #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 807 commits into from
Dec 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
807 commits
Select commit Hold shift + click to select a range
d1bf471
fix Correct typos. (colr to color)
onesounds Nov 25, 2021
b1bbe8a
Add TextBlock Color / Adjust BookMarkPlugin Input Height
onesounds Nov 25, 2021
84182fe
Update SettingWindow.xaml.cs
taooceros Nov 25, 2021
3e25f35
Merge branch 'DarkMode' of github.com:onesounds/Flow.Launcher into Da…
taooceros Nov 25, 2021
ec03cc2
Fix Theme Item Selected Button Color
onesounds Nov 25, 2021
c2887e2
Fix Color
onesounds Nov 25, 2021
ffa7e92
Adjust Disabled ContextMenu Color
onesounds Nov 25, 2021
1d6e18f
Add Context Menu Style & Template for darkmode
onesounds Nov 25, 2021
b6032ea
Adjust Shadow Color
onesounds Nov 25, 2021
16c30e9
Refactor Shell Command
taooceros Nov 25, 2021
b4f06ca
revert method removal
taooceros Nov 25, 2021
65fdca5
Fix Priority NumberBox Color
onesounds Nov 26, 2021
49b3a02
Adjust Animation Time
onesounds Nov 26, 2021
c94a04b
refinements to delay and show hide toggle
jjw24 Nov 27, 2021
091b4af
switch to use main window's Show method
jjw24 Nov 27, 2021
5e57d73
Merge pull request #810 from onesounds/RealFinalAnimation
jjw24 Nov 27, 2021
16c6e8b
Merge Dev
onesounds Nov 27, 2021
5292464
Merge Dev
onesounds Nov 27, 2021
8a02049
Add Open Setting Hotkey (Ctrl+I)
onesounds Nov 27, 2021
12cdf66
Remove Setting Panel Size Limit
onesounds Nov 27, 2021
905c15b
Remove Setting Panel Size Limit
onesounds Nov 27, 2021
3e645cc
Add MaxHeight
onesounds Nov 27, 2021
da28c1a
Add MaxHeight
onesounds Nov 27, 2021
6a911cb
Adjust Height
onesounds Nov 27, 2021
1c60b8e
Use Function Pointer to handle the low level keyboard proc
taooceros Nov 27, 2021
8343bc7
Add hide uwp/lnk path setting
onesounds Nov 27, 2021
d3d1f6f
Fix Unexpected Intercept result when multiple plugin register the glo…
taooceros Nov 27, 2021
113f154
Adjust SettingPanel Layout
onesounds Nov 27, 2021
cb77fbf
Merge branch 'DarkMode' into AdjustProgramPlugin
onesounds Nov 27, 2021
12fdeff
Adjust Popup Layout
onesounds Nov 27, 2021
ea4ae0c
Add Listview Style Comment & Adjust button margin
onesounds Nov 27, 2021
9297bac
Adjust Color in SearchSourceSetting/ Remove Comment in SelectFileManager
onesounds Nov 28, 2021
1b0fa24
Merge branch 'DarkMode' into AdjustProgramPlugin
onesounds Nov 28, 2021
ea179e5
shorten version compare logic
jjw24 Nov 28, 2021
07aebae
Merge branch 'dev' into install-from-url
jjw24 Nov 28, 2021
4f5eb2b
Merge pull request #823 from Garulf/install-from-url
jjw24 Nov 28, 2021
056bffe
Shell version bump
jjw24 Nov 28, 2021
5204643
Merge pull request #829 from taooceros/ShellNotClose
jjw24 Nov 28, 2021
83feb09
update to constants and change method name to OpenThemeFolder
jjw24 Nov 28, 2021
2ebdead
Merge pull request #817 from onesounds/DarkMode
jjw24 Nov 28, 2021
e7198c6
Merge pull request #742 from spedrickson/JsonRPCShellRun
jjw24 Nov 28, 2021
489e739
Add Korean String / Change some hardcoded text to string / Remove Dar…
onesounds Nov 29, 2021
eb48e12
Add Korean String / Adjust button size and color / Change Action Key…
onesounds Nov 29, 2021
8d21868
Add Game Mode Tooltip in tray.
onesounds Nov 29, 2021
093a191
Change Icon back to field to maintain backward compatibility
taooceros Nov 29, 2021
1c732d4
Merge pull request #838 from Flow-Launcher/IconField
jjw24 Nov 29, 2021
5803cbe
Merge pull request #837 from onesounds/KoreanLanguage
jjw24 Nov 29, 2021
84fed73
Shell plugin version bump
jjw24 Nov 29, 2021
b826090
Merge remote-tracking branch 'origin/dev' into GlobalHotkeyRefactor
jjw24 Nov 29, 2021
dbf3f1e
Merge remote-tracking branch 'origin/dev' into AdjustProgramPlugin
jjw24 Nov 29, 2021
51481d7
simplify if condition for hide app path
jjw24 Nov 29, 2021
3d8ed60
Program plugin version bump
jjw24 Nov 29, 2021
bcb956a
switch off the default launch on system start up
jjw24 Nov 29, 2021
d8773b8
Merge pull request #840 from Flow-Launcher/disable_startup_default
jjw24 Nov 29, 2021
5fbf717
Rename DarkMode to Color Scheme
onesounds Nov 29, 2021
0464e14
Change DarkMode Glyph
onesounds Nov 29, 2021
86168db
Change EnableHideLnkPath Name to EnableHideAppsPath
onesounds Nov 29, 2021
582fe6c
Change EnableHideLnkPath Name to EnableHideAppsPath
onesounds Nov 29, 2021
caf0f58
Merge branch 'AdjustProgramPlugin' of https://github.com/onesounds/Fl…
onesounds Nov 29, 2021
f42a96e
update variable name
jjw24 Nov 29, 2021
365f7e7
Merge pull request #841 from onesounds/RenameDarkMode
jjw24 Nov 29, 2021
9fac7cc
Update WindowsSettings.light.png
taooceros Nov 29, 2021
1990a7e
Merge remote-tracking branch 'upstream/dev' into add_windows_settings…
taooceros Nov 29, 2021
505bbb9
Rename setting and reset cache when results are chosen
taooceros Nov 30, 2021
dafd7d2
Adjust program setting listview style
taooceros Nov 30, 2021
264aed9
Merge remote-tracking branch 'upstream/dev' into pr/835
taooceros Nov 30, 2021
594075d
Adjust Button Size
onesounds Nov 30, 2021
3785a90
Add WelcomeWindow and temp menu in tray to test
onesounds Nov 30, 2021
df9ddb0
Add Custom TitleBar
onesounds Nov 30, 2021
699bcfd
add button and adjust color
onesounds Nov 30, 2021
fffaa89
Provide Flow info in ENVs
Garulf Nov 30, 2021
702a151
Add clipboard function
Garulf Nov 30, 2021
b0b4bff
Add clipboard function
Garulf Nov 30, 2021
17bcb27
Use Clipboard.SetDataObject()
Garulf Nov 30, 2021
08ad38e
Merge pull request #847 from Garulf/flow-info-envs
jjw24 Nov 30, 2021
b134e0e
Merge pull request #848 from Garulf/clipboard-api-function
jjw24 Nov 30, 2021
37a8f26
Add Welcome Pages
onesounds Nov 30, 2021
65fe891
Add Page Navigation
onesounds Nov 30, 2021
96bcf1b
Merge pull request #835 from onesounds/AdjustProgramPlugin
jjw24 Nov 30, 2021
a701b48
Merge remote-tracking branch 'origin/dev' into add_windows_settings_p…
jjw24 Nov 30, 2021
832cbe4
update action keyword tips typo
jjw24 Nov 30, 2021
0a5e636
remove git ignore from WindowsSettings
jjw24 Nov 30, 2021
bf1e939
rename WindowsSettings project
jjw24 Nov 30, 2021
e2ff4c2
Add Welcome Images and Adjust Pages
onesounds Nov 30, 2021
c88af8a
include WindowsSettings project in build
jjw24 Nov 30, 2021
16dc996
- Change Text to String
onesounds Nov 30, 2021
e66af0f
Add ControlPanelIcon
taooceros Nov 30, 2021
9d26eb9
Merge branch 'add_windows_settings_plugin' of github.com:Flow-Launche…
taooceros Nov 30, 2021
39b6267
Add Hotkey Data & List Style
onesounds Nov 30, 2021
fb60c5b
Change page image
onesounds Dec 1, 2021
7e2a3bc
Adjust Content
onesounds Dec 1, 2021
5a733d0
Initial Tab complete
Garulf Dec 1, 2021
0d152f5
change default action keyword to global
jjw24 Dec 1, 2021
e7d3dec
fix typo
jjw24 Dec 1, 2021
d61ac85
Remove requery bool
Garulf Dec 1, 2021
acb697c
update project file, plugin.json and comments
jjw24 Dec 1, 2021
8fc5776
update plugin description
jjw24 Dec 1, 2021
0b725eb
change project to .Net SDK, Any CPU build, remove Platform targeted,
jjw24 Dec 1, 2021
05c1466
Assign Setting to Welcome Page
taooceros Dec 2, 2021
6043930
Fix two binding
taooceros Dec 2, 2021
ff7b986
Update PageNumber
taooceros Dec 2, 2021
0cf7fa7
Fix PageNubmerDisplay
onesounds Dec 2, 2021
0982198
Fix HideOnstartup Checkbox
onesounds Dec 2, 2021
2bfbba9
Add Done button Binding in page5
onesounds Dec 2, 2021
25f71e8
Change Text to String
onesounds Dec 2, 2021
61a5fd1
Add CheckFirstLaucnh Setting
onesounds Dec 2, 2021
d4532d6
- Add and adjust Korean translation
onesounds Dec 2, 2021
a6f1e7f
chage welcomewindow text to string
onesounds Dec 2, 2021
aad4fc1
update subtitle's setting type display to System settings/Control Panel
jjw24 Dec 2, 2021
b497f7b
remove WindowsSettings.json duplicate taskbar entry, update description
jjw24 Dec 2, 2021
0250a28
update typo
jjw24 Dec 2, 2021
7297c1b
remove ControlPanel plugin
jjw24 Dec 2, 2021
a4fd337
remove unused icon image WindowsSettings.dark.png
jjw24 Dec 2, 2021
2e67979
Merge pull request #741 from Flow-Launcher/add_windows_settings_plugin
jjw24 Dec 2, 2021
85fbdd1
Change Pages to ui:Page (modernWPF)
onesounds Dec 2, 2021
0d6a9c7
Revise the parameter assigning process & change navigation transition
taooceros Dec 2, 2021
610e9de
Merge branch 'WelcomeWindow' of github.com:onesounds/Flow.Launcher in…
taooceros Dec 2, 2021
0092805
Fix duplicated header
onesounds Dec 2, 2021
5654ebb
Add wizard image in page 1
onesounds Dec 2, 2021
d72c685
Remove Keyboard Image
onesounds Dec 2, 2021
d257040
change ko translataion
onesounds Dec 2, 2021
848ee1c
adjust ko text
onesounds Dec 2, 2021
cffdb07
Merge branch 'dev' into WelcomeWindow
onesounds Dec 2, 2021
56b9f4f
Add ko translation
onesounds Dec 2, 2021
430a126
Change En String (deefrawley)
onesounds Dec 3, 2021
a632cea
Adjust Korean
onesounds Dec 3, 2021
3d07ab5
adjust ko string
onesounds Dec 3, 2021
2cedd1b
change weather tip as action keyword is no longer required
jjw24 Dec 3, 2021
a94e6a3
update code format
jjw24 Dec 3, 2021
af2fae5
update code format
jjw24 Dec 3, 2021
f4edff7
Add field for tab complete
Garulf Dec 3, 2021
919d451
Insert subtitle when shift is held
Garulf Dec 3, 2021
9bc68fd
Use suggestion text
Garulf Dec 3, 2021
5d9a897
Have QuerySuggection converter handle suggestions
Garulf Dec 3, 2021
f3c0c33
Change Default HideOnStartup to true
onesounds Dec 3, 2021
0ed52a2
- change string vs to sn (sticky notes)
onesounds Dec 3, 2021
ef7f471
Fix Save in CheckFristLaunch
onesounds Dec 3, 2021
35838b2
Revise Hotkey control logic to remove hotkey at focus and add it back…
taooceros Dec 3, 2021
1f5478d
Fix incompatible delegate type
taooceros Dec 3, 2021
c8a9c29
Clear Focus after 500ms user no input hotkey
taooceros Dec 3, 2021
4127999
update wording
jjw24 Dec 4, 2021
3b5b840
Fix CustomHotkey Listview Height
onesounds Dec 4, 2021
69b0dc9
Merge branch 'WelcomeWindow' of https://github.com/onesounds/Flow.Lau…
onesounds Dec 4, 2021
09e10c4
Initial commit
Garulf Dec 4, 2021
721e481
Allow unsafe for release
taooceros Dec 4, 2021
846333a
Initial commit
Garulf Dec 4, 2021
ab2fe8f
Move suggestion caret
Garulf Dec 4, 2021
e9102f3
Revert accidental change
Garulf Dec 4, 2021
984f2a1
Remove unused function
Garulf Dec 4, 2021
178776f
fix popup empty when same key press, add reset pop msg when lost focus
jjw24 Dec 4, 2021
1321005
Merge pull request #849 from onesounds/WelcomeWindow
jjw24 Dec 4, 2021
1d9bc99
Remove unused variable
Garulf Dec 4, 2021
64b3a62
When QueryTextBox scrolls hide Suggestion
Garulf Dec 4, 2021
40b1a28
Add Padding in plugin list in settingpanel
onesounds Dec 4, 2021
5559fea
Change Padding to Margin
onesounds Dec 4, 2021
a1789d7
Push Text path
Garulf Dec 4, 2021
f24c141
Change mode to OneWay
Garulf Dec 5, 2021
8b33ca9
Use text path
Garulf Dec 5, 2021
74cf92b
change to resize without grip
jjw24 Dec 5, 2021
f97344c
Add NewTab option in viewmodel and partially implement the public api
taooceros Dec 5, 2021
4f7e839
Merge pull request #862 from onesounds/ScrollBarWindowSetting
jjw24 Dec 5, 2021
02b92c0
change variable name to AutoCompleteText
jjw24 Dec 5, 2021
0fe8c93
simplify code
jjw24 Dec 5, 2021
2ba6ce9
use ResultViewModel to hold constructed suggestion text instead
jjw24 Dec 5, 2021
e3aa648
rename function to AutocompleteQueryCommand
jjw24 Dec 5, 2021
78dbc0c
simplify suggestion's autocomplete logic
jjw24 Dec 5, 2021
a5e0d23
Merge Dev
onesounds Dec 5, 2021
e79f805
Fix dev Merge / Adjust Button Size
onesounds Dec 5, 2021
06a76f5
Merge pull request #850 from Garulf/global-tab-complete
Garulf Dec 5, 2021
8892ad2
Merge branch 'dev' into Fix-misaligned-suggestion-text
Garulf Dec 5, 2021
1dd9e2c
Calculate if text font is larger then area
Garulf Dec 5, 2021
ef76b96
Check for offset
Garulf Dec 5, 2021
892a491
Merge branch 'GlobalBrowserSetting' of github.com:onesounds/Flow.Laun…
taooceros Dec 5, 2021
3282f85
Add checks after suggestion is calculated
Garulf Dec 5, 2021
1e18e26
Merge pull request #860 from Garulf/Fix-misaligned-suggestion-text
Garulf Dec 5, 2021
7a30367
Make private arg editable for default profile
taooceros Dec 5, 2021
47562ea
Edit default browser behavior
taooceros Dec 5, 2021
d8eef69
Use Global Browser Setting around flow
taooceros Dec 5, 2021
ff867d2
Initial commit
Garulf Dec 5, 2021
99a4a3c
Adjust arg position
taooceros Dec 5, 2021
9c86af7
Align Bookmark plugin into global browser
taooceros Dec 5, 2021
ef959d2
Remove BrowserSetting item in bookmark / Url / Websearch
onesounds Dec 5, 2021
c82b9a9
remove subtitle ContextMenuPluginInfo
onesounds Dec 5, 2021
003b93d
Fix verb that should be plural
taooceros Dec 5, 2021
7d4a9c3
Reorder modifer
taooceros Dec 5, 2021
b3155bc
Merge remote-tracking branch 'upstream/dev' into GlobalHotkeyRefactor
taooceros Dec 5, 2021
8f18e2f
fix an api changed
taooceros Dec 5, 2021
1ea5675
Merge pull request #866 from Flow-Launcher/StringRevision
Garulf Dec 5, 2021
84528ae
Use Instance class with static method
taooceros Dec 6, 2021
b83bbb5
Adjust popup in explorer plugin with string
onesounds Dec 6, 2021
5f90365
Use Safe Delegate Instead
taooceros Dec 6, 2021
6565b55
Use API mainwindow show
taooceros Dec 6, 2021
b38a662
Remove Color String
onesounds Dec 6, 2021
ec96028
change query after showing window to make it not selectable
taooceros Dec 6, 2021
21c19b4
Revert "Use Safe Delegate Instead"
taooceros Dec 6, 2021
0557516
Revise Unsafe Calling Convention
taooceros Dec 6, 2021
1957a82
Merge remote-tracking branch 'upstream/dev' into GlobalHotkeyRefactor
taooceros Dec 6, 2021
1edcc85
Adjust Window Layout and Color
onesounds Dec 6, 2021
f2e284e
Merge Dev
onesounds Dec 6, 2021
6fdfbe3
version bump Shell plugin
jjw24 Dec 6, 2021
263e097
Add "by author" in subtitle
onesounds Dec 6, 2021
4affa2e
Add Crowdin Integration (#826)
taooceros Dec 6, 2021
4a3f134
Merge pull request #864 from onesounds/PluginInfo
jjw24 Dec 6, 2021
3618979
Bump version
Garulf Dec 6, 2021
34fd11a
Update Plugins/Flow.Launcher.Plugin.Explorer/plugin.json
Garulf Dec 6, 2021
74f97f1
Update Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs
Garulf Dec 6, 2021
6468b14
Merge remote-tracking branch 'origin/dev' into GlobalBrowserSetting
jjw24 Dec 6, 2021
b201d78
Prepend folder action keyword
Garulf Dec 6, 2021
ef36d82
Merge branch 'GlobalHotkeyRefactor' of github.com:Flow-Launcher/Flow.…
taooceros Dec 7, 2021
f701c0b
move allowunsafe property outside build option
taooceros Dec 7, 2021
e62f6d9
Remove contextmenu of windowsseting plugin
taooceros Dec 7, 2021
0d64283
Merge pull request #874 from Flow-Launcher/WindowsSettingContextRemove
jjw24 Dec 7, 2021
00f514f
version bump plugins
jjw24 Dec 7, 2021
e84e5b1
remove obsolete new tab/window methods
jjw24 Dec 7, 2021
b11f728
Merge pull request #867 from onesounds/AdjustExplorerPlugin
jjw24 Dec 7, 2021
5c4cb7c
Fix Done Button (remove wrong disable state)
onesounds Dec 7, 2021
d2e689a
Merge branch 'GlobalBrowserSetting' of https://github.com/onesounds/F…
onesounds Dec 7, 2021
40d7baa
Add Chrome, Edge, Firefox Browser Profile
onesounds Dec 7, 2021
ba2853b
Fix Edge Private arg
onesounds Dec 7, 2021
f741420
retrieve path with action keywrod
jjw24 Dec 7, 2021
efd2b78
Merge pull request #863 from Garulf/add-auto-complete-to-file-explorer
Garulf Dec 8, 2021
b286762
Update Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml.cs
taooceros Dec 8, 2021
8ba52ff
Update Flow.Launcher/SettingWindow.xaml.cs
taooceros Dec 8, 2021
1278881
Update Flow.Launcher/SelectBrowserWindow.xaml.cs
taooceros Dec 8, 2021
171a501
Update Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
taooceros Dec 8, 2021
d2bb1e8
Update Flow.Launcher.Infrastructure/UserSettings/CustomBrowserViewMod…
taooceros Dec 8, 2021
233a338
Update Flow.Launcher.Infrastructure/UserSettings/CustomBrowserViewMod…
taooceros Dec 8, 2021
cbd2337
Update Flow.Launcher/PublicAPIInstance.cs
taooceros Dec 8, 2021
7bf6a7d
Update crowdin translations (#871)
taooceros Dec 8, 2021
d952950
remove comment
onesounds Dec 8, 2021
932dea0
Add Checkbox disable when no private arg
onesounds Dec 8, 2021
2855c6c
Merge pull request #834 from Flow-Launcher/GlobalHotkeyRefactor
jjw24 Dec 8, 2021
af2277d
add backwards compatibility for open in new browser tab/window
jjw24 Dec 8, 2021
05fd41a
fix new tab not save issue
taooceros Dec 8, 2021
38a9b9a
Update SelectBrowserWindow.xaml.cs
onesounds Dec 8, 2021
5ea8675
Update Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs
taooceros Dec 8, 2021
53f965f
remove group to make sure everything static
taooceros Dec 8, 2021
9369589
ignore openinnewwindow
taooceros Dec 8, 2021
721a658
Change Space Position for NewWindow
taooceros Dec 9, 2021
13ccd58
move url before options
taooceros Dec 9, 2021
48971d8
Merge remote-tracking branch 'upstream/dev' into JsonRPCPluginSetting…
taooceros Dec 9, 2021
238d4df
Add using for File.OpenRead
taooceros Dec 9, 2021
581e842
Revert "move url before options"
taooceros Dec 9, 2021
dbab7b6
Optional Inprivate argument & Comment
taooceros Dec 9, 2021
27d1796
Fix Suggestion Result Action
taooceros Dec 9, 2021
f86dd9d
Merge pull request #657 from Flow-Launcher/JsonRPCPluginSettingControl
taooceros Dec 9, 2021
b3b85c1
update comment
jjw24 Dec 9, 2021
037e0f8
Merge pull request #800 from onesounds/GlobalBrowserSetting
jjw24 Dec 9, 2021
a9844fd
Update readme (#865)
onesounds Dec 9, 2021
fa206e9
Merge pull request #703 from Flow-Launcher/release_verson_bump
jjw24 Dec 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions Flow.Launcher.Core/ExternalPlugins/PluginsManifest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
using Flow.Launcher.Infrastructure.Http;
using Flow.Launcher.Infrastructure.Logger;
using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;

namespace Flow.Launcher.Core.ExternalPlugins
{
public static class PluginsManifest
{
static PluginsManifest()
{
UpdateTask = UpdateManifestAsync();
}

public static List<UserPlugin> UserPlugins { get; private set; } = new List<UserPlugin>();

public static Task UpdateTask { get; private set; }

private static readonly SemaphoreSlim manifestUpdateLock = new(1);

public static Task UpdateManifestAsync()
{
if (manifestUpdateLock.CurrentCount == 0)
{
return UpdateTask;
}

return UpdateTask = DownloadManifestAsync();
}

private async static Task DownloadManifestAsync()
{
try
{
await manifestUpdateLock.WaitAsync().ConfigureAwait(false);

await using var jsonStream = await Http.GetStreamAsync("https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/plugin_api_v2/plugins.json")
.ConfigureAwait(false);

UserPlugins = await JsonSerializer.DeserializeAsync<List<UserPlugin>>(jsonStream).ConfigureAwait(false);
}
catch (Exception e)
{
Log.Exception("|PluginManagement.GetManifest|Encountered error trying to download plugins manifest", e);

UserPlugins = new List<UserPlugin>();
}
finally
{
manifestUpdateLock.Release();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

namespace Flow.Launcher.Plugin.PluginsManager.Models
namespace Flow.Launcher.Core.ExternalPlugins
{
public class UserPlugin
public record UserPlugin
{
public string ID { get; set; }
public string Name { get; set; }
Expand All @@ -12,5 +11,6 @@ public class UserPlugin
public string Website { get; set; }
public string UrlDownload { get; set; }
public string UrlSourceCode { get; set; }
public string IcoPath { get; set; }
}
}
4 changes: 2 additions & 2 deletions Flow.Launcher.Core/Flow.Launcher.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Droplex" Version="1.3.1" />
<PackageReference Include="FSharp.Core" Version="4.7.1" />
<PackageReference Include="Droplex" Version="1.4.0" />
<PackageReference Include="FSharp.Core" Version="5.0.2" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.1.3" />
<PackageReference Include="squirrel.windows" Version="1.5.2" />
</ItemGroup>
Expand Down
24 changes: 2 additions & 22 deletions Flow.Launcher.Core/Plugin/ExecutablePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,16 @@ public ExecutablePlugin(string filename)
};
}

protected override Task<Stream> ExecuteQueryAsync(Query query, CancellationToken token)
protected override Task<Stream> RequestAsync(JsonRPCRequestModel request, CancellationToken token = default)
{
JsonRPCServerRequestModel request = new JsonRPCServerRequestModel
{
Method = "query",
Parameters = new object[] {query.Search},
};

_startInfo.Arguments = $"\"{request}\"";

return ExecuteAsync(_startInfo, token);
}

protected override string ExecuteCallback(JsonRPCRequestModel rpcRequest)
protected override string Request(JsonRPCRequestModel rpcRequest, CancellationToken token = default)
{
_startInfo.Arguments = $"\"{rpcRequest}\"";
return Execute(_startInfo);
}

protected override string ExecuteContextMenu(Result selectedResult)
{
JsonRPCServerRequestModel request = new JsonRPCServerRequestModel
{
Method = "contextmenu",
Parameters = new object[] {selectedResult.ContextData},
};

_startInfo.Arguments = $"\"{request}\"";

return Execute(_startInfo);
}
}
}
8 changes: 7 additions & 1 deletion Flow.Launcher.Core/Plugin/JsonPRCModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,19 @@ public class JsonRPCQueryResponseModel : JsonRPCResponseModel
[JsonPropertyName("result")]
public new List<JsonRPCResult> Result { get; set; }

public Dictionary<string, object> SettingsChange { get; set; }

public string DebugMessage { get; set; }
}

public class JsonRPCRequestModel
{
public string Method { get; set; }

public object[] Parameters { get; set; }

public Dictionary<string, object> Settings { get; set; }

private static readonly JsonSerializerOptions options = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
Expand Down Expand Up @@ -86,5 +90,7 @@ public class JsonRPCClientRequestModel : JsonRPCRequestModel
public class JsonRPCResult : Result
{
public JsonRPCClientRequestModel JsonRPCAction { get; set; }

public Dictionary<string, object> SettingsChange { get; set; }
}
}
43 changes: 43 additions & 0 deletions Flow.Launcher.Core/Plugin/JsonRPCConfigurationModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using System.Collections.Generic;

namespace Flow.Launcher.Core.Plugin
{
public class JsonRpcConfigurationModel
{
public List<SettingField> Body { get; set; }
public void Deconstruct(out List<SettingField> Body)
{
Body = this.Body;
}
}

public class SettingField
{
public string Type { get; set; }
public FieldAttributes Attributes { get; set; }
public void Deconstruct(out string Type, out FieldAttributes attributes)
{
Type = this.Type;
attributes = this.Attributes;
}
}
public class FieldAttributes
{
public string Name { get; set; }
public string Label { get; set; }
public string Description { get; set; }
public bool Validation { get; set; }
public List<string> Options { get; set; }
public string DefaultValue { get; set; }
public char passwordChar { get; set; }
public void Deconstruct(out string Name, out string Label, out string Description, out bool Validation, out List<string> Options, out string DefaultValue)
{
Name = this.Name;
Label = this.Label;
Description = this.Description;
Validation = this.Validation;
Options = this.Options;
DefaultValue = this.DefaultValue;
}
}
}
Loading