NAME

Padre::Plugin::Ecliptic - Padre plugin that provides Eclipse-like useful features

SYNOPSIS

1. After installation, run Padre.
2. Make sure that it is enabled from 'Plugins\Plugin Manager".
3. Once enabled, there should be a menu option called Plugins/Ecliptic.

DESCRIPTION

Once you enable this Plugin under Padre, you'll get a brand new menu with the following options:

Quick Assist (Shortcut: Ctrl + Shift + L)

This opens a dialog with a list of current Padre actions/shortcuts. When you hit the OK button, the selected Padre action will be performed.

Quick Outline Access (Shortcut: Ctrl + 4)

This opens a dialog where you can search for outline tree. When you hit the OK button, the outline element in the outline tree will be selected.

Quick Module Access (Shortcut: Ctrl + 5)

This opens a dialog where you can search for a CPAN module. When you hit the OK button, the selected module will be displayed in Padre's POD browser.

Quick Fix (Shortcut: Ctrl + Shift + 1)

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 event_on_quick_fix {
	my ($self, $editor) = @_;
	
	my @items = ( 
		{
			text     => '123...', 
			listener => sub { 
				print "123...\n";
			} 
		},
		{
			text     => '456...', 
			listener => sub { 
				print "456...\n";
			} 
		},
	);
	
	return @items;
}

About

Shows a classic about dialog with this module's name and version.

Why the name Ecliptic?

I wanted a simple plugin name for including Eclipse-related killer features into Padre. So i came up with Ecliptic and it turned out to be the orbit which the Sun takes. And i love it!

AUTHOR

Ahmad M. Zawawi <ahmad.zawawi at gmail.com>

COPYRIGHT AND LICENSE

Copyright 2009 <ahmad.zawawi at gmail.com>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.