Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

tsee (4409)

  {smueller} {at} {}

You can find most of my Open Source Perl software in my CPAN directory [].

Journal of tsee (4409)

Monday May 11, 2009
01:35 PM

Padre usability improvements

[ #38955 ]

On the week-end, I finally implemented a few simple usability improvements for Padre, the Perl IDE.

With the recently released version 0.35, Padre supports a context (right click) menu that's actually context sensitive! (No shit!) If you right-click on a variable, Padre will offer additional options in the context menu that let you jump to the declaration of the variable or replace all occurrences of a lexical(!) variable.

Additionally, we stole a nice feature from Eclipse/Perl: If you hold Ctrl while left-clicking on a variable or subroutine name, the focus will jump to the respective definition. All this only works in the current file, unfortunately, but eventually, this will be a project-wide feature.

Today, a ticket in the bug tracker from Peter Makholm prompted me to implement an API for plugin authors. Your plugin can now provide different context menus depending on the document type, code at the cursor, additional modifier keys, or moon phase.

Update: Here's a simple example that you can copy&paste to your plugin to extend the context menu with a simple item

sub event_on_context_menu {
        my ($self, $doc, $editor, $menu, $event) = @_;

                $menu->Append( -1, Wx::gettext("Fun") ),
                sub { warn "FUN!" },



The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.