mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add field for tab complete
This commit is contained in:
parent
d61ac8548f
commit
f4edff71fe
2 changed files with 12 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue