- Add Open RecycleBin

- Add Open Desktop
- Add Open My Computer
This commit is contained in:
DB p 2022-09-08 17:43:25 +09:00
parent 05044ae00d
commit 930e4e8207
6 changed files with 71 additions and 10 deletions

View file

@ -556,4 +556,4 @@ namespace Flow.Launcher
}
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,005 B

View file

@ -1,8 +1,9 @@
<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">
<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">
<!--Command List-->
<!-- Command List -->
<system:String x:Key="flowlauncher_plugin_sys_command">Command</system:String>
<system:String x:Key="flowlauncher_plugin_sys_desc">Description</system:String>
@ -16,6 +17,9 @@
<system:String x:Key="flowlauncher_plugin_sys_setting">Tweak this app</system:String>
<system:String x:Key="flowlauncher_plugin_sys_sleep">Put computer to sleep</system:String>
<system:String x:Key="flowlauncher_plugin_sys_emptyrecyclebin">Empty recycle bin</system:String>
<system:String x:Key="flowlauncher_plugin_sys_openrecyclebin">Open recycle bin</system:String>
<system:String x:Key="flowlauncher_plugin_sys_openmycomputer">Open my computer</system:String>
<system:String x:Key="flowlauncher_plugin_sys_openmydesktop">Desktop</system:String>
<system:String x:Key="flowlauncher_plugin_sys_hibernate">Hibernate computer</system:String>
<system:String x:Key="flowlauncher_plugin_sys_save_all_settings">Save all Flow Launcher settings</system:String>
<system:String x:Key="flowlauncher_plugin_sys_reload_plugin_data">Refreshes plugin data with new content</system:String>
@ -24,7 +28,7 @@
<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>
<system:String x:Key="flowlauncher_plugin_sys_open_userdata_location">Open the location where Flow Launcher's settings are stored</system:String>
<!--Dialogs-->
<!-- Dialogs -->
<system:String x:Key="flowlauncher_plugin_sys_dlgtitle_success">Success</system:String>
<system:String x:Key="flowlauncher_plugin_sys_dlgtext_all_settings_saved">All Flow Launcher settings saved</system:String>
<system:String x:Key="flowlauncher_plugin_sys_dlgtext_all_applicableplugins_reloaded">Reloaded all applicable plugin data</system:String>

View file

@ -1,7 +1,10 @@
<?xml version="1.0"?>
<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">
<?xml version="1.0" ?>
<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">
<!--Command List-->
<!-- Command List -->
<system:String x:Key="flowlauncher_plugin_sys_command">명령어</system:String>
<system:String x:Key="flowlauncher_plugin_sys_desc">설명</system:String>
@ -15,6 +18,9 @@
<system:String x:Key="flowlauncher_plugin_sys_setting">이 프로그램을 조정합니다</system:String>
<system:String x:Key="flowlauncher_plugin_sys_sleep">PC를 절전모드로 전환</system:String>
<system:String x:Key="flowlauncher_plugin_sys_emptyrecyclebin">휴지통 비우기</system:String>
<system:String x:Key="flowlauncher_plugin_sys_openrecyclebin">휴지통 열기</system:String>
<system:String x:Key="flowlauncher_plugin_sys_openmycomputer">내 컴퓨터</system:String>
<system:String x:Key="flowlauncher_plugin_sys_openmydesktop">바탕 화면</system:String>
<system:String x:Key="flowlauncher_plugin_sys_hibernate">최대 절전 모드</system:String>
<system:String x:Key="flowlauncher_plugin_sys_save_all_settings">Flow Launcher 설정 저장</system:String>
<system:String x:Key="flowlauncher_plugin_sys_reload_plugin_data">플러그인 데이터를 새 콘텐츠와 함께 다시 로드</system:String>
@ -23,7 +29,7 @@
<system:String x:Key="flowlauncher_plugin_sys_open_docs_tips">Flow Launcher의 도움말 및 사용안내</system:String>
<system:String x:Key="flowlauncher_plugin_sys_open_userdata_location">Flow Launcher의 설정이 저장된 위치 열기</system:String>
<!--Dialogs-->
<!-- Dialogs -->
<system:String x:Key="flowlauncher_plugin_sys_dlgtitle_success">성공</system:String>
<system:String x:Key="flowlauncher_plugin_sys_dlgtext_all_settings_saved">모든 Flow Launcher 설정을 저장했습니다</system:String>
<system:String x:Key="flowlauncher_plugin_sys_dlgtext_all_applicableplugins_reloaded">적용 가능한 모든 플러그인 데이터를 다시 로드했습니다</system:String>

View file

@ -192,6 +192,42 @@ namespace Flow.Launcher.Plugin.Sys
}
},
new Result
{
Title = "My Computer",
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openmycomputer"),
IcoPath = "Images\\mycomputer.png",
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe7f4"),
Action = c =>
{
// http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html
// FYI, couldn't find documentation for this but if the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED))
// 0 for nothing
{
System.Diagnostics.Process.Start("explorer.exe", "shell:mycomputerfolder");
}
return true;
}
},
new Result
{
Title = "Desktop",
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openmydesktop"),
IcoPath = "Images\\desktop.png",
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe7fb"),
Action = c =>
{
// http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html
// FYI, couldn't find documentation for this but if the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED))
// 0 for nothing
{
System.Diagnostics.Process.Start("explorer.exe", "shell:desktop");
}
return true;
}
},
new Result
{
Title = "Empty Recycle Bin",
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_emptyrecyclebin"),
@ -215,6 +251,21 @@ namespace Flow.Launcher.Plugin.Sys
}
},
new Result
{
Title = "Open Recycle Bin",
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_openrecyclebin"),
IcoPath = "Images\\recyclebin.png",
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\xe74d"),
Action = c =>
{
{
System.Diagnostics.Process.Start("explorer.exe", "shell:RecycleBinFolder");
}
return true;
}
},
new Result
{
Title = "Exit",
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_exit"),