-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #156 Create commands for all keybinds that may conflict with built in keybinding schemes (Just Visual Studio for Mac default for now). Also created Visual Studio + Vim keybinding scheme to set vim keys for users that want that behaviour.
- Loading branch information
Showing
5 changed files
with
89 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<scheme version="1.0"> | ||
<!-- Vim keybinding scheme containing all the keys that | ||
conflict with keybindings in the Visual Studio keybinding scheme--> | ||
<binding command="MonoDevelop.Ide.Commands.TextEditorCommands.DeleteRightChar" shortcut="" /> | ||
<binding command="XSVim.HalfPageDown" shortcut="Control+D" /> | ||
<binding command="MonoDevelop.Ide.Commands.TextEditorCommands.LineUp" shortcut="" /> | ||
<binding command="XSVim.FindFile" shortcut="Control+P" /> | ||
<binding command="MonoDevelop.Ide.Commands.TextEditorCommands.CharRight" shortcut="" /> | ||
<binding command="XSVim.PageDown" shortcut="Control+F" /> | ||
<binding command="MonoDevelop.Ide.Commands.TextEditorCommands.CharLeft" shortcut="" /> | ||
<binding command="XSVim.PageUp" shortcut="Control+B" /> | ||
<binding command="MonoDevelop.Ide.Commands.TextEditorCommands.LineDown" shortcut="" /> | ||
<binding command="XSVim.DynamicAbbrev" shortcut="Control+N" /> | ||
<binding command="MonoDevelop.Ide.Commands.TextEditorCommands.InsertNewLinePreserveCaretPosition" shortcut="" /> | ||
<binding command="XSVim.NavigateBackwards" shortcut="Control+O" /> | ||
<binding command="MonoDevelop.Ide.CodeFormatting.CodeFormattingCommands.FormatBuffer" shortcut="" /> | ||
<binding command="XSVim.NavigateForwards" shortcut="Control+I" /> | ||
<binding command="MonoDevelop.Ide.Commands.TextEditorCommands.LineStart" shortcut = "Meta+Left"/> <!-- removed ctrl-a --> | ||
<binding command="XSVim.DecrementNumber" shortcut="Control+A" /> | ||
<binding command="XSVim.IncrementNumber" shortcut="Control+X" /> | ||
<binding command="XSVim.Escape" shortcut="Escape Control+C Control+[" /> | ||
</scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ExtensionModel> | ||
<Runtime> | ||
</Runtime> | ||
<Runtime> | ||
</Runtime> | ||
<Extension path="/MonoDevelop/Ide/TextEditorExtensions"> | ||
<Class class="XSVim.XSVim" /> | ||
</Extension> | ||
<Extension path = "/MonoDevelop/Ide/Commands"> | ||
<Command id = "MonoDevelop.Ide.Commands.EditCommands.Undo" | ||
_label = "_Undo" | ||
icon = "gtk-undo" | ||
_description = "Undo (vim)" | ||
shortcut = "Control|Z" | ||
macShortcut = "Meta|Z" /> | ||
<Category _name = "Vim" id = "Vim" > | ||
<!-- Override undo to use the vim undo stack --> | ||
<Command id = "MonoDevelop.Ide.Commands.EditCommands.Undo" | ||
_label = "_Undo" | ||
icon = "gtk-undo" | ||
_description = "Undo (vim)" | ||
shortcut = "Control|Z" | ||
macShortcut = "Meta|Z" /> | ||
<!-- Commands that may conflict with built in keybinding schemes --> | ||
<Command id="XSVim.HalfPageDown" _label="Half page down" _description="Move half a page down" shortcut="Control|D" /> | ||
<Command id="XSVim.FindFile" _label="Find file" shortcut="Control|P" /> | ||
<Command id="XSVim.PageDown" _label="Page down" shortcut="Control|F" /> | ||
<Command id="XSVim.PageUp" _label="Page up" shortcut="Control|B" /> | ||
<Command id="XSVim.DynamicAbbrev" _label="Complete from file" shortcut="Control|N" /> | ||
<Command id="XSVim.NavigateBackwards" _label="Navigate Backwards" shortcut="Control|O" /> | ||
<Command id="XSVim.NavigateForwards" _label="Navigate Forwards" shortcut="Control|I" /> | ||
<Command id="XSVim.NavigateForwards" _label="Navigate Forwards" shortcut="Control|I" /> | ||
<Command id="XSVim.IncrementNumber" _label="Increment Number" shortcut="Control|X" /> | ||
<Command id="XSVim.DecrementNumber" _label="Decrement Number" shortcut="Control|A" /> | ||
<Command id="XSVim.Escape" _label="Return to normal mode" shortcut="Escape Control|C Control|[" /> | ||
</Category> | ||
</Extension> | ||
<Extension path="/MonoDevelop/Ide/GlobalOptionsDialog/Other"> | ||
<Section id="VimSettings" _label="Vim Settings" class = "XSVim.SettingsPanel" icon="md-prefs-source" /> | ||
</Extension> | ||
<Extension path = "/MonoDevelop/Ide/KeyBindingSchemes"> | ||
<Scheme id="Vim" _name = "Visual Studio + Vim" resource="KeyBindingSchemeVim.xml" forMac="true" /> | ||
</Extension> | ||
</ExtensionModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters