Skip to content

Commit b8a89ef

Browse files
authored
Merge pull request #1374 from onesounds/OpenRecycleBinCommand
Add System Commands
2 parents 69c03cf + bf15720 commit b8a89ef

File tree

6 files changed

+41
-4
lines changed

6 files changed

+41
-4
lines changed
2.77 KB
Loading
5.43 KB
Loading
1.83 KB
Loading

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<system:String x:Key="flowlauncher_plugin_sys_setting">Tweak Flow Launcher's settings</system:String>
1818
<system:String x:Key="flowlauncher_plugin_sys_sleep">Put computer to sleep</system:String>
1919
<system:String x:Key="flowlauncher_plugin_sys_emptyrecyclebin">Empty recycle bin</system:String>
20+
<system:String x:Key="flowlauncher_plugin_sys_openrecyclebin">Open recycle bin</system:String>
21+
<system:String x:Key="flowlauncher_plugin_sys_indexoption">Indexing Options</system:String>
2022
<system:String x:Key="flowlauncher_plugin_sys_hibernate">Hibernate computer</system:String>
2123
<system:String x:Key="flowlauncher_plugin_sys_save_all_settings">Save all Flow Launcher settings</system:String>
2224
<system:String x:Key="flowlauncher_plugin_sys_reload_plugin_data">Refreshes plugin data with new content</system:String>

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
<?xml version="1.0"?>
2-
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:system="clr-namespace:System;assembly=mscorlib">
1+
<?xml version="1.0" ?>
2+
<ResourceDictionary
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:system="clr-namespace:System;assembly=mscorlib">
36

4-
<!--Command List-->
7+
<!-- Command List -->
58
<system:String x:Key="flowlauncher_plugin_sys_command">명령어</system:String>
69
<system:String x:Key="flowlauncher_plugin_sys_desc">설명</system:String>
710

@@ -15,6 +18,8 @@
1518
<system:String x:Key="flowlauncher_plugin_sys_setting">이 프로그램을 조정합니다</system:String>
1619
<system:String x:Key="flowlauncher_plugin_sys_sleep">PC를 절전모드로 전환</system:String>
1720
<system:String x:Key="flowlauncher_plugin_sys_emptyrecyclebin">휴지통 비우기</system:String>
21+
<system:String x:Key="flowlauncher_plugin_sys_openrecyclebin">휴지통 열기</system:String>
22+
<system:String x:Key="flowlauncher_plugin_sys_indexoption">색인 옵션</system:String>
1823
<system:String x:Key="flowlauncher_plugin_sys_hibernate">최대 절전 모드</system:String>
1924
<system:String x:Key="flowlauncher_plugin_sys_save_all_settings">Flow Launcher 설정 저장</system:String>
2025
<system:String x:Key="flowlauncher_plugin_sys_reload_plugin_data">플러그인 데이터를 새 콘텐츠와 함께 다시 로드</system:String>
@@ -23,7 +28,7 @@
2328
<system:String x:Key="flowlauncher_plugin_sys_open_docs_tips">Flow Launcher의 도움말 및 사용안내</system:String>
2429
<system:String x:Key="flowlauncher_plugin_sys_open_userdata_location">Flow Launcher의 설정이 저장된 위치 열기</system:String>
2530

26-
<!--Dialogs-->
31+
<!-- Dialogs -->
2732
<system:String x:Key="flowlauncher_plugin_sys_dlgtitle_success">성공</system:String>
2833
<system:String x:Key="flowlauncher_plugin_sys_dlgtext_all_settings_saved">모든 Flow Launcher 설정을 저장했습니다</system:String>
2934
<system:String x:Key="flowlauncher_plugin_sys_dlgtext_all_applicableplugins_reloaded">적용 가능한 모든 플러그인 데이터를 다시 로드했습니다</system:String>

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,21 @@ private List<Result> Commands()
191191
return true;
192192
}
193193
},
194+
new Result
195+
{
196+
Title = "Index Option",
197+
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_indexoption"),
198+
IcoPath = "Images\\indexoption.png",
199+
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe773"),
200+
Action = c =>
201+
{
202+
{
203+
System.Diagnostics.Process.Start("control.exe", "srchadmin.dll");
204+
}
205+
206+
return true;
207+
}
208+
},
194209
new Result
195210
{
196211
Title = "Empty Recycle Bin",
@@ -215,6 +230,21 @@ private List<Result> Commands()
215230
}
216231
},
217232
new Result
233+
{
234+
Title = "Open Recycle Bin",
235+
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openrecyclebin"),
236+
IcoPath = "Images\\openrecyclebin.png",
237+
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe74d"),
238+
Action = c =>
239+
{
240+
{
241+
System.Diagnostics.Process.Start("explorer", "shell:RecycleBinFolder");
242+
}
243+
244+
return true;
245+
}
246+
},
247+
new Result
218248
{
219249
Title = "Exit",
220250
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_exit"),

0 commit comments

Comments
 (0)