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
Copy file name to clipboardExpand all lines: Flow.Launcher.Plugin/Result.cs
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,16 @@ public Result Clone()
185
185
TitleHighlightData=TitleHighlightData,
186
186
OriginQuery=OriginQuery,
187
187
PluginDirectory=PluginDirectory,
188
+
ContextData=ContextData,
189
+
PluginID=PluginID,
190
+
TitleToolTip=TitleToolTip,
191
+
SubTitleToolTip=SubTitleToolTip,
192
+
PreviewPanel=PreviewPanel,
193
+
ProgressBar=ProgressBar,
194
+
ProgressBarColor=ProgressBarColor,
195
+
Preview=Preview,
196
+
AddSelectedCount=AddSelectedCount,
197
+
RecordKey=RecordKey
188
198
};
189
199
}
190
200
@@ -252,6 +262,13 @@ public ValueTask<bool> ExecuteAsync(ActionContext context)
252
262
/// </summary>
253
263
publicconstintMaxScore=int.MaxValue;
254
264
265
+
/// <summary>
266
+
/// 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.
267
+
/// This can be useful when your plugin will change the Title or SubTitle of the result dynamically.
268
+
/// If the plugin does not specific this, FL just uses Title and SubTitle to identify this result.
269
+
/// </summary>
270
+
publicstringRecordKey{get;set;}=string.Empty;
271
+
255
272
/// <summary>
256
273
/// Info of the preview section of a <see cref="Result"/>
0 commit comments