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

Syntax highlighting in search #3145

Open
MinusGix opened this issue Apr 5, 2024 · 0 comments
Open

Syntax highlighting in search #3145

MinusGix opened this issue Apr 5, 2024 · 0 comments
Labels
A-ui Area: UI rendering and interactions C-feature Category: New feature or request

Comments

@MinusGix
Copy link
Member

MinusGix commented Apr 5, 2024

Is your feature request related to a problem? Please describe.

It would be nice to have some amount of syntax highlighting in the search results.

Describe the solution you'd like

The obvious problem with this is that we don't want to load all those many files at once to do some syntax highlighting in only part of it.
Does treesitter support any sort of "highlight this range" without needing to load anything more of the file beyond a few surrounding lines? (It would still require loading a bunch of files however, since we shell out to some library for getting all these locations I believe)
It may also be possible to only do some hacky syntax highlighting of that single line it gives us. This might sometimes make it look like garbage, but may capture the majority of the value.

Other editors don't do this as far as I know.

@MinusGix MinusGix added C-feature Category: New feature or request A-ui Area: UI rendering and interactions labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ui Area: UI rendering and interactions C-feature Category: New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant