Skip to content

Commit 1655139

Browse files
committed
Add ui for new setting
1 parent 155eecd commit 1655139

File tree

3 files changed

+33
-18
lines changed

3 files changed

+33
-18
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<system:String x:Key="plugin_explorer_shell_path">Shell Path</system:String>
4444
<system:String x:Key="plugin_explorer_indexsearchexcludedpaths_header">Index Search Excluded Paths</system:String>
4545
<system:String x:Key="plugin_explorer_use_location_as_working_dir">Use search result's location as the working directory of the executable</system:String>
46+
<system:String x:Key="plugin_explorer_display_more_info_in_tooltip">Display more information like size and age in tooltips</system:String>
4647
<system:String x:Key="plugin_explorer_default_open_in_file_manager">Hit Enter to open folder in Default File Manager</system:String>
4748
<system:String x:Key="plugin_explorer_usewindowsindexfordirectorysearch">Use Index Search For Path Search</system:String>
4849
<system:String x:Key="plugin_explorer_manageindexoptions">Indexing Options</system:String>
@@ -79,6 +80,8 @@
7980
<!-- Plugin Tooltip -->
8081
<system:String x:Key="plugin_explorer_plugin_ToolTipOpenDirectory">Ctrl + Enter to open the directory</system:String>
8182
<system:String x:Key="plugin_explorer_plugin_ToolTipOpenContainingFolder">Ctrl + Enter to open the containing folder</system:String>
83+
<system:String x:Key="plugin_explorer_plugin_tooltip_more_info">{0}{4}Size: {1}{4}Date created: {2}{4}Date modified: {3}</system:String>
84+
<system:String x:Key="plugin_explorer_plugin_tooltip_more_info_unknown">Unknown</system:String>
8285

8386
<!-- Context menu items -->
8487
<system:String x:Key="plugin_explorer_copypath">Copy path</system:String>

Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public class Settings
3737

3838
public bool DefaultOpenFolderInFileManager { get; set; } = false;
3939

40+
public bool DisplayMoreInformationInToolTip { get; set; } = false;
41+
4042
public string SearchActionKeyword { get; set; } = Query.GlobalPluginWildcardSign;
4143

4244
public bool SearchActionKeywordEnabled { get; set; } = true;

Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
<RowDefinition />
199199
<RowDefinition />
200200
<RowDefinition />
201+
<RowDefinition />
201202
</Grid.RowDefinitions>
202203
<Grid.ColumnDefinitions>
203204
<ColumnDefinition Width="Auto" />
@@ -222,16 +223,25 @@
222223
Content="{DynamicResource plugin_explorer_default_open_in_file_manager}"
223224
IsChecked="{Binding Settings.DefaultOpenFolderInFileManager}" />
224225

225-
<TextBlock
226+
<CheckBox
226227
Grid.Row="2"
227228
Grid.Column="0"
229+
Grid.ColumnSpan="2"
230+
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
231+
HorizontalAlignment="Left"
232+
Content="{DynamicResource plugin_explorer_display_more_info_in_tooltip}"
233+
IsChecked="{Binding Settings.DisplayMoreInformationInToolTip}" />
234+
235+
<TextBlock
236+
Grid.Row="3"
237+
Grid.Column="0"
228238
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
229239
HorizontalAlignment="Left"
230240
VerticalAlignment="Center"
231241
Foreground="{DynamicResource Color05B}"
232242
Text="{DynamicResource plugin_explorer_file_editor_path}" />
233243
<StackPanel
234-
Grid.Row="2"
244+
Grid.Row="3"
235245
Grid.Column="1"
236246
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
237247
Orientation="Horizontal">
@@ -250,15 +260,15 @@
250260
</StackPanel>
251261

252262
<TextBlock
253-
Grid.Row="3"
263+
Grid.Row="4"
254264
Grid.Column="0"
255265
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
256266
HorizontalAlignment="Left"
257267
VerticalAlignment="Center"
258268
Foreground="{DynamicResource Color05B}"
259269
Text="{DynamicResource plugin_explorer_folder_editor_path}" />
260270
<StackPanel
261-
Grid.Row="3"
271+
Grid.Row="4"
262272
Grid.Column="1"
263273
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
264274
Orientation="Horizontal">
@@ -277,15 +287,15 @@
277287
</StackPanel>
278288

279289
<TextBlock
280-
Grid.Row="4"
290+
Grid.Row="5"
281291
Grid.Column="0"
282292
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
283293
HorizontalAlignment="Left"
284294
VerticalAlignment="Center"
285295
Foreground="{DynamicResource Color05B}"
286296
Text="{DynamicResource plugin_explorer_shell_path}" />
287297
<StackPanel
288-
Grid.Row="4"
298+
Grid.Row="5"
289299
Grid.Column="1"
290300
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
291301
Orientation="Horizontal">
@@ -304,14 +314,14 @@
304314
</StackPanel>
305315

306316
<TextBlock
307-
Grid.Row="5"
317+
Grid.Row="6"
308318
Grid.Column="0"
309319
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
310320
VerticalAlignment="Center"
311321
Foreground="{DynamicResource Color05B}"
312322
Text="{DynamicResource plugin_explorer_Index_Search_Engine}" />
313323
<ComboBox
314-
Grid.Row="5"
324+
Grid.Row="6"
315325
Grid.Column="1"
316326
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
317327
HorizontalAlignment="Left"
@@ -321,14 +331,14 @@
321331
SelectedItem="{Binding SelectedIndexSearchEngine}" />
322332

323333
<TextBlock
324-
Grid.Row="6"
334+
Grid.Row="7"
325335
Grid.Column="0"
326336
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
327337
VerticalAlignment="Center"
328338
Foreground="{DynamicResource Color05B}"
329339
Text="{DynamicResource plugin_explorer_Content_Search_Engine}" />
330340
<ComboBox
331-
Grid.Row="6"
341+
Grid.Row="7"
332342
Grid.Column="1"
333343
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
334344
HorizontalAlignment="Left"
@@ -338,14 +348,14 @@
338348
SelectedItem="{Binding SelectedContentSearchEngine}" />
339349

340350
<TextBlock
341-
Grid.Row="7"
351+
Grid.Row="8"
342352
Grid.Column="0"
343353
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
344354
VerticalAlignment="Center"
345355
Foreground="{DynamicResource Color05B}"
346356
Text="{DynamicResource plugin_explorer_Directory_Recursive_Search_Engine}" />
347357
<ComboBox
348-
Grid.Row="7"
358+
Grid.Row="8"
349359
Grid.Column="1"
350360
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
351361
HorizontalAlignment="Left"
@@ -355,14 +365,14 @@
355365
SelectedItem="{Binding SelectedPathEnumerationEngine}" />
356366

357367
<TextBlock
358-
Grid.Row="8"
368+
Grid.Row="9"
359369
Grid.Column="0"
360370
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
361371
VerticalAlignment="Center"
362372
Foreground="{DynamicResource Color05B}"
363373
Text="{DynamicResource plugin_explorer_Excluded_File_Types}" />
364374
<TextBox
365-
Grid.Row="8"
375+
Grid.Row="9"
366376
Grid.Column="1"
367377
MinWidth="{StaticResource SettingPanelTextBoxMinWidth}"
368378
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
@@ -371,14 +381,14 @@
371381
ToolTip="{DynamicResource plugin_explorer_Excluded_File_Types_Tooltip}" />
372382

373383
<TextBlock
374-
Grid.Row="9"
384+
Grid.Row="10"
375385
Grid.Column="0"
376386
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
377387
VerticalAlignment="Center"
378388
Foreground="{DynamicResource Color05B}"
379389
Text="{DynamicResource plugin_explorer_Maximum_Results}" />
380390
<TextBox
381-
Grid.Row="9"
391+
Grid.Row="10"
382392
Grid.Column="1"
383393
MinWidth="{StaticResource SettingPanelTextBoxMinWidth}"
384394
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
@@ -390,7 +400,7 @@
390400
ToolTip="{DynamicResource plugin_explorer_Maximum_Results_Tooltip}" />
391401

392402
<Button
393-
Grid.Row="10"
403+
Grid.Row="11"
394404
Grid.Column="0"
395405
Grid.ColumnSpan="2"
396406
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
@@ -505,7 +515,7 @@
505515
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
506516
Content="{DynamicResource plugin_explorer_previewpanel_display_file_modification_checkbox}"
507517
IsChecked="{Binding ShowModifiedDateInPreviewPanel}" />
508-
518+
509519
<CheckBox
510520
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
511521
Content="{DynamicResource plugin_explorer_previewpanel_display_file_age_checkbox}"

0 commit comments

Comments
 (0)