mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
Compare commits
3 commits
278fed42d7
...
5bad1e3682
Author | SHA1 | Date | |
---|---|---|---|
|
5bad1e3682 | ||
|
6a922d316a | ||
|
c1abd7cc56 |
8 changed files with 502489 additions and 0 deletions
1431
src/Resources/Dictionaries/en_GB.aff
Normal file
1431
src/Resources/Dictionaries/en_GB.aff
Normal file
File diff suppressed because it is too large
Load diff
96806
src/Resources/Dictionaries/en_GB.dic
Normal file
96806
src/Resources/Dictionaries/en_GB.dic
Normal file
File diff suppressed because it is too large
Load diff
6407
src/Resources/Dictionaries/es_MX.aff
Normal file
6407
src/Resources/Dictionaries/es_MX.aff
Normal file
File diff suppressed because it is too large
Load diff
58078
src/Resources/Dictionaries/es_MX.dic
Normal file
58078
src/Resources/Dictionaries/es_MX.dic
Normal file
File diff suppressed because it is too large
Load diff
27372
src/Resources/Dictionaries/pt_BR.aff
Normal file
27372
src/Resources/Dictionaries/pt_BR.aff
Normal file
File diff suppressed because it is too large
Load diff
312369
src/Resources/Dictionaries/pt_BR.dic
Normal file
312369
src/Resources/Dictionaries/pt_BR.dic
Normal file
File diff suppressed because it is too large
Load diff
|
@ -37,6 +37,15 @@
|
|||
<AvaloniaResource Include="Resources/Images/ShellIcons/*" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="Resources\Dictionaries\en_GB.aff" />
|
||||
<Content Include="Resources\Dictionaries\en_GB.dic" />
|
||||
<Content Include="Resources\Dictionaries\es_MX.aff" />
|
||||
<Content Include="Resources\Dictionaries\es_MX.dic" />
|
||||
<Content Include="Resources\Dictionaries\pt_BR.aff" />
|
||||
<Content Include="Resources\Dictionaries\pt_BR.dic" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia" Version="11.1.3" />
|
||||
<PackageReference Include="Avalonia.Desktop" Version="11.1.3" />
|
||||
|
@ -46,6 +55,7 @@
|
|||
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.1.0" />
|
||||
<PackageReference Include="AvaloniaEdit.TextMate" Version="11.1.0" />
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
||||
<PackageReference Include="GHSoftware.Avalonia.SpellChecker" Version="0.3.0" />
|
||||
<PackageReference Include="TextMateSharp" Version="1.0.63" />
|
||||
<PackageReference Include="TextMateSharp.Grammars" Version="1.0.63" />
|
||||
</ItemGroup>
|
||||
|
@ -58,4 +68,14 @@
|
|||
<ItemGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">
|
||||
<LinkerArg Include="-mmacosx-version-min=11.0" Condition="'$(Configuration)' == 'Release'" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Add a target to copy the files to the bin/Dictionaries folder -->
|
||||
<Target Name="CopyDictionaries" AfterTargets="Build">
|
||||
<ItemGroup>
|
||||
<DictionaryFiles Include="Resources\Dictionaries\*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Copy SourceFiles="@(DictionaryFiles)" DestinationFolder="$(OutputPath)Dictionaries\%(RecursiveDir)" SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -4,6 +4,7 @@ using Avalonia;
|
|||
using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.SpellChecker;
|
||||
|
||||
namespace SourceGit.Views
|
||||
{
|
||||
|
@ -49,6 +50,8 @@ namespace SourceGit.Views
|
|||
|
||||
public partial class CommitMessageTextBox : UserControl
|
||||
{
|
||||
private readonly TextBoxSpellChecker _textBoxSpellChecker;
|
||||
|
||||
public enum TextChangeWay
|
||||
{
|
||||
None,
|
||||
|
@ -86,6 +89,9 @@ namespace SourceGit.Views
|
|||
public CommitMessageTextBox()
|
||||
{
|
||||
InitializeComponent();
|
||||
_textBoxSpellChecker = new TextBoxSpellChecker(SpellCheckerConfig.Create("en_GB"));
|
||||
_textBoxSpellChecker.Initialize(SubjectEditor);
|
||||
_textBoxSpellChecker.Initialize(DescriptionEditor);
|
||||
}
|
||||
|
||||
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
|
||||
|
|
Loading…
Reference in a new issue