Skip to content

Commit 10b8a35

Browse files
authored
Merge pull request #978 from Flow-Launcher/use_autocomplete_text
Minor enhancements to query auto-completion
2 parents f2755da + 8471637 commit 10b8a35

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private void InitializeKeyCommands()
229229
AutocompleteQueryCommand = new RelayCommand(_ =>
230230
{
231231
var result = SelectedResults.SelectedItem?.Result;
232-
if (result != null) // SelectedItem returns null if selection is empty.
232+
if (result != null && SelectedIsFromQueryResults()) // SelectedItem returns null if selection is empty.
233233
{
234234
var autoCompleteText = result.Title;
235235

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.PluginIndicator/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "Plugin Indicator",
55
"Description": "Provide plugin actionword suggestion",
66
"Author": "qianlifeng",
7-
"Version": "1.1.3",
7+
"Version": "1.1.4",
88
"Language": "csharp",
99
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1010
"ExecuteFileName": "Flow.Launcher.Plugin.PluginIndicator.dll",

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);

Plugins/Flow.Launcher.Plugin.ProcessKiller/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name":"Process Killer",
55
"Description":"Kill running processes from Flow",
66
"Author":"Flow-Launcher",
7-
"Version":"1.2.4",
7+
"Version":"1.2.5",
88
"Language":"csharp",
99
"Website":"https://github.com/Flow-Launcher/Flow.Launcher.Plugin.ProcessKiller",
1010
"IcoPath":"Images\\app.png",

0 commit comments

Comments
 (0)