-
-
Notifications
You must be signed in to change notification settings - Fork 958
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
CocList preview window cursorline not showing #4819
Comments
My hack:
( The matching in For technical reasons, it's quite challenging for Therefore, my hack only allows it to tell you where the first character of the match is, which is not difficult to implement. simplescreenrecorder-2023-11-29_11.27.47.mp4 |
I think using coc-lists with plugins like nvim-bqf would be a better choice, as it would highlight the matching characters. |
Any function for this is welcome! |
@jackielii @hexh250786313 neoclide/coc-lists#151 only non-interactive mode, and the search text shouldn't contains regex characters |
Result from CocInfo
Describe the bug
A clear and concise description of what the bug is.
This was an issue for me for quite a while. It use to work but now not.
In
CocList --auto-preview grep ...
result I use to see the cursorline highlighting the matched line. But now it's gone. My request was similar to issue: #2039Reproduce the bug
We will close your issue when you don't provide minimal vimrc and we can't
reproduce it
Create file
mini.vim
with:Start (neo)vim with command:
vim -u mini.vim
Enter
:CocList --auto-preview grep hello
I tracked the issue down and it looks like it's set on purpose: https://github.com/neoclide/coc.nvim/blob/master/autoload/coc/list.vim#L444 . And the highlights are latter on handled in s:preview_highlights. However I don't quite get what this is doing. And it's probably not working.
Can I request to bring back the cursorline for the preview window? or add an option for user to set it to a different highlight group. Or maybe the original
s:preview_highlights
are meant to work. Whichever it is, I just would like to see what's the matched line.Screenshots (optional)
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: