Skip to content

Commit 29c9fd6

Browse files
committed
add AutoCompleteText key to some results in the sys plugin
1 parent 6410853 commit 29c9fd6

File tree

1 file changed

+8
-3
lines changed
  • Plugins/Flow.Launcher.Plugin.Sys

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ private List<Result> Commands()
134134
{
135135
var results = new List<Result>();
136136
var logPath = Path.Combine(DataLocation.DataDirectory(), "Logs", Constant.Version);
137-
var userDataPath = DataLocation.DataDirectory()
137+
var userDataPath = DataLocation.DataDirectory();
138+
var recycleBinFolder = "shell:RecycleBinFolder";
138139
results.AddRange(new[]
139140
{
140141
new Result
@@ -296,11 +297,12 @@ private List<Result> Commands()
296297
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openrecyclebin"),
297298
IcoPath = "Images\\openrecyclebin.png",
298299
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe74d"),
299-
CopyText = "shell:RecycleBinFolder",
300+
CopyText = recycleBinFolder,
301+
AutoCompleteText = recycleBinFolder,
300302
Action = c =>
301303
{
302304
{
303-
System.Diagnostics.Process.Start("explorer", "shell:RecycleBinFolder");
305+
System.Diagnostics.Process.Start("explorer", recycleBinFolder);
304306
}
305307

306308
return true;
@@ -390,6 +392,7 @@ private List<Result> Commands()
390392
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_log_location"),
391393
IcoPath = "Images\\app.png",
392394
CopyText = logPath,
395+
AutoCompleteText = logPath,
393396
Action = c =>
394397
{
395398
context.API.OpenDirectory(logPath);
@@ -402,6 +405,7 @@ private List<Result> Commands()
402405
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_docs_tips"),
403406
IcoPath = "Images\\app.png",
404407
CopyText = Constant.Documentation,
408+
AutoCompleteText = Constant.Documentation,
405409
Action = c =>
406410
{
407411
context.API.OpenUrl(Constant.Documentation);
@@ -414,6 +418,7 @@ private List<Result> Commands()
414418
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_userdata_location"),
415419
IcoPath = "Images\\app.png",
416420
CopyText = userDataPath,
421+
AutoCompleteText = userDataPath,
417422
Action = c =>
418423
{
419424
context.API.OpenDirectory(userDataPath);

0 commit comments

Comments
 (0)