Opened 6 years ago

Closed 6 years ago

Last modified 3 years ago

#321 closed enhancement (fixed)

API for adding entries to right click menu

Reported by: pmakholm Owned by:
Priority: major Milestone:
Component: Debugger for Perl 5 Version: 0.35
Keywords: Cc:

Description

It would be nice if plugins were able to add entries to the editors right click menu, which only seems to be possible for Document-subclases.

For Padre::Plugin::Debugger I would like to add entries like 'Add breakpoint' and 'run to here'.

Change History (3)

comment:1 Changed 6 years ago by tsee

  • Resolution set to fixed
  • Status changed from new to closed

Implemented in Padre SVN trunk. Thanks for the ticket!

For an example on how to hook into things, check the event_on_right_click method of Padre::Document::Perl.

Eventually, I'd like to have left clicks hookable, too, but since those are much more common, that will take some consideration.

comment:2 Changed 6 years ago by tsee

Oh, I forgot to mention. API is documented in Padre::Plugin.

comment:3 Changed 3 years ago by bowtie

  • Component changed from editor to Debugger for Perl 5
Note: See TracTickets for help on using tickets.