Bug 518656 - Position view in compare where the cursor was before
Summary: Position view in compare where the cursor was before
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 4.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-22 14:25 EDT by David Balažic CLA
Modified: 2017-06-22 14:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Balažic CLA 2017-06-22 14:25:21 EDT
When doing a "Compare With / Base Revision" (or similar comparisons) on a large file, it would be nice if the compare editor would position the view at the same position as in the original file, for the case the user is interested in changes in that region of the file.

Example:
 - I open large.txt(has 3000 lines) in a text editor
 - I scroll to line 1900 *
 - I open "Compare With / Base Revision"

Current result:
The compare editor is positioned at the first difference.

Wanted:
The compare editor would be positioned at line 1900

* there are several possibilities to consider as "position" here:
 - take the text cursor position
 - take the spot where the user right clicked (mouse pointer position)
 - take the scroll (view) position of the file
 - take the selection position (if there is any text selected)