Closed reegnz closed 3 months ago
I've just submitted a PR for this feature request. Could you please take a look and provide your feedback? Any comments or suggestions would be greatly appreciated!
Thanks! 🙏
Now when I use gx
on the text "chrishrb/gx.nvim"
, I get multiple selections:
Multiple patterns match. Select:
https://github.com/chrishrb/gx.nvim (nvim-plugin)
https://chrishrb/gx.nvim (url)
Is there a way to always default to github?
The issue looks to be with the pattern. Multiple patterns seem to show up when .nvim
is at the end.
"chrishrb/gx"
does not appear to match multiple patterns.
Perhaps url pattern matching without http(s) could be an opt-out feature?
This could reduce the number of potential handler conflicts.
Right now the first handler that matches in the handlers table is accepted and no other handlers are evaluated. There might be some cases where there's overlap between handlers and multiple handlers are capable of handling a URL.
The https://github.com/rmagatti/gx-extended.nvim plugin handled this by presenting the user with a popup where you could select which handler you'd want to use if there's multiple matches.
Would be great if this feature could be adopted.