id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
286	Rewrite the code for the right click context menu to care about CONTEXT	tsee		"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."	enhancement	closed	critical		editor	0.32	fixed		
