Skip to content

Commit 909fe5a

Browse files
authored
Merge branch 'dev' into MigrateDirectPluginJsonStorage
2 parents 65eb4e8 + 7092263 commit 909fe5a

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,12 @@ internal async ValueTask<List<Result>> RequestInstallOrUpdate(string searchName,
318318
IcoPath = icoPath,
319319
Action = e =>
320320
{
321+
if (e.SpecialKeyState.CtrlPressed)
322+
{
323+
SearchWeb.NewTabInBrowser(x.Website);
324+
return ShouldHideWindow;
325+
}
326+
321327
Application.Current.MainWindow.Hide();
322328
_ = InstallOrUpdate(x); // No need to wait
323329
return ShouldHideWindow;

Plugins/Flow.Launcher.Plugin.PluginsManager/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Name": "Plugins Manager",
77
"Description": "Management of installing, uninstalling or updating Flow Launcher plugins",
88
"Author": "Jeremy Wu",
9-
"Version": "1.7.3",
9+
"Version": "1.8.0",
1010
"Language": "csharp",
1111
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1212
"ExecuteFileName": "Flow.Launcher.Plugin.PluginsManager.dll",

Plugins/Flow.Launcher.Plugin.Shell/Main.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public List<Result> Query(Query query)
7373
IcoPath = Image,
7474
Action = c =>
7575
{
76-
Execute(Process.Start, PrepareProcessStartInfo(m));
76+
Execute(Process.Start, PrepareProcessStartInfo(m, c.SpecialKeyState.CtrlPressed));
7777
return true;
7878
}
7979
}));
@@ -169,7 +169,7 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
169169
if (_settings.Shell == Shell.Cmd)
170170
{
171171
var arguments = _settings.LeaveShellOpen ? $"/k \"{command}\"" : $"/c \"{command}\" & pause";
172-
172+
173173
info = ShellCommand.SetProcessStartInfo("cmd.exe", workingDirectory, arguments, runAsAdministratorArg);
174174
}
175175
else if (_settings.Shell == Shell.Powershell)
@@ -219,19 +219,19 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
219219
return info;
220220
}
221221

222-
private void Execute(Func<ProcessStartInfo, Process> startProcess,ProcessStartInfo info)
222+
private void Execute(Func<ProcessStartInfo, Process> startProcess, ProcessStartInfo info)
223223
{
224224
try
225225
{
226-
startProcess(info);
226+
startProcess(info);
227227
}
228228
catch (FileNotFoundException e)
229229
{
230230
var name = "Plugin: Shell";
231231
var message = $"Command not found: {e.Message}";
232232
context.API.ShowMsg(name, message);
233233
}
234-
catch(Win32Exception e)
234+
catch (Win32Exception e)
235235
{
236236
var name = "Plugin: Shell";
237237
var message = $"Error running the command: {e.Message}";

Plugins/Flow.Launcher.Plugin.Shell/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "Shell",
55
"Description": "Provide executing commands from Flow Launcher",
66
"Author": "qianlifeng",
7-
"Version": "1.3.3",
7+
"Version": "1.4.0",
88
"Language": "csharp",
99
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1010
"ExecuteFileName": "Flow.Launcher.Plugin.Shell.dll",

0 commit comments

Comments
 (0)