Sunday, May 24, 2009

manage Task::Padre::Plugins with ORDB::CPANTS

To update a Task:: module is not so hard but trivial. you need find out the new version of existing modules, and those haven't added yet.
well, do it manually is not so Perl-ish. we have Perl, we should do it automatically by running a script.

it's pretty good we have ORDB::CPANTS from Alias.
1, we get all plugins by ORDB::CPANTS through used_by
2, split them into requires and feature.
3, get the META info through YAML::LoadURI
4, generate the main part of Makefile.PL and Plugins.pm

you can find the code here: http://svn.perlide.org/padre/trunk/Task-Padre-Plugins/auto_generate.pl

I know I can generate Makefile.PL and Plugins.pm directly, but it's good enough for now.

Enjoy.

Labels:

Thursday, January 15, 2009

Padre I18N translation

(updated on June 23, 2009)

from http://padre.perlide.org/wiki/TranslationIntro:

the first time:
* msginit -i messages.pot -o zh-cn.po -l zh_CN

later then message.pot get updated.
* msgmerge -o zh-cn.po.new zh-cn.po messages.pot
open the file, grep 'fuzzy'. and fix them

check the syntax
* msgfmt -c zh-cn.po

check the difference
* msgcmp zh-cn.po messages.pot

Thanks.

Labels: ,

Thursday, November 06, 2008

Padre committer

if you are following padre, you may find that I'm a committer now.

[fayland@alpha padre]$ svn log | perl -MData::Dumper -n -e'if (/^r\d+\s*\|\s*(\w+)\s*\|/) {$c{$1}++} END {print Dumper \%c}'
$VAR1 = {
'tsee' => 19,
'adamk' => 90,
'fayland' => 12,
'patspam' => 6,
'bricas' => 2,
'szabgab' => 538
};

mainly I'm contributing something like follows:
* Wx::Choice ->SetSelection(0);
* add test 82-plugin-manager.t and cleanup _load_plugin in PluginManager.pm
* highlight with PPI for Perl5
* remove "no output" in ack
* Limit the search_terms/replace_terms
* add main_files_pos to goto last pos for those left files.

some are trivial and some are important. I feel proud with those commit.

and I update the plugins list a lot. now I have 7 plugins for padre.
Padre-Plugin-AcmePlayCode-0.02 Acme::PlayCode Plugin for Padre
Padre-Plugin-CPAN-0.01 CPAN in Padre
Padre-Plugin-PluginHelper-0.02 make building Padre plugin easy
Padre-Plugin-TabAndSpace-0.05 convert between space and tab within Padre
Padre-Plugin-Validator-0.02 validate HTML/CSS in Padre
Padre-Plugin-ViewInBrowser-0.01 view selected doc in browser for Padre
Padre-Plugin-WordStats-0.02 Word stats for Padre

Padre-Plugin-PluginHelper is useful to develop a new plugin, it loads plugin from a local dir, and it can be reloaded after change.

so start to play with padre, and tell us what you think. :)

Thanks.

Labels: ,

Monday, November 03, 2008

Padre::Plugin::WordStats and Padre::Plugin::Validator

writing Padre plugin is really easy and a lot fun.

I wrote another two today.
one is http://search.cpan.org/perldoc?Padre::Plugin::WordStats - count how many words, lines, chars (with or without) spaces.
the other is http://search.cpan.org/perldoc?Padre::Plugin::Validator - validate editing HTML/CSS in Padre

well, it may be not a big deal, but I'm using them in my daily life. so I like it.

start use padre and my plugins. :)

Thanks, Enjoy!

Labels:

Padre::Plugin::TabAndSpace

Padre::Plugin::TabAndSpace is to convert tabs to spaces OR convert spaces to tabs.

start use padre and my plugin, enjoy.

Labels:

Sunday, November 02, 2008

Padre::Plugin::AcmePlayCode

Padre::Plugin::AcmePlayCode is nothing big deal. it's just a mixin of Padre and Acme::PlayCode.

now you can
* convert double to single
* exchange condition
etc. in Padre.

and I had submitted two patches to Padre developers.

Padre is nice, just start using it!

Thanks.

Labels: ,

Friday, October 31, 2008

Padre

Padre is Perl Application Development and Refactoring Environment.

install Padre with Perl 5.10 with Win32 is a bit painful.
the ppm in wxperl http://www.wxperl.co.uk/repository/ is fine with Perl 5.8 while broken with 5.10

while it would be OK if you follows the instruction in http://padre.perlide.org/wiki/Download
cpan> look Alien::wxWidgets
$ perl Makefile.PL
$ dmake
$ dmake test
$ dmake install
$ exit
cpan> look Wx
$ perl Makefile.PL
$ dmake
$ dmake test
$ dmake install
$ exit
cpan> install Padre

while install the Alien::wxWidgets it needs download wxWidgets-2.8.8.tar.gz from sourceforge. it's better to download it with your download tool instead of the Perl command.
it takes much more longer than what I thought. but finally it works.

Padre is good. it's pure Perl with Wx.
features:
- highlight for Perl
- open from last
- bookmark
- subs in right
and others. it's really good.

while it has bugs. like
- can open many instance of one file
- no highlight for HTML
and others.

OK, it's still worthing to try. and I'm reading the source code now to see if I can fix a bug or contribute a plugin.

Thanks.

Labels: