-
-
Notifications
You must be signed in to change notification settings - Fork 455
Global TAB complete #850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global TAB complete #850
Changes from 6 commits
5a733d0
d61ac85
f4edff7
919d451
9bc68fd
5d9a897
1d9bc99
02b92c0
0fe8c93
2ba6ce9
e3aa648
78dbc0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,8 @@ public class Result | |
|
|
||
| private string _icoPath; | ||
|
|
||
| private string _insertText; | ||
|
|
||
| /// <summary> | ||
| /// Provides the title of the result. This is always required. | ||
| /// </summary> | ||
|
|
@@ -29,6 +31,8 @@ public class Result | |
| /// </summary> | ||
| public string ActionKeywordAssigned { get; set; } | ||
|
|
||
| public string SuggestionText { get; set; } = string.Empty; | ||
|
||
|
|
||
| public string IcoPath | ||
| { | ||
| get { return _icoPath; } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,12 @@ public object Convert(object[] values, Type targetType, object parameter, Cultur | |
| return string.Empty; | ||
|
|
||
| // When user typed lower case and result title is uppercase, we still want to display suggestion | ||
|
|
||
| string _suggestion = queryText + selectedResultPossibleSuggestion.Substring(queryText.Length); | ||
| if (String.IsNullOrEmpty(selectedResult.SuggestionText)) | ||
| { | ||
| selectedItem.Result.SuggestionText = _suggestion; | ||
|
||
| } | ||
| return queryText + selectedResultPossibleSuggestion.Substring(queryText.Length); | ||
jjw24 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| catch (Exception e) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.