Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky Option for breadcrumb / additional to breadcrumb #1719

Open
f4abap opened this issue Feb 26, 2024 · 4 comments
Open

Sticky Option for breadcrumb / additional to breadcrumb #1719

f4abap opened this issue Feb 26, 2024 · 4 comments
Labels
enhancement New feature or request needinfo

Comments

@f4abap
Copy link

f4abap commented Feb 26, 2024

Originally provided it as a feature-request within the SAP-Ecospace.
As I suggested there, this is a feature, which will provide a better usability no matter what language is used. So moved it here and hope to get that feature.

Please describe your improvement request

Provide different option for the breadcrumb / add a feature

What is the opportunity/problem the request will address?

In long statements it's difficult to see, which are dependencies, and therefore it's difficult to add the logic to the correct place. Especial when the source-code gets long

What is the expected benefit?

Will give developers a better option to navigate and see what their focus is

Found it as an option within VSCode and think this option would also be a great benefit for ABAP. Maybe it's a feature for the eclipse foundation.

Have a look here

https://devblogs.microsoft.com/visualstudio/sticky-scroll-now-in-preview/

@f4abap f4abap added the enhancement New feature or request label Feb 26, 2024
@iloveeclipse
Copy link
Member

I could not understand what exactly is the feature you request. Could you be more precise please ?

@f4abap
Copy link
Author

f4abap commented Feb 27, 2024

As you scroll through your code, namespaces, classes, and methods will stick to the top of the editor

Here is a little example

IF 1 = 2
..imagine multiply lines of coding
else
..imagine multiply lines of coding here too
endif.

So now you scroll down to the else and then your editor will look like
IF 1 = 2
..else
somewhere in this coding section is your cursor

Please also take your time to read through the linked blog, because there is this feature really great described.. it's just the wrong ide :-D

@Madjosz
Copy link

Madjosz commented Apr 23, 2024

This is how this feature looks in Eclipse Theia:
Sticky Scroll in Eclipse Theia

@Christopher-Hermann
Copy link
Contributor

Christopher-Hermann commented May 17, 2024

After conducting some initial prototyping, I believe I've identified a potential solution.

In the top right corner, you can observe the 'sticky lines' displayed in an added textual area:
StickyScrolling

When the additional text is aligned so that it is displayed above the lines of the editor, I think it can be build so that it works like in the other IDEs. Of course, line numbers, navigation, etc. is missing.

Should time permit in the upcoming weeks, I plan to look further into this feature.

Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this issue May 22, 2024
With this change, sticky scrolling is introduced into Eclipse text editors. Sticky scrolling will keep certain source code lines visible and in a fixed position on the screen as the user scrolls down the page. This technique improves user experience by keeping information within reach at all times.

The feature can be enabled via the TextEditor settings.

Provides feature for eclipse-platform#1719 and eclipse-jdt/eclipse.jdt.ui#1364
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this issue May 22, 2024
With this change, sticky scrolling is introduced into Eclipse text editors. Sticky scrolling will keep certain source code lines visible and in a fixed position on the screen as the user scrolls down the page. This technique improves user experience by keeping information within reach at all times.

The feature can be enabled via the TextEditor settings.

Provides feature for eclipse-platform#1719 and eclipse-jdt/eclipse.jdt.ui#1364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needinfo
Projects
None yet
Development

No branches or pull requests

4 participants