Skip to content

Commit 43d75c9

Browse files
authored
Merge pull request #415 from Flow-Launcher/add_tips_userdata_sys_plugin
Add tips and UserData location commands for Sys plugin
2 parents 41c3f8a + 1e25043 commit 43d75c9

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<system:String x:Key="flowlauncher_plugin_sys_reload_plugin_data">Refreshes plugin data with new content</system:String>
2121
<system:String x:Key="flowlauncher_plugin_sys_open_log_location">Open Flow Launcher's log location</system:String>
2222
<system:String x:Key="flowlauncher_plugin_sys_check_for_update">Check for new Flow Launcher update</system:String>
23+
<system:String x:Key="flowlauncher_plugin_sys_open_docs_tips">Visit Flow Launcher's documentation for more help and how to use tips</system:String>
24+
<system:String x:Key="flowlauncher_plugin_sys_open_userdata_location">Open the location where Flow Launcher's settings are stored</system:String>
2325

2426
<!--Dialogs-->
2527
<system:String x:Key="flowlauncher_plugin_sys_dlgtitle_success">Success</system:String>

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,34 @@ private List<Result> Commands()
278278
Action = c =>
279279
{
280280
var logPath = Path.Combine(DataLocation.DataDirectory(), "Logs", Constant.Version);
281-
Process.Start("explorer".SetProcessStartInfo(arguments: logPath));
281+
FilesFolders.OpenPath(logPath);
282+
return true;
283+
}
284+
},
285+
new Result
286+
{
287+
Title = "Flow Launcher Tips",
288+
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_docs_tips"),
289+
IcoPath = "Images\\app.png",
290+
Action = c =>
291+
{
292+
SearchWeb.NewTabInBrowser(Constant.Documentation);
293+
return true;
294+
}
295+
},
296+
new Result
297+
{
298+
Title = "Flow Launcher UserData Folder",
299+
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_open_userdata_location"),
300+
IcoPath = "Images\\app.png",
301+
Action = c =>
302+
{
303+
FilesFolders.OpenPath(DataLocation.DataDirectory());
282304
return true;
283305
}
284306
}
285307
});
308+
286309
return results;
287310
}
288311

Plugins/Flow.Launcher.Plugin.Sys/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "System Commands",
55
"Description": "Provide System related commands. e.g. shutdown,lock, setting etc.",
66
"Author": "qianlifeng",
7-
"Version": "1.2.3",
7+
"Version": "1.3.0",
88
"Language": "csharp",
99
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1010
"ExecuteFileName": "Flow.Launcher.Plugin.Sys.dll",

0 commit comments

Comments
 (0)