Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Code snippet plugin
artoj:
I've commited some small changes to SVN. The editing of the snippets is written, but I'm very unhappy how it turned out; it's very complex and hacky (over 300 lines of new code). I have an alternative solution in mind and I'm going to investigate it further.
Arto
Pecan:
CodeSnippets Version 1.1.53 2007/04/3
Modifications:
* Ability to save Snippets as external files
* Ability to edit externally saved Snippet file
* New Text vs File Link icons
* Ability to Rearrange tree with Drag and Drop
* Drag Snippet to Category
* Drag Category to Category
* Drag Snippet to Snippet creates new Category with old Snippet
* Drag Snippets/Categories outward and inward.
* Convert To Category context menu facility
* Added drag snippet item outward (MSW) w/ both text/file drag formats
* Dragging snippet File Link to CB opens the file.
* Changed text editor to Scintilla
* Added DragScrolling to Editor
* Allow Editor/Properties DragNDrop in both directions
* Expand first level Snippets on Startup
* Check for externally modified XML file
* Free resources & save index when Snippet window closes
* Portability
* User specified window placement
* User specified XML placement
* User specified external editor
* Save XML index file menu entry
* About info and context menu entry
* Snippet Properties Dialog
Note: Killerbot believes this commit has broken the Linux build.
Until we can figure this out, Linux users using "make" should wait to update.
mike__t:
It didn't break my build on Linux, but the debugger hangs on startup when this plug-in is enabled. Disabling it allows me to debug again.
-Mike
Wahooney:
There are three features that will make Code Snippets (which are damn handy already) even better, namely:
* Pipe caret positioning, ie. /** | **/
* Macro replacement, ie. $(classname)
* Bind snippet to keyboard shortcut
The first two features are the same as those found in the abbreviation tool. It will make writing things like class definitions that much more practical in code snippets.
Thanks :)
Pecan:
--- Quote from: mike__t on April 10, 2007, 02:46:30 am ---It didn't break my build on Linux, but the debugger hangs on startup when this plug-in is enabled. Disabling it allows me to debug again.
-Mike
--- End quote ---
Fixed: SVN 3823
Thanks for the report
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version