add examples, remove some stuff

This commit is contained in:
Pankaj Bhojwani 2025-06-10 11:41:17 -07:00
parent 21e1e15b65
commit 5dde183dda
3 changed files with 19 additions and 57 deletions

View File

@ -153,16 +153,6 @@
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<!-- command name --> <!-- command name -->
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
<!-- key chord -->
<ColumnDefinition Width="150" />
<!-- edit buttons -->
<!--
This needs to be 112 because that is the width of the row of buttons in edit mode + padding.
3 buttons: 32+32+32
Padding: 8+ 8
This allows the "edit" button to align with the "cancel" button seamlessly
-->
<ColumnDefinition Width="112" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<!-- Command Name --> <!-- Command Name -->
@ -180,13 +170,10 @@
HorizontalAlignment="Left" HorizontalAlignment="Left"
Spacing="8" Spacing="8"
Style="{StaticResource SettingsStackStyle}"> Style="{StaticResource SettingsStackStyle}">
<TextBlock Style="{StaticResource DisclaimerStyle}" <HyperlinkButton x:Uid="Actions_Disclaimer"
TextWrapping="WrapWholeWords"> NavigateUri="https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions"
<Hyperlink NavigateUri="https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions" Padding="0"
TextDecorations="None"> Margin="0"/>
<Run x:Uid="Actions_Disclaimer" />
</Hyperlink>
</TextBlock>
<!-- Add New Button --> <!-- Add New Button -->
<Button x:Name="AddNewButton" <Button x:Name="AddNewButton"
Click="AddNew_Click"> Click="AddNew_Click">

View File

@ -241,6 +241,7 @@
<ListViewItem /> <ListViewItem />
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Adjust Opacity -->
<DataTemplate x:Key="Int32Template" <DataTemplate x:Key="Int32Template"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -263,6 +264,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Switch To Tab -->
<DataTemplate x:Key="UInt32Template" <DataTemplate x:Key="UInt32Template"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -285,6 +287,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Close Other Tabs -->
<DataTemplate x:Key="UInt32OptionalTemplate" <DataTemplate x:Key="UInt32OptionalTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -307,28 +310,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<DataTemplate x:Key="UInt64Template" <!-- Example shortcut action to test this template: Split Pane -->
x:DataType="local:ArgWrapper">
<ListViewItem>
<Grid ColumnSpacing="8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{StaticResource ArgumentNameWidth}" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0"
VerticalAlignment="Center"
Text="{x:Bind Name}" />
<muxc:NumberBox Grid.Column="1"
LargeChange="1"
Maximum="999"
Minimum="0"
SmallChange="1"
Style="{StaticResource NumberBoxSettingStyle}"
Value="{x:Bind UnboxUInt64(Value), Mode=TwoWay, BindBack=UInt64BindBack}" />
</Grid>
</ListViewItem>
</DataTemplate>
<DataTemplate x:Key="Int32OptionalTemplate" <DataTemplate x:Key="Int32OptionalTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -351,6 +333,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Adjust Font Size -->
<DataTemplate x:Key="FloatTemplate" <DataTemplate x:Key="FloatTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -373,6 +356,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Send Input -->
<DataTemplate x:Key="StringTemplate" <DataTemplate x:Key="StringTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -390,6 +374,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Set Color Scheme -->
<DataTemplate x:Key="ColorSchemeTemplate" <DataTemplate x:Key="ColorSchemeTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -410,6 +395,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Export Buffer -->
<DataTemplate x:Key="FilePickerTemplate" <DataTemplate x:Key="FilePickerTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -432,23 +418,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<DataTemplate x:Key="GuidTemplate" <!-- Example shortcut action to test this template: Set Focus Mode -->
x:DataType="local:ArgWrapper">
<ListViewItem>
<Grid ColumnSpacing="8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{StaticResource ArgumentNameWidth}" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0"
VerticalAlignment="Center"
Text="{x:Bind Name}" />
<TextBox Grid.Column="1"
Text="{x:Bind UnboxGuid(Value), Mode=TwoWay, BindBack=GuidBindBack}" />
</Grid>
</ListViewItem>
</DataTemplate>
<DataTemplate x:Key="BoolTemplate" <DataTemplate x:Key="BoolTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -466,6 +436,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Split Pane -->
<DataTemplate x:Key="BoolOptionalTemplate" <DataTemplate x:Key="BoolOptionalTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -484,6 +455,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Resize Pane -->
<DataTemplate x:Key="EnumComboBoxTemplate" <DataTemplate x:Key="EnumComboBoxTemplate"
x:DataType="local:EnumEntry"> x:DataType="local:EnumEntry">
<TextBlock Text="{x:Bind EnumName, Mode=OneWay}" /> <TextBlock Text="{x:Bind EnumName, Mode=OneWay}" />
@ -509,6 +481,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Copy Text -->
<DataTemplate x:Key="FlagItemTemplate" <DataTemplate x:Key="FlagItemTemplate"
x:DataType="local:FlagEntry"> x:DataType="local:FlagEntry">
<Grid> <Grid>
@ -547,6 +520,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Add Mark -->
<DataTemplate x:Key="TerminalCoreColorOptionalTemplate" <DataTemplate x:Key="TerminalCoreColorOptionalTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>
@ -567,6 +541,7 @@
</ListViewItem> </ListViewItem>
</DataTemplate> </DataTemplate>
<!-- Example shortcut action to test this template: Set Tab Color -->
<DataTemplate x:Key="WindowsUIColorOptionalTemplate" <DataTemplate x:Key="WindowsUIColorOptionalTemplate"
x:DataType="local:ArgWrapper"> x:DataType="local:ArgWrapper">
<ListViewItem> <ListViewItem>

View File

@ -1788,7 +1788,7 @@
<value>Delete the unfocused appearance for this profile.</value> <value>Delete the unfocused appearance for this profile.</value>
<comment>A description for what the delete unfocused appearance button does.</comment> <comment>A description for what the delete unfocused appearance button does.</comment>
</data> </data>
<data name="Actions_Disclaimer.Text" xml:space="preserve"> <data name="Actions_Disclaimer.Content" xml:space="preserve">
<value>Learn more about actions</value> <value>Learn more about actions</value>
<comment>Disclaimer presented at the top of the actions page to redirect the user to documentation regarding actions.</comment> <comment>Disclaimer presented at the top of the actions page to redirect the user to documentation regarding actions.</comment>
</data> </data>