1995eaton / chromium-vim

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

nextmatchpattern and classes #643

Open jafrolo opened 6 years ago

jafrolo commented 6 years ago

Thanks for a great extension! Is it possible to somehow get the nextmatchpattern to also consider class names in addition to strings?

vogler commented 5 years ago

It would be great if there was something else to handle sites that don't use text. Just stumbled across the following:

<a class="cept-next-page pagination-next" href="..." rel="next" aria-label="Nächste Seite" data-handler="track" data-track="..."><svg width="12px" height="18px" class="icon icon--right"><use xlink:href="/assets/img/ico_0d108.svg#right"></use></svg></a>

Taking rel="next" [1] into account seems reasonable. Maybe also match labels.