Padre::Document::Perl::QuickFix - Padre Quick Fix Provider API
Ctrl+2
This opens a dialog that lists different actions that relate to fixing the code at the cursor. It will call event_on_quick_fix method passing a Padre::Wx::Editor object on the current Padre document. Please see the following sample implementation:
sub quick_fix_list { my ($self, $editor) = @_; my @items = ( { text => '123...', listener => sub { print "123...\n"; } }, { text => '456...', listener => sub { print "456...\n"; } }, ); return @items; }
To install Padre, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre
CPAN shell
perl -MCPAN -e shell install Padre
For more information on module installation, please visit the detailed CPAN module installation guide.