File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ public class Result
13
13
14
14
private string _icoPath ;
15
15
16
+ private string _insertText ;
17
+
16
18
/// <summary>
17
19
/// Provides the title of the result. This is always required.
18
20
/// </summary>
@@ -29,6 +31,15 @@ public class Result
29
31
/// </summary>
30
32
public string ActionKeywordAssigned { get ; set ; }
31
33
34
+ public string InsertText
35
+ {
36
+ get { return string . IsNullOrEmpty ( _insertText ) ? Title : _insertText ; }
37
+ set
38
+ {
39
+ _insertText = value ;
40
+ }
41
+ }
42
+
32
43
public string IcoPath
33
44
{
34
45
get { return _icoPath ; }
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ private void InitializeKeyCommands()
240
240
var result = results . SelectedItem ? . Result ;
241
241
if ( result != null ) // SelectedItem returns null if selection is empty.
242
242
{
243
- ChangeQueryText ( result . Title ) ;
243
+ ChangeQueryText ( result . InsertText ) ;
244
244
}
245
245
} ) ;
246
246
You can’t perform that action at this time.
0 commit comments