Ticket #645 (new defect)

Opened 2 years ago

Last modified 11 months ago

Lexically rename variable changes the screen position dramatically (and shouldn't have to)

Reported by: adamk Owned by:
Priority: minor Milestone:
Component: Refactoring Perl 5 Version: 0.47
Keywords: refactoring Cc:

Description

In the current implementation, the "Lexically Rename Variable" function results in a long wait to parse the document (which is not a big deal) followed by a dramatic snap to a new focus and line (which is really annoying).

The Lexically Rename Variable function inherently should never change the line quantity or the position of any code. As a result, we SHOULD be able to remember and keep the position of the editor at the time of the Lexical Rename Variable menu entry being fired and keep it at the end of the replacement.

Change History

comment:1 Changed 22 months ago by zenogantner

  • Keywords refactoring added

comment:2 Changed 17 months ago by zenogantner

note: The current name of this function in the "Refactoring" menu is "Rename Variable".

comment:3 Changed 16 months ago by zenogantner

Also annoying: After you undo a rename, the focus is at the end of the document.

comment:4 Changed 11 months ago by szabgab

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