Unified Diff: Preserve cursor position and active diff when switching to/from 2-way compare
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Trace the switch actions in the unified diff toolbar and the 2-way compare editor, then inspect how each presentation determines its active hunk, cursor position, and scroll location. Done means switching in either direction restores the equivalent active hunk, caret location, and visible context instead of resetting to the first diff.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The unified diff toolbar provides an action to open the diff in the traditional 2-way compare editor. Conversely, the 2-way compare editor provides an action to switch back to the unified diff presentation. However, switching between the two presentations does not preserve context: the cursor position, scroll position, and the currently active diff hunk are lost, and the view always resets to the first diff.
Expected Behavior
When switching between unified diff and 2-way compare editor (in either direction), the following context should be restored in the target presentation:
- The active diff hunk — the diff closest to the cursor or the one explicitly navigated to should remain selected/focused.
- The cursor position — the caret should be placed at the equivalent location in the target editor.
- The scroll position — the target editor should scroll to bring the active diff into view.
This makes switching between presentations a non-destructive operation and allows users to freely alternate between the two views without losing their place.
- Ngôn ngữ chính
- Java
- Star
- 165
- Fork
- 174
- Merge trung bình
- 2 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 39
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-platform/eclipse.platform
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform#2940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Terminal views all show same name 'Terminal' in Ctrl+F7 view switcher popupCó thể đã có người làm @ravnskjaer đã nhận 4 ngày trước. Đang mởbug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform#2774 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform#2593 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve tabs in Terminal viewĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
eclipse-platform/eclipse.platform#3015 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
NPE in AbstractWindowListener.windowOpened when ConsoleManager service is nullCó thể đã có người làm @SougandhS đã nhận hôm nay. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
eclipse-platform/eclipse.platform#3012 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-platform/eclipse.platform
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
quelea-projection/Quelea#711 ·
-
bug pdd
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 67/100
objectionary/eo#9450 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[EC2] DescribeAvailabilityZones should return real AWS error for unknown zone nameCó thể đã có người làm @omatheusmesmo đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: core good first issue type: enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ShaftHQ/SHAFT_ENGINE#6909 ·
Maintainer thường phản hồi trong vòng 1 ngày