Opened 11 years ago

Closed 11 years ago

#286 closed enhancement (fixed)

Rewrite the code for the right click context menu to care about CONTEXT

Reported by: tsee Owned by:
Priority: critical Milestone:
Component: editor Version: 0.32
Keywords: Cc:


The right click context menu is currently a very simple procedure in the Editor class. Ideally, someone should sit down and think this through.

I could envisage some class hierarchy that actually does the menu construction depending on the CONTEXT (hint, hint).

Either way, the code shouldn't live in the Editor class. See also: The unused? Padre::Wx::RightClick? class.

An example of where such a thing could come in handy: When right clicking on something that *looks like a variable*, the context menu could automatically add entries for "find declaration of this variable" or "lexically replace this variable". Of course, that also requires the context to be sensitive to the type of document being edited!

Extra points for making this extensible using plugins!

I think this would be a major, major improvement and a first cut at this would probably make a nice task for someone who isn't necessarily familiar with all the curiosities of the current code base.

Change History (1)

comment:1 Changed 11 years ago by tsee

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

Context menu now cares about context.

Note: See TracTickets for help on using tickets.