use AutoCompleteText in PluginIndicator, ProcessKiller plugins

makes hitting Tab from the results of those plugins less weird
This commit is contained in:
Ioannis G 2022-01-13 04:52:13 +02:00
parent 75019de9f3
commit 5941049a11
No known key found for this signature in database
GPG key ID: EAC0E4E5E36AC49E
2 changed files with 2 additions and 0 deletions

View file

@ -25,6 +25,7 @@ namespace Flow.Launcher.Plugin.PluginIndicator
SubTitle = $"Activate {metadata.Name} plugin",
Score = 100,
IcoPath = metadata.IcoPath,
AutoCompleteText = $"{keyword}{Plugin.Query.TermSeparator}",
Action = c =>
{
context.API.ChangeQuery($"{keyword}{Plugin.Query.TermSeparator}");

View file

@ -88,6 +88,7 @@ namespace Flow.Launcher.Plugin.ProcessKiller
TitleHighlightData = StringMatcher.FuzzySearch(termToSearch, p.ProcessName).MatchData,
Score = pr.Score,
ContextData = p.ProcessName,
AutoCompleteText = $"{_context.CurrentPluginMetadata.ActionKeyword}{Plugin.Query.TermSeparator}{p.ProcessName}",
Action = (c) =>
{
processHelper.TryKill(p);