Skip to content

Commit 6410853

Browse files
committed
add CopyText to recyclebin, log folder, flow tips, and userdata folder results in sys plugin
1 parent 14f1a5a commit 6410853

File tree

1 file changed

+7
-2
lines changed
  • Plugins/Flow.Launcher.Plugin.Sys

1 file changed

+7
-2
lines changed

Plugins/Flow.Launcher.Plugin.Sys/Main.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ public void Init(PluginInitContext context)
133133
private List<Result> Commands()
134134
{
135135
var results = new List<Result>();
136+
var logPath = Path.Combine(DataLocation.DataDirectory(), "Logs", Constant.Version);
137+
var userDataPath = DataLocation.DataDirectory()
136138
results.AddRange(new[]
137139
{
138140
new Result
@@ -294,6 +296,7 @@ private List<Result> Commands()
294296
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openrecyclebin"),
295297
IcoPath = "Images\\openrecyclebin.png",
296298
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe74d"),
299+
CopyText = "shell:RecycleBinFolder",
297300
Action = c =>
298301
{
299302
{
@@ -386,9 +389,9 @@ private List<Result> Commands()
386389
Title = "Open Log Location",
387390
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_log_location"),
388391
IcoPath = "Images\\app.png",
392+
CopyText = logPath,
389393
Action = c =>
390394
{
391-
var logPath = Path.Combine(DataLocation.DataDirectory(), "Logs", Constant.Version);
392395
context.API.OpenDirectory(logPath);
393396
return true;
394397
}
@@ -398,6 +401,7 @@ private List<Result> Commands()
398401
Title = "Flow Launcher Tips",
399402
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_docs_tips"),
400403
IcoPath = "Images\\app.png",
404+
CopyText = Constant.Documentation,
401405
Action = c =>
402406
{
403407
context.API.OpenUrl(Constant.Documentation);
@@ -409,9 +413,10 @@ private List<Result> Commands()
409413
Title = "Flow Launcher UserData Folder",
410414
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_userdata_location"),
411415
IcoPath = "Images\\app.png",
416+
CopyText = userDataPath,
412417
Action = c =>
413418
{
414-
context.API.OpenDirectory(DataLocation.DataDirectory());
419+
context.API.OpenDirectory(userDataPath);
415420
return true;
416421
}
417422
},

0 commit comments

Comments
 (0)