Skip to content

Commit

Permalink
add overtype mode #81
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-ward committed Jan 24, 2016
1 parent e291808 commit 30b42be
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/MarkdownEdit-Package/Package/markdown-edit.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>markdown-edit</id>
<title>Markdown Edit</title>
<version>1.20.1</version>
<version>1.21.0</version>
<authors>Mike Ward</authors>
<owners>Mike Ward</owners>
<summary>Desktop CommonMark Editor for Windows</summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Install-ChocolateyPackage 'markdown-edit' 'msi' '/qb SKIPFRAMEWORKCHECK="1"' 'https://github.com/mike-ward/Markdown-Edit/releases/download/v1.20.1/MarkdownEditSetup.msi'
Install-ChocolateyPackage 'markdown-edit' 'msi' '/qb SKIPFRAMEWORKCHECK="1"' 'https://github.com/mike-ward/Markdown-Edit/releases/download/v1.21/MarkdownEditSetup.msi'
2 changes: 2 additions & 0 deletions src/MarkdownEdit/Controls/Editor.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<CommandBinding Command="{x:Static controls:Editor.RevertCommand}" Executed="ExecuteRevertCommand" CanExecute="CanExecute" />
<CommandBinding Command="{x:Static controls:Editor.InsertHyperlinkCommand}" Executed="ExecuteInsertHyperlink" CanExecute="CanExecute" />
<CommandBinding Command="{x:Static controls:Editor.InsertHyperlinkDialogCommand}" Executed="ExecuteInsertHyperlinkDialog" CanExecute="CanExecute" />
<CommandBinding Command="{x:Static controls:Editor.ToggleOverTypeModeCommand}" Executed="ExecuteToggleOverTypeCommand" CanExecute="CanExecute" />
</UserControl.CommandBindings>

<UserControl.InputBindings>
Expand All @@ -66,5 +67,6 @@
<KeyBinding Command="{x:Static controls:Editor.InsertBlockQuoteCommand}" Gesture="Ctrl+Q" />
<KeyBinding Command="{x:Static controls:Editor.RevertCommand}" Gesture="F5" />
<KeyBinding Command="{x:Static controls:Editor.InsertHyperlinkDialogCommand}" Gesture="Ctrl+L" />
<KeyBinding Command="{x:Static controls:Editor.ToggleOverTypeModeCommand}" Gesture="Insert" />
</UserControl.InputBindings>
</UserControl>
3 changes: 3 additions & 0 deletions src/MarkdownEdit/Controls/Editor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public partial class Editor : INotifyPropertyChanged
public static RoutedCommand RevertCommand = new RoutedCommand();
public static RoutedCommand InsertHyperlinkCommand = new RoutedCommand();
public static RoutedCommand InsertHyperlinkDialogCommand = new RoutedCommand();
public static RoutedCommand ToggleOverTypeModeCommand = new RoutedCommand();

public Editor()
{
Expand Down Expand Up @@ -406,6 +407,8 @@ public void InsertHeader(int num) => IfNotReadOnly(() =>

private void ExecuteRevertCommand(object sender, ExecutedRoutedEventArgs e) => OpenFile(FileName);

private void ExecuteToggleOverTypeCommand(object sender, ExecutedRoutedEventArgs e) => EditBox.TextArea.OverstrikeMode = !EditBox.TextArea.OverstrikeMode;

// Event handlers

public EventHandler TextChanged;
Expand Down
4 changes: 2 additions & 2 deletions src/MarkdownEdit/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
ResourceDictionaryLocation.None,
ResourceDictionaryLocation.SourceAssembly
)]
[assembly: AssemblyVersion("1.20.1.0")]
[assembly: AssemblyFileVersion("1.20.1.0")]
[assembly: AssemblyVersion("1.21.0.0")]
[assembly: AssemblyFileVersion("1.21.0.0")]
[assembly: Guid("A9A0AE86-ED91-498F-A9F9-DB669C9879CE")]
2 changes: 1 addition & 1 deletion src/Wix/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Product Id="*"
Name="Markdown Edit"
Language="1033"
Version="1.20.1.0"
Version="1.21.0.0"
Manufacturer="Mike Ward"
UpgradeCode="77d4d41b-4443-42c6-87dd-20771c9bb031">

Expand Down

0 comments on commit 30b42be

Please sign in to comment.