mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
use AutoCompleteText in PluginIndicator, ProcessKiller plugins
makes hitting Tab from the results of those plugins less weird
This commit is contained in:
parent
75019de9f3
commit
5941049a11
2 changed files with 2 additions and 0 deletions
|
|
@ -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}");
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue