Skip to content

Provide content-specific impl of IStickyLinesProvider for the Diff Editor #181

@wahlbrink

Description

@wahlbrink

Description

Since Eclipse Platform 4.33, the editors in Eclipse support "sticky scrolling".
The Diff Editor (viewer for Unified Diff) of EGit should provide an implementation of IStickyLinesProvider that takes the specific content in the viewer into account.

I think, in particular, it should provide the header lines of the diff sections (file, hunk) as sticky lines:

Image

Proposal

https://eclipse.gerrithub.io/c/eclipse-egit/egit/+/1237236

Motivation

I think sticky lines should, in particular, display the context of the current position.

Alternatives considered

No response

Additional context

Sticky lines with line background color as shown in the screenshot above require this change: eclipse-platform/eclipse.platform.ui#3844

Without the change / for older versions, the lines have the default editor background:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions