From a01e0d484aef96eef4ebedbc8c38d504b166c9b0 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 19 Apr 2021 07:23:50 +1000 Subject: [PATCH 1/3] add tips and userdata location commands for Sys plugin --- .../Languages/en.xaml | 2 ++ Plugins/Flow.Launcher.Plugin.Sys/Main.cs | 26 +++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml index 4f841c07f6c..45ab9a30412 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml @@ -20,6 +20,8 @@ Refreshes plugin data with new content Open Flow Launcher's log location Check for new Flow Launcher update + Visit Flow Launcher's documentation for more help and how to use tips + Open the location where Flow Launcher's settings are stored Success diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs index 38078265069..c6b24007292 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs @@ -278,11 +278,33 @@ private List Commands() Action = c => { var logPath = Path.Combine(DataLocation.DataDirectory(), "Logs", Constant.Version); - Process.Start("explorer".SetProcessStartInfo(arguments: logPath)); + FilesFolders.OpenPath(logPath); + return true; + } + }, + new Result + { + Title = "Flow Launcher Tips", + SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_docs_tips"), + IcoPath = "Images\\app.png", + Action = c => + { + SearchWeb.NewTabInBrowser(Constant.Documentation); + return true; + } + }, + new Result + { + Title = "Flow Launcher UserData Folder", + SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_userdata_location"), + IcoPath = "Images\\app.png", + Action = c => + { + FilesFolders.OpenPath(DataLocation.DataDirectory()); return true; } } - }); + }); return results; } From bb4b50c4e4fb03ba1656002257243ad386fcec12 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 19 Apr 2021 07:26:47 +1000 Subject: [PATCH 2/3] version bump for Sys plugin --- Plugins/Flow.Launcher.Plugin.Sys/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Sys/plugin.json b/Plugins/Flow.Launcher.Plugin.Sys/plugin.json index 40cab074e9f..bc97070edfd 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/plugin.json +++ b/Plugins/Flow.Launcher.Plugin.Sys/plugin.json @@ -4,7 +4,7 @@ "Name": "System Commands", "Description": "Provide System related commands. e.g. shutdown,lock, setting etc.", "Author": "qianlifeng", - "Version": "1.2.3", + "Version": "1.3.0", "Language": "csharp", "Website": "https://github.com/Flow-Launcher/Flow.Launcher", "ExecuteFileName": "Flow.Launcher.Plugin.Sys.dll", From 1e2504346963d7d06ec1e42e72e766f8db8875e6 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 19 Apr 2021 07:29:58 +1000 Subject: [PATCH 3/3] fix format --- Plugins/Flow.Launcher.Plugin.Sys/Main.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs index c6b24007292..1a23e646453 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs @@ -304,7 +304,8 @@ private List Commands() return true; } } - }); + }); + return results; }