[Padre-dev] Snippets

Kaare Rasmussen kaare at jasonic.dk
Tue Nov 18 00:25:53 PST 2008


Hi 

Hacking for fun and non profit on the Padre code I started on a solution for 
ticket #97 (http://padre.perlide.org/ticket/97). 

Currently there is
 - A sqlite table called snippets w/ category, name and code
 - A new module, Padre::Wx::Dialog::Snippets
 - A key binding (Alt-S, who wants a shortcut for the methods window anyway?)
 - Some setup code in Padre::DB 

For anyone familiar with the perl gvim extensions, the idea is to add the 
snippets from there (statements like if, foreach etc, regexes, file tests) 
as a basis and then the user should be able to amend the distributed list. 

When the user hits the hotkey there's a popup with category and name 
Wx::Choice fields. 

Now I'd like to ask if this is the path. I'm at a point where I can say to 
myself that I used the time to get to know Wx programming, but where there 
is no point in further development if it's not what is wanted. 

Of course it's only basic functionality right now. The TODO could include
 - Editing of snippets list
 - Some information of where to put the cursor after insertion


More information about the Padre-dev mailing list