Skip to content

Commit f4edff7

Browse files
committed
Add field for tab complete
1 parent d61ac85 commit f4edff7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public class Result
1313

1414
private string _icoPath;
1515

16+
private string _insertText;
17+
1618
/// <summary>
1719
/// Provides the title of the result. This is always required.
1820
/// </summary>
@@ -29,6 +31,15 @@ public class Result
2931
/// </summary>
3032
public string ActionKeywordAssigned { get; set; }
3133

34+
public string InsertText
35+
{
36+
get { return string.IsNullOrEmpty(_insertText) ? Title : _insertText; }
37+
set
38+
{
39+
_insertText = value;
40+
}
41+
}
42+
3243
public string IcoPath
3344
{
3445
get { return _icoPath; }

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private void InitializeKeyCommands()
240240
var result = results.SelectedItem?.Result;
241241
if (result != null) // SelectedItem returns null if selection is empty.
242242
{
243-
ChangeQueryText(result.Title);
243+
ChangeQueryText(result.InsertText);
244244
}
245245
});
246246

0 commit comments

Comments
 (0)