doc: add text editor hotkeys information

This commit is contained in:
leo 2024-03-11 18:30:32 +08:00
parent 76505fb582
commit 13c5c116fd
3 changed files with 30 additions and 0 deletions

View file

@ -481,6 +481,11 @@
<sys:String x:Key="Text.Hotkeys.Repo.ViewStashes">Switch to 'Stashes'</sys:String>
<sys:String x:Key="Text.Hotkeys.Repo.ToggleSearch">Toggle commit search</sys:String>
<sys:String x:Key="Text.Hotkeys.Repo.StageOrUnstageSelected">Stage/Unstage selected changes</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor">TEXT EDITOR</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor.Search">Open search panel</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor.GotoPrevMatch">Find previous match</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor.GotoNextMatch">Find next match</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor.CloseSearch">Close search panel</sys:String>
<sys:String x:Key="Text.NotConfigured">Git has NOT been configured. Please to go [Preference] and configure it first.</sys:String>
<sys:String x:Key="Text.BinaryNotSupported">BINARY FILE NOT SUPPORTED!!!</sys:String>

View file

@ -480,6 +480,11 @@
<sys:String x:Key="Text.Hotkeys.Repo.ViewStashes">显示贮藏列表</sys:String>
<sys:String x:Key="Text.Hotkeys.Repo.ToggleSearch">打开/关闭历史搜索</sys:String>
<sys:String x:Key="Text.Hotkeys.Repo.StageOrUnstageSelected">将选中的变更暂存或从暂存列表中移除</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor">文本编辑器</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor.Search">打开搜索</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor.GotoPrevMatch">定位到上一个匹配搜索的位置</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor.GotoNextMatch">定位到下一个匹配搜索的位置</sys:String>
<sys:String x:Key="Text.Hotkeys.TextEditor.CloseSearch">关闭搜索</sys:String>
<sys:String x:Key="Text.NotConfigured">GIT尚未配置。请打开【偏好设置】配置GIT路径。</sys:String>
<sys:String x:Key="Text.BinaryNotSupported">二进制文件不支持该操作!!!</sys:String>

View file

@ -92,6 +92,26 @@
<TextBlock Grid.Row="4" Grid.Column="0" Classes="monospace bold" Text="SPACE"/>
<TextBlock Grid.Row="4" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.Repo.StageOrUnstageSelected}" />
</Grid>
<TextBlock Text="{DynamicResource Text.Hotkeys.TextEditor}"
Foreground="{DynamicResource Brush.FG2}"
FontWeight="Bold"
FontSize="13"
Margin="0,8"/>
<Grid RowDefinitions="20,20,20,20" ColumnDefinitions="Auto,*">
<TextBlock Grid.Row="0" Grid.Column="0" Classes="monospace bold" Text="Ctrl+F"/>
<TextBlock Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.Search}" />
<TextBlock Grid.Row="1" Grid.Column="0" Classes="monospace bold" Text="Shift+F3"/>
<TextBlock Grid.Row="1" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.GotoPrevMatch}" />
<TextBlock Grid.Row="2" Grid.Column="0" Classes="monospace bold" Text="F3"/>
<TextBlock Grid.Row="2" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.GotoNextMatch}" />
<TextBlock Grid.Row="3" Grid.Column="0" Classes="monospace bold" Text="Ctrl+3"/>
<TextBlock Grid.Row="3" Grid.Column="1" Margin="16,0,0,0" Text="{DynamicResource Text.Hotkeys.TextEditor.CloseSearch}" />
</Grid>
</StackPanel>
</Grid>
</Window>