Skip to content

Commit 5941049

Browse files
committed
use AutoCompleteText in PluginIndicator, ProcessKiller plugins
makes hitting Tab from the results of those plugins less weird
1 parent 75019de commit 5941049

File tree

2 files changed

+2
-0
lines changed
  • Plugins
    • Flow.Launcher.Plugin.PluginIndicator
    • Flow.Launcher.Plugin.ProcessKiller

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ where keyword.StartsWith(query.SearchTerms[0])
2525
SubTitle = $"Activate {metadata.Name} plugin",
2626
Score = 100,
2727
IcoPath = metadata.IcoPath,
28+
AutoCompleteText = $"{keyword}{Plugin.Query.TermSeparator}",
2829
Action = c =>
2930
{
3031
context.API.ChangeQuery($"{keyword}{Plugin.Query.TermSeparator}");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ private List<Result> CreateResultsFromProcesses(List<ProcessResult> processlist,
8888
TitleHighlightData = StringMatcher.FuzzySearch(termToSearch, p.ProcessName).MatchData,
8989
Score = pr.Score,
9090
ContextData = p.ProcessName,
91+
AutoCompleteText = $"{_context.CurrentPluginMetadata.ActionKeyword}{Plugin.Query.TermSeparator}{p.ProcessName}",
9192
Action = (c) =>
9293
{
9394
processHelper.TryKill(p);

0 commit comments

Comments
 (0)