[mono/monodevelop] [2 commits] 6b87d5da: [Vi] Add support for centering the text editor.

Mike Krüger ([email protected]) <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000141c961ab03-33dd7eb8-163e-40cc-9732-cf0be3e7bdb1-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/f9228437649c...9344ba1ae4fb

   Commit: 6b87d5da1a5e6aefea15c33e589e607108189ac6
   Author: Cody Russell <[email protected]> (bratsche)
     Date: 2013-10-17 20:55:55 GMT
      URL: https://github.com/mono/monodevelop/commit/6b87d5da1a5e6aefea15c33e589e607108189ac6

[Vi] Add support for centering the text editor.

Changed paths:
  M main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs

Modified: main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs
===================================================================
@@ -884,6 +884,11 @@ protected override void HandleKeypress (Gdk.Key key, uint unicodeKey, Gdk.Modifi
 						// Fold open
 							action = FoldActions.OpenFold;
 							break;
+						case 'z':
+						case '.':
+							editor.CenterToCaret ();
+							Reset ("");
+							break;
 						default:
 							Reset ("Unknown command");
 							break;

   Commit: 9344ba1ae4fb377b514fd53f5b2bdb6cb9169d4c
   Author: Mike Krüger <[email protected]> (mkrueger)
     Date: 2013-10-18 02:23:18 GMT
      URL: https://github.com/mono/monodevelop/commit/9344ba1ae4fb377b514fd53f5b2bdb6cb9169d4c

Merge pull request #418 from mono/center-text-in-vi-mode

[Vi] Add support for centering the text editor.

Changed paths:
  M main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs

Modified: main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs
===================================================================
@@ -884,6 +884,11 @@ protected override void HandleKeypress (Gdk.Key key, uint unicodeKey, Gdk.Modifi
 						// Fold open
 							action = FoldActions.OpenFold;
 							break;
+						case 'z':
+						case '.':
+							editor.CenterToCaret ();
+							Reset ("");
+							break;
 						default:
 							Reset ("Unknown command");
 							break;
_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.