Add field for tab complete

This commit is contained in:
Garulf 2021-12-03 05:44:33 -05:00
parent d61ac8548f
commit f4edff71fe
2 changed files with 12 additions and 1 deletions

View file

@ -13,6 +13,8 @@ namespace Flow.Launcher.Plugin
private string _icoPath;
private string _insertText;
/// <summary>
/// Provides the title of the result. This is always required.
/// </summary>
@ -29,6 +31,15 @@ namespace Flow.Launcher.Plugin
/// </summary>
public string ActionKeywordAssigned { get; set; }
public string InsertText
{
get { return string.IsNullOrEmpty(_insertText) ? Title : _insertText; }
set
{
_insertText = value;
}
}
public string IcoPath
{
get { return _icoPath; }

View file

@ -240,7 +240,7 @@ namespace Flow.Launcher.ViewModel
var result = results.SelectedItem?.Result;
if (result != null) // SelectedItem returns null if selection is empty.
{
ChangeQueryText(result.Title);
ChangeQueryText(result.InsertText);
}
});