mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add AutoCompleteText key to some results in the sys plugin
This commit is contained in:
parent
6410853e34
commit
29c9fd69ad
1 changed files with 8 additions and 3 deletions
|
|
@ -134,7 +134,8 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
{
|
||||
var results = new List<Result>();
|
||||
var logPath = Path.Combine(DataLocation.DataDirectory(), "Logs", Constant.Version);
|
||||
var userDataPath = DataLocation.DataDirectory()
|
||||
var userDataPath = DataLocation.DataDirectory();
|
||||
var recycleBinFolder = "shell:RecycleBinFolder";
|
||||
results.AddRange(new[]
|
||||
{
|
||||
new Result
|
||||
|
|
@ -296,11 +297,12 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openrecyclebin"),
|
||||
IcoPath = "Images\\openrecyclebin.png",
|
||||
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe74d"),
|
||||
CopyText = "shell:RecycleBinFolder",
|
||||
CopyText = recycleBinFolder,
|
||||
AutoCompleteText = recycleBinFolder,
|
||||
Action = c =>
|
||||
{
|
||||
{
|
||||
System.Diagnostics.Process.Start("explorer", "shell:RecycleBinFolder");
|
||||
System.Diagnostics.Process.Start("explorer", recycleBinFolder);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
@ -390,6 +392,7 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_log_location"),
|
||||
IcoPath = "Images\\app.png",
|
||||
CopyText = logPath,
|
||||
AutoCompleteText = logPath,
|
||||
Action = c =>
|
||||
{
|
||||
context.API.OpenDirectory(logPath);
|
||||
|
|
@ -402,6 +405,7 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_docs_tips"),
|
||||
IcoPath = "Images\\app.png",
|
||||
CopyText = Constant.Documentation,
|
||||
AutoCompleteText = Constant.Documentation,
|
||||
Action = c =>
|
||||
{
|
||||
context.API.OpenUrl(Constant.Documentation);
|
||||
|
|
@ -414,6 +418,7 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_userdata_location"),
|
||||
IcoPath = "Images\\app.png",
|
||||
CopyText = userDataPath,
|
||||
AutoCompleteText = userDataPath,
|
||||
Action = c =>
|
||||
{
|
||||
context.API.OpenDirectory(userDataPath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue