1995eaton / chromium-vim

Vim bindings for Google Chrome.
https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh
MIT License
2.25k stars 325 forks source link

Find doesn't work over text with font changes #627

Open max-sixty opened 6 years ago

max-sixty commented 6 years ago

Thank you as ever for one of my favorite things in the world.

A small issue I think I found: If I search for pytest\.mark, I don't get results in the case of the first gray box. I think I've reduced that down to the search not spanning font changes. Is that right? If so, is that intended?

image

https://docs.pytest.org/en/latest/parametrize.html

frankitox commented 5 years ago

Is this still a thing? I just tried and seems to work now. But, if you just add more span tags inside, then you won't be able to find it anymore. e.g: <span class="std std-ref">pytest<span>.</span>mark.parametrize</span> breaks. If anyone can provide some guidance on this being on purpose or just a bug. I see there's the window.find which might be handy for implementing again this feature.