Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
Just a while ago I finished the LineComment Plugin, you can see it in action here:
https://1drv.ms/v/s!AquVr9J7xRcsgW6UpLVLBF-r4iT-
The last few days things are going very slow, I laid the groundwork however to create a bunch of Ted2 Plugins.
https://github.com/coconcode/monkey2/tree/experimental-plugins
The Plugins At This Moment:
12345678910111213141516PluginTextView_CursorMoveHomeName: "Toggle cursor position between the start of the line and the start of the first letter."Shortcut "Home"PluginTextView_CursorMoveWordName: "Move cursor to start or end of each the word."Shortcut: "Control(Shift) + Left or Right"PluginTextView_LineCopyCutName: "Copy or Cut a complete line when there is no text selection."Shortcut: "Control + C or X"PluginTextView_LineCommentName: "Toggle comment for lines."Shortcut: "Alt + C"However I made some code changes to the original design.
TextViewKeyEventFilterbecomes PluginTextView
This more of a naming convention since I thought that in the future there might be other plugins as well other than the text view. (e.g. PluginConsole, PluginExplorer, PluginAnything). This will create a nice mental grouping that will make sense, in comparison to rogue classes where each one has it’s own unique name and you can’t put them in a basket.Also I created the class TextViewFeatures (located in textviewplugin) to provide some shorthand methods for TextView objects, nothing more than a convenience wrapper class. It is also initialized as a private global so that it can be accessed easily.
I did not know about that, could be added to the modules list.
http://forum.mx2.community/viewtopic.php?f=31&t=8OK I noted down the details of the implementation, very impressive indeed. The conversation continues here:
http://monkey2.monkey-x.com/forums/topic/ted2-experimental-plugin-system/
Perhaps that would be an old OpenGLES version?
I noted these down, thanks for the suggestions.
Since Ted2 is much improved now, there was no need to keep obsolete features around. I did a hard reset of the repository to the current newest version of Ted2 and started on some new ideas.
At this time I thought of a new design on how to extend Ted2 without messing with the core codebase too much. Since it’s better Ted2 to remain a simple project and solid project, any additional functionality could be implemented in a more flexible way.
https://github.com/coconcode/ted2mod/blob/master/extension.monkey2
https://github.com/coconcode/ted2mod/blob/master/extensioncursormoveijkl.monkey2I have MinGW extracted in “D:\Programs\monkey2mingw\mingw32\bin\g++.exe” and I have deleted the “devtools” folder, and created a “devtools” folder link instead (a junction, with the program SymLinkCreator). Actually I did not know about “evn_window.txt”, perhaps I might try to use it from now on.
Perhaps Adam made a few additions into mojox, if I remember correctly by looking at his repo. Adam, you might try to keep a separate fork of mojox since it will become a standalone project later on, you would control the changes of the libraries that way (ted21-mojox-other).
I see that now makedocs can work only for modules, you say that it could work for projects as well right?
There is a very interesting project that “wraps” all of the graphics APIs under one roof.
This might be a good inspiration of what the rendering backend of mojo would be.
Nice one, I see that you shoot the reload within a few lines of code.
In my fork, when doing reload of the the files, the Undo/Redo stack is busted. If accidentally you perform Undo/Redo the text will break and becomes full of gibberish. I don’t know if you have noticed it.
The solution I guess is that mojox TextView should be updated to clear the Undo/Redo stack right after the reload.
I have managed recently to add automatic reloading of opened files in my fork. If AdamStrange are you interested to use whatever source suits your needs you are welcomed.
http://monkey2.monkey-x.com/forums/topic/another-modified-version-of-ted2/
You could move my thread here since it’s not related to M2 development.
http://monkey2.monkey-x.com/forums/topic/another-modified-version-of-ted2/
Here is a video to see how to use Ted2 with an external text editor (i.e. Sublime).
https://1drv.ms/v/s!AquVr9J7xRcsgWyEt7ehOL5vPeyc - 
		AuthorPosts