PluginsManager: improve query navigation

This commit is contained in:
Ioannis G 2022-01-11 08:21:15 +02:00
parent daedc03008
commit 658ddb2cf6
No known key found for this signature in database
GPG key ID: EAC0E4E5E36AC49E

View file

@ -77,9 +77,10 @@ namespace Flow.Launcher.Plugin.PluginsManager
{
Title = Settings.HotKeyInstall,
IcoPath = icoPath,
AutoCompleteText = $"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotKeyInstall} ",
Action = _ =>
{
Context.API.ChangeQuery("pm install ");
Context.API.ChangeQuery($"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotKeyInstall} ");
return false;
}
},
@ -87,9 +88,10 @@ namespace Flow.Launcher.Plugin.PluginsManager
{
Title = Settings.HotkeyUninstall,
IcoPath = icoPath,
AutoCompleteText = $"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotkeyUninstall} ",
Action = _ =>
{
Context.API.ChangeQuery("pm uninstall ");
Context.API.ChangeQuery($"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotkeyUninstall} ");
return false;
}
},
@ -97,9 +99,10 @@ namespace Flow.Launcher.Plugin.PluginsManager
{
Title = Settings.HotkeyUpdate,
IcoPath = icoPath,
AutoCompleteText = $"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotkeyUpdate} ",
Action = _ =>
{
Context.API.ChangeQuery("pm update ");
Context.API.ChangeQuery($"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotkeyUpdate} ");
return false;
}
}