Skip to content

Commit 658ddb2

Browse files
committed
PluginsManager: improve query navigation
1 parent daedc03 commit 658ddb2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,29 +77,32 @@ internal List<Result> GetDefaultHotKeys()
7777
{
7878
Title = Settings.HotKeyInstall,
7979
IcoPath = icoPath,
80+
AutoCompleteText = $"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotKeyInstall} ",
8081
Action = _ =>
8182
{
82-
Context.API.ChangeQuery("pm install ");
83+
Context.API.ChangeQuery($"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotKeyInstall} ");
8384
return false;
8485
}
8586
},
8687
new Result()
8788
{
8889
Title = Settings.HotkeyUninstall,
8990
IcoPath = icoPath,
91+
AutoCompleteText = $"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotkeyUninstall} ",
9092
Action = _ =>
9193
{
92-
Context.API.ChangeQuery("pm uninstall ");
94+
Context.API.ChangeQuery($"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotkeyUninstall} ");
9395
return false;
9496
}
9597
},
9698
new Result()
9799
{
98100
Title = Settings.HotkeyUpdate,
99101
IcoPath = icoPath,
102+
AutoCompleteText = $"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotkeyUpdate} ",
100103
Action = _ =>
101104
{
102-
Context.API.ChangeQuery("pm update ");
105+
Context.API.ChangeQuery($"{Context.CurrentPluginMetadata.ActionKeyword} {Settings.HotkeyUpdate} ");
103106
return false;
104107
}
105108
}

0 commit comments

Comments
 (0)