Skip to content

Commit 930e4e8

Browse files
committed
- Add Open RecycleBin
- Add Open Desktop - Add Open My Computer
1 parent 05044ae commit 930e4e8

File tree

6 files changed

+71
-10
lines changed

6 files changed

+71
-10
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,4 +556,4 @@ public void InitializeColorScheme()
556556
}
557557
}
558558
}
559-
}
559+
}
1.06 KB
Loading
1005 Bytes
Loading

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

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

5-
<!--Command List-->
6+
<!-- Command List -->
67
<system:String x:Key="flowlauncher_plugin_sys_command">Command</system:String>
78
<system:String x:Key="flowlauncher_plugin_sys_desc">Description</system:String>
89

@@ -16,6 +17,9 @@
1617
<system:String x:Key="flowlauncher_plugin_sys_setting">Tweak this app</system:String>
1718
<system:String x:Key="flowlauncher_plugin_sys_sleep">Put computer to sleep</system:String>
1819
<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_openmycomputer">Open my computer</system:String>
22+
<system:String x:Key="flowlauncher_plugin_sys_openmydesktop">Desktop</system:String>
1923
<system:String x:Key="flowlauncher_plugin_sys_hibernate">Hibernate computer</system:String>
2024
<system:String x:Key="flowlauncher_plugin_sys_save_all_settings">Save all Flow Launcher settings</system:String>
2125
<system:String x:Key="flowlauncher_plugin_sys_reload_plugin_data">Refreshes plugin data with new content</system:String>
@@ -24,7 +28,7 @@
2428
<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>
2529
<system:String x:Key="flowlauncher_plugin_sys_open_userdata_location">Open the location where Flow Launcher's settings are stored</system:String>
2630

27-
<!--Dialogs-->
31+
<!-- Dialogs -->
2832
<system:String x:Key="flowlauncher_plugin_sys_dlgtitle_success">Success</system:String>
2933
<system:String x:Key="flowlauncher_plugin_sys_dlgtext_all_settings_saved">All Flow Launcher settings saved</system:String>
3034
<system:String x:Key="flowlauncher_plugin_sys_dlgtext_all_applicableplugins_reloaded">Reloaded all applicable plugin data</system:String>

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

Lines changed: 10 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,9 @@
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_openmycomputer">내 컴퓨터</system:String>
23+
<system:String x:Key="flowlauncher_plugin_sys_openmydesktop">바탕 화면</system:String>
1824
<system:String x:Key="flowlauncher_plugin_sys_hibernate">최대 절전 모드</system:String>
1925
<system:String x:Key="flowlauncher_plugin_sys_save_all_settings">Flow Launcher 설정 저장</system:String>
2026
<system:String x:Key="flowlauncher_plugin_sys_reload_plugin_data">플러그인 데이터를 새 콘텐츠와 함께 다시 로드</system:String>
@@ -23,7 +29,7 @@
2329
<system:String x:Key="flowlauncher_plugin_sys_open_docs_tips">Flow Launcher의 도움말 및 사용안내</system:String>
2430
<system:String x:Key="flowlauncher_plugin_sys_open_userdata_location">Flow Launcher의 설정이 저장된 위치 열기</system:String>
2531

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

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,42 @@ private List<Result> Commands()
192192
}
193193
},
194194
new Result
195+
{
196+
Title = "My Computer",
197+
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openmycomputer"),
198+
IcoPath = "Images\\mycomputer.png",
199+
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe7f4"),
200+
Action = c =>
201+
{
202+
// http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html
203+
// FYI, couldn't find documentation for this but if the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED))
204+
// 0 for nothing
205+
{
206+
System.Diagnostics.Process.Start("explorer.exe", "shell:mycomputerfolder");
207+
}
208+
209+
return true;
210+
}
211+
},
212+
new Result
213+
{
214+
Title = "Desktop",
215+
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openmydesktop"),
216+
IcoPath = "Images\\desktop.png",
217+
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe7fb"),
218+
Action = c =>
219+
{
220+
// http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html
221+
// FYI, couldn't find documentation for this but if the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED))
222+
// 0 for nothing
223+
{
224+
System.Diagnostics.Process.Start("explorer.exe", "shell:desktop");
225+
}
226+
227+
return true;
228+
}
229+
},
230+
new Result
195231
{
196232
Title = "Empty Recycle Bin",
197233
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_emptyrecyclebin"),
@@ -215,6 +251,21 @@ private List<Result> Commands()
215251
}
216252
},
217253
new Result
254+
{
255+
Title = "Open Recycle Bin",
256+
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openrecyclebin"),
257+
IcoPath = "Images\\recyclebin.png",
258+
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe74d"),
259+
Action = c =>
260+
{
261+
{
262+
System.Diagnostics.Process.Start("explorer.exe", "shell:RecycleBinFolder");
263+
}
264+
265+
return true;
266+
}
267+
},
268+
new Result
218269
{
219270
Title = "Exit",
220271
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_exit"),

0 commit comments

Comments
 (0)