You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Progress bar display. Providing an int value between 0-100 will trigger the progress bar to be displayed on the result
239
227
/// </summary>
@@ -255,11 +243,6 @@ public ValueTask<bool> ExecuteAsync(ActionContext context)
255
243
/// </summary>
256
244
publicboolAddSelectedCount{get;set;}=true;
257
245
258
-
/// <summary>
259
-
/// Maximum score. This can be useful when set one result to the top by default. This is the score for the results set to the topmost by users.
260
-
/// </summary>
261
-
publicconstintMaxScore=int.MaxValue;
262
-
263
246
/// <summary>
264
247
/// The key to identify the record. This is used when FL checks whether the result is the topmost record. Or FL calculates the hashcode of the result for user selected records.
265
248
/// This can be useful when your plugin will change the Title or SubTitle of the result dynamically.
@@ -268,6 +251,66 @@ public ValueTask<bool> ExecuteAsync(ActionContext context)
268
251
/// </summary>
269
252
publicstringRecordKey{get;set;}=null;
270
253
254
+
/// <summary>
255
+
/// Determines if the badge icon should be shown.
256
+
/// If users want to show the result badges and here you set this to true, the results will show the badge icon.
Copy file name to clipboardExpand all lines: Flow.Launcher.Test/Plugins/ExplorerTest.cs
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,8 @@ public void GivenWindowsIndexSearch_WhenProvidedFolderPath_ThenQueryWhereRestric
39
39
}
40
40
41
41
[SupportedOSPlatform("windows7.0")]
42
-
[TestCase("C:\\","SELECT TOP 100 System.FileName, System.ItemUrl, System.ItemType FROM SystemIndex WHERE directory='file:C:\\' ORDER BY System.FileName")]
43
-
[TestCase("C:\\SomeFolder\\","SELECT TOP 100 System.FileName, System.ItemUrl, System.ItemType FROM SystemIndex WHERE directory='file:C:\\SomeFolder\\' ORDER BY System.FileName")]
42
+
[TestCase("C:\\",$"SELECT TOP 100 System.FileName, System.ItemUrl, System.ItemType FROM SystemIndex WHERE directory='file:C:\\' ORDER BY {QueryConstructor.OrderIdentifier}")]
43
+
[TestCase("C:\\SomeFolder\\",$"SELECT TOP 100 System.FileName, System.ItemUrl, System.ItemType FROM SystemIndex WHERE directory='file:C:\\SomeFolder\\' ORDER BY {QueryConstructor.OrderIdentifier}")]
@@ -87,8 +87,8 @@ public void GivenWindowsIndexSearch_WhenSearchAllFoldersAndFiles_ThenQueryWhereR
87
87
[SupportedOSPlatform("windows7.0")]
88
88
[TestCase("flow.launcher.sln","SELECT TOP 100 \"System.FileName\", \"System.ItemUrl\", \"System.ItemType\" "+
89
89
"FROM \"SystemIndex\" WHERE (System.FileName LIKE 'flow.launcher.sln%' "+
90
-
"OR CONTAINS(System.FileName,'\"flow.launcher.sln*\"',1033)) AND scope='file:' ORDER BY System.FileName")]
91
-
[TestCase("","SELECT TOP 100 \"System.FileName\", \"System.ItemUrl\", \"System.ItemType\" FROM \"SystemIndex\" WHERE WorkId IS NOT NULL AND scope='file:' ORDER BY System.FileName")]
90
+
$"OR CONTAINS(System.FileName,'\"flow.launcher.sln*\"',1033)) AND scope='file:' ORDER BY {QueryConstructor.OrderIdentifier}")]
91
+
[TestCase("",$"SELECT TOP 100 \"System.FileName\", \"System.ItemUrl\", \"System.ItemType\" FROM \"SystemIndex\" WHERE WorkId IS NOT NULL AND scope='file:' ORDER BY {QueryConstructor.OrderIdentifier}")]
0 commit comments