Skip to content

Commit 2ca2fe9

Browse files
committed
- Add Quick adjust maxresultcount by CTRL+[ and ]
1 parent 91c9397 commit 2ca2fe9

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<system:String x:Key="LastQuerySelected">Select last Query</system:String>
4242
<system:String x:Key="LastQueryEmpty">Empty last Query</system:String>
4343
<system:String x:Key="maxShowResults">Maximum results shown</system:String>
44+
<system:String x:Key="maxShowResultsToolTip">You can quick adjust CTRL+[ and CTRL+] in query box.</system:String>
4445
<system:String x:Key="ignoreHotkeysOnFullscreen">Ignore hotkeys in fullscreen mode</system:String>
4546
<system:String x:Key="ignoreHotkeysOnFullscreenToolTip">Disable Flow Launcher activation when a full screen application is active (Recommended for games).</system:String>
4647
<system:String x:Key="defaultFileManager">Default File Manager</system:String>

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,24 @@ private void OnKeyDown(object sender, KeyEventArgs e)
550550
Left = Left - 50;
551551
}
552552
break;
553+
case Key.OemOpenBrackets:
554+
if (specialKeyState.CtrlPressed)
555+
{
556+
if (_settings.MaxResultsToShow < 2)
557+
{
558+
}
559+
else
560+
{
561+
_settings.MaxResultsToShow = _settings.MaxResultsToShow - 1;
562+
}
563+
}
564+
break;
565+
case Key.OemCloseBrackets:
566+
if (specialKeyState.CtrlPressed)
567+
{
568+
_settings.MaxResultsToShow = _settings.MaxResultsToShow + 1;
569+
}
570+
break;
553571
case Key.Back:
554572
if (specialKeyState.CtrlPressed)
555573
{

Flow.Launcher/SettingWindow.xaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -768,11 +768,13 @@
768768
BorderThickness="0"
769769
Style="{DynamicResource SettingGroupBox}">
770770
<ItemsControl Style="{StaticResource SettingGrid}">
771-
<TextBlock
772-
Grid.Column="1"
773-
VerticalAlignment="Center"
774-
Style="{DynamicResource SettingTitleLabel}"
775-
Text="{DynamicResource maxShowResults}" />
771+
<StackPanel Grid.Column="1">
772+
<TextBlock
773+
VerticalAlignment="Center"
774+
Style="{DynamicResource SettingTitleLabel}"
775+
Text="{DynamicResource maxShowResults}" />
776+
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource maxShowResultsToolTip}" />
777+
</StackPanel>
776778
<ComboBox
777779
Grid.Column="2"
778780
Width="100"

0 commit comments

Comments
 (0)