mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[PTRun][Search]Add setting to exclude files/patterns from indexer (#31459)
* Add patterns exclusion to PTRun indexer * Apply xaml styling * Fix pattern escaping issues * Add placeholder to indexer exclusion options * Add placeholder text to textboxes * Fix failing to split multiline text in indexer settings * Add placeholder text to checkbox and textbox setting * Change generated source comments to english
This commit is contained in:
@@ -446,6 +446,29 @@
|
||||
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||
MaxWidth="450"
|
||||
MaxLength="{x:Bind TextBoxMaxLength, Mode=OneWay}"
|
||||
PlaceholderText="{x:Bind Path=PlaceholderText}"
|
||||
Text="{x:Bind TextValue, Mode=TwoWay}" />
|
||||
</tkcontrols:SettingsCard>
|
||||
<!-- MultilineTextBox setting -->
|
||||
<tkcontrols:SettingsCard
|
||||
MinHeight="0"
|
||||
Margin="56,8,45,8"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
Background="Transparent"
|
||||
BorderThickness="0,0,0,0"
|
||||
ContentAlignment="Vertical"
|
||||
CornerRadius="0"
|
||||
Description="{x:Bind Path=DisplayDescription}"
|
||||
Header="{x:Bind Path=DisplayLabel}"
|
||||
Visibility="{x:Bind Path=ShowMultilineTextBox, Converter={StaticResource BoolToVisibilityConverter}}">
|
||||
<TextBox
|
||||
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||
MinHeight="160"
|
||||
AcceptsReturn="True"
|
||||
PlaceholderText="{x:Bind Path=PlaceholderText}"
|
||||
ScrollViewer.IsVerticalRailEnabled="True"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
||||
ScrollViewer.VerticalScrollMode="Enabled"
|
||||
Text="{x:Bind TextValue, Mode=TwoWay}" />
|
||||
</tkcontrols:SettingsCard>
|
||||
<!-- NumberBox setting -->
|
||||
@@ -535,6 +558,7 @@
|
||||
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||
MaxWidth="450"
|
||||
MaxLength="{x:Bind TextBoxMaxLength, Mode=OneWay}"
|
||||
PlaceholderText="{x:Bind Path=PlaceholderText}"
|
||||
Text="{x:Bind TextValue, Mode=TwoWay}" />
|
||||
</tkcontrols:SettingsCard>
|
||||
</StackPanel>
|
||||
|
||||
@@ -83,6 +83,11 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
// MultilineTextBox setting
|
||||
public bool ShowMultilineTextBox => _additionalOption.PluginOptionType == PluginAdditionalOption.AdditionalOptionType.MultilineTextbox;
|
||||
|
||||
public string PlaceholderText => _additionalOption.PlaceholderText;
|
||||
|
||||
// NumberBox setting
|
||||
public bool ShowNumberBox => _additionalOption.PluginOptionType == PluginAdditionalOption.AdditionalOptionType.Numberbox;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user