Skip to content

Commit

Permalink
Merge pull request #2527 from Flow-Launcher/append-keyword-to-tab
Browse files Browse the repository at this point in the history
Prepend actionkeyword to suggestions
  • Loading branch information
jjw24 authored Feb 5, 2024
2 parents 6bd1da7 + 8f5c7e1 commit d84dbc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Flow.Launcher/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ private void AutocompleteQuery()
}
else if (!string.IsNullOrEmpty(SelectedResults.SelectedItem?.QuerySuggestionText))
{
var defaultSuggestion = SelectedResults.SelectedItem.QuerySuggestionText;
// check if result.actionkeywordassigned is empty
if (!string.IsNullOrEmpty(result.ActionKeywordAssigned))
{
autoCompleteText = $"{result.ActionKeywordAssigned} {defaultSuggestion}";
}
autoCompleteText = SelectedResults.SelectedItem.QuerySuggestionText;
}

Expand Down

0 comments on commit d84dbc8

Please sign in to comment.