-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
No syntax highlighting in preview on global search #4956
Comments
I think I've seen this happen with the file picker as well: the idle-timeout event races with the opening of the picker so it doesn't trigger the highlighting of the current selection when the idle-timeout comes first. Hitting up/down (or others) to change the selection highlights the file because the idle-timeout event is emitted again |
I've experienced the file picker issue as well. Looked into the source before and found that highlighting only triggers once if it finishes before idle timeout. But I feel like these are two different issues, despite the similar behavior. Will look a bit into this :) |
What's your |
The recording uses |
I think the solution would be to reset the |
Summary
The global search picker fails to show syntax highlighting when it's first shown. It works fine after navigating through the items.
Reproduction Steps
I tried this:
<ESC>
<SPACE>/const<ENTER>
I expected this to happen:
The file content on the preview is properly highlighted (after the idle timeout).
Instead, this happened:
The preview is not highlighted.
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
tmux 3.3a
Helix Version
22.08.1-526-g67415e09
The text was updated successfully, but these errors were encountered: