Closed chrishrb closed 3 months ago
One nitpick:
I think I prefer when doing gx
in visual select mode to give me the option to do a google search with the selection. Default could be to just evaluate the other handlers, but allow me to force a google search link if I want to always have that option when visual-selecting.
Eg.: I'm selecting a line that has: This is the CVE-2023-5528
. If I just put my cursor on the cve in normal mode it opens the nist database of CVE-s, that's fine. But if I do a visual selection of the line, Maybe I'm interested in the google search results too, otherwise I'd not do a visual selection.
We can take that discussion into a separate issue though, I'm already more than happy with this change as-is.
I like that idea, so I added the line of code that was necessary 👍 For simplicity, I suggest not to add another option to turn on/off this behavior.
Nice, thanks! Just tested and works great.
wow, that was fast!
I tested the PR branch with the following two user-defined handlers that match the same URL:
Works great!