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

Add a right click to the sticky scroll header to allow searching in a scope #242580

Open
Emily1799 opened this issue Mar 4, 2025 · 3 comments
Open
Assignees
Labels
editor-sticky-scroll feature-request Request for new features or functionality

Comments

@Emily1799
Copy link

Emily1799 commented Mar 4, 2025

When the user has sticky scroll on, allow them to right click the sticky scroll header and select 'search' and have that target the control/command f search bar to be solely in the scope shown by that sticky scroll level.

This would be useful when working in a file with many large functions/methods, and would provide an intuitive interface to search a single function or method.

@aiday-mar aiday-mar added feature-request Request for new features or functionality editor-sticky-scroll labels Mar 4, 2025
@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone Mar 4, 2025
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@ArturoDent
Copy link

This is interesting. But it would require a contribution point for the sticky scroll (so an extension could add a search in this function/file command) and adding the find or search capability to restrict the find/search scope to functions - which also doesn't exist.

@Emily1799
Copy link
Author

Emily1799 commented Mar 5, 2025

I'm not familiar with the associated source at all, unfortunately, this was just an idea from struggling in a 10,000 line Java file with some massive functions in it, gotta love legacy code.

I imagine sticky scroll / the expand-collapse stuff keeps track of the line numbers associated with its 'scopes' somewhere... but yeah, it's definitely more complicated if the search code doesn't presently have the option to restrict within a range of line numbers. Thank you for the input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-sticky-scroll feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants