Skip to content

Commit 9f8b205

Browse files
committed
Merge remote-tracking branch 'origin/dev' into fix_quickaccess_autocomplete
2 parents 3f2b741 + 5a5d407 commit 9f8b205

File tree

4 files changed

+16
-25
lines changed

4 files changed

+16
-25
lines changed

Flow.Launcher/CustomShortcutSetting.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
<TextBlock
6565
Grid.Column="0"
6666
Margin="0,0,0,0"
67-
FontFamily="Segoe UI"
6867
FontSize="20"
6968
FontWeight="SemiBold"
7069
Text="{DynamicResource customQueryShortcut}"

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<!-- Context menu items -->
6868
<system:String x:Key="plugin_explorer_copypath">Copy path</system:String>
69-
<system:String x:Key="plugin_explorer_copypath_subtitle">Copy path of current result to clipboard</system:String>
69+
<system:String x:Key="plugin_explorer_copypath_subtitle">Copy path of current item to clipboard</system:String>
7070
<system:String x:Key="plugin_explorer_copyfilefolder">Copy</system:String>
7171
<system:String x:Key="plugin_explorer_copyfile_subtitle">Copy current file to clipboard</system:String>
7272
<system:String x:Key="plugin_explorer_copyfolder_subtitle">Copy current folder to clipboard</system:String>
@@ -78,7 +78,7 @@
7878
<system:String x:Key="plugin_explorer_runasdifferentuser">Run as different user</system:String>
7979
<system:String x:Key="plugin_explorer_runasdifferentuser_subtitle">Run the selected using a different user account</system:String>
8080
<system:String x:Key="plugin_explorer_opencontainingfolder">Open containing folder</system:String>
81-
<system:String x:Key="plugin_explorer_opencontainingfolder_subtitle">Opens the location that contains the item</system:String>
81+
<system:String x:Key="plugin_explorer_opencontainingfolder_subtitle">Opens the location that contains current item</system:String>
8282
<system:String x:Key="plugin_explorer_openwitheditor">Open With Editor:</system:String>
8383
<system:String x:Key="plugin_explorer_openwitheditor_error">Failed to open file at {0} with Editor {1} at {2}</system:String>
8484
<system:String x:Key="plugin_explorer_openwithshell">Open With Shell:</system:String>
@@ -89,16 +89,21 @@
8989
<system:String x:Key="plugin_explorer_openindexingoptions_subtitle">Manage indexed files and folders</system:String>
9090
<system:String x:Key="plugin_explorer_openindexingoptions_errormsg">Failed to open Windows Indexing Options</system:String>
9191
<system:String x:Key="plugin_explorer_add_to_quickaccess_title">Add to Quick Access</system:String>
92-
<system:String x:Key="plugin_explorer_add_to_quickaccess_subtitle">Add current result to Quick Access</system:String>
92+
<system:String x:Key="plugin_explorer_add_to_quickaccess_subtitle">Add current item to Quick Access</system:String>
9393
<system:String x:Key="plugin_explorer_addfilefoldersuccess">Successfully Added</system:String>
9494
<system:String x:Key="plugin_explorer_addfilefoldersuccess_detail">Successfully added to Quick Access</system:String>
9595
<system:String x:Key="plugin_explorer_removefilefoldersuccess">Successfully Removed</system:String>
9696
<system:String x:Key="plugin_explorer_removefilefoldersuccess_detail">Successfully removed from Quick Access</system:String>
9797
<system:String x:Key="plugin_explorer_contextmenu_titletooltip">Add to Quick Access so it can be opened with Explorer's Search Activation action keyword</system:String>
9898
<system:String x:Key="plugin_explorer_contextmenu_remove_titletooltip">Remove from Quick Access</system:String>
9999
<system:String x:Key="plugin_explorer_remove_from_quickaccess_title">Remove from Quick Access</system:String>
100-
<system:String x:Key="plugin_explorer_remove_from_quickaccess_subtitle">Remove current result from Quick Access</system:String>
100+
<system:String x:Key="plugin_explorer_remove_from_quickaccess_subtitle">Remove current item from Quick Access</system:String>
101101
<system:String x:Key="plugin_explorer_show_contextmenu_title">Show Windows Context Menu</system:String>
102+
103+
<!-- Special Results-->
104+
<system:String x:Key="plugin_explorer_diskfreespace">{0} free of {1}</system:String>
105+
<system:String x:Key="plugin_explorer_openresultfolder">Open in Default File Manager</system:String>
106+
<system:String x:Key="plugin_explorer_openresultfolder_subtitle">Use '>' to search in this directory, '*' to search for file extensions or '>*' to combine both searches.</system:String>
102107

103108
<!-- Everything -->
104109
<system:String x:Key="flowlauncher_plugin_everything_sdk_issue">Failed to load Everything SDK</system:String>
@@ -130,6 +135,6 @@
130135
<system:String x:Key="flowlauncher_plugin_everything_run_service">Click here to start it</system:String>
131136
<system:String x:Key="flowlauncher_plugin_everything_installing_select">Unable to find an Everything installation, would you like to manually select a location?{0}{0}Click no and Everything will be automatically installed for you</system:String>
132137
<system:String x:Key="flowlauncher_plugin_everything_enable_content_search">Do you want to enable content search for Everything?</system:String>
133-
<system:String x:Key="flowlauncher_plugin_everything_enable_content_search_tips">"It can be very slow without index (which is only supported in Everything v1.5+)"</system:String>
138+
<system:String x:Key="flowlauncher_plugin_everything_enable_content_search_tips">It can be very slow without index (which is only supported in Everything v1.5+)</system:String>
134139

135140
</ResourceDictionary>

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ internal static Result CreateDriveSpaceDisplayResult(string path, string actionK
114114
var driveLetter = path[..1].ToUpper();
115115
var driveName = driveLetter + ":\\";
116116
DriveInfo drv = new DriveInfo(driveLetter);
117-
var subtitle = ToReadableSize(drv.AvailableFreeSpace, 2) + " free of " + ToReadableSize(drv.TotalSize, 2);
117+
var freespace = ToReadableSize(drv.AvailableFreeSpace, 2);
118+
var totalspace = ToReadableSize(drv.TotalSize, 2);
119+
var subtitle = string.Format(Context.API.GetTranslation("plugin_explorer_diskfreespace"), freespace, totalspace);
118120
double usingSize = (Convert.ToDouble(drv.TotalSize) - Convert.ToDouble(drv.AvailableFreeSpace)) / Convert.ToDouble(drv.TotalSize) * 100;
119121

120122
int? progressValue = Convert.ToInt32(usingSize);
@@ -188,25 +190,11 @@ internal static Result CreateOpenCurrentFolderResult(string path, string actionK
188190
// Path passed from PathSearchAsync ends with Constants.DirectorySeperator ('\'), need to remove the seperator
189191
// so it's consistent with folder results returned by index search which does not end with one
190192
var folderPath = path.TrimEnd(Constants.DirectorySeperator);
191-
192-
var folderName = folderPath.TrimEnd(Constants.DirectorySeperator).Split(new[]
193-
{
194-
Path.DirectorySeparatorChar
195-
}, StringSplitOptions.None).Last();
196-
197-
var title = $"Open {folderName}";
198-
199-
var subtitleFolderName = folderName;
200-
201-
// ie. max characters can be displayed without subtitle cutting off: "Program Files (x86)"
202-
if (folderName.Length > 19)
203-
subtitleFolderName = "the directory";
204193

205194
return new Result
206195
{
207-
Title = title,
208-
SubTitle = $"Use > to search within {subtitleFolderName}, " +
209-
$"* to search for file extensions or >* to combine both searches.",
196+
Title = Context.API.GetTranslation("plugin_explorer_openresultfolder"),
197+
SubTitle = Context.API.GetTranslation("plugin_explorer_openresultfolder_subtitle"),
210198
AutoCompleteText = GetPathWithActionKeyword(folderPath, ResultType.Folder, actionKeyword),
211199
IcoPath = folderPath,
212200
Score = 500,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<system:String x:Key="flowlauncher_plugin_websearch_delete">삭제</system:String>
1414
<system:String x:Key="flowlauncher_plugin_websearch_edit">편집</system:String>
1515
<system:String x:Key="flowlauncher_plugin_websearch_add">추가</system:String>
16-
<system:String x:Key="flowlauncher_plugin_websearch_enabled">사용</system:String>
1716
<system:String x:Key="flowlauncher_plugin_websearch_true">켬</system:String>
1817
<system:String x:Key="flowlauncher_plugin_websearch_false">Disabled</system:String>
1918
<system:String x:Key="flowlauncher_plugin_websearch_confirm">확인</system:String>
@@ -36,7 +35,7 @@
3635

3736
<!-- web search edit -->
3837
<system:String x:Key="flowlauncher_plugin_websearch_title">이름</system:String>
39-
<system:String x:Key="flowlauncher_plugin_websearch_enabled">상태</system:String>
38+
<system:String x:Key="flowlauncher_plugin_websearch_enabled">사용</system:String>
4039

4140
<system:String x:Key="flowlauncher_plugin_websearch_select_icon">아이콘 선택</system:String>
4241
<system:String x:Key="flowlauncher_plugin_websearch_icon">아이콘</system:String>

0 commit comments

Comments
 (0)