chrishrb / gx.nvim

Implementation of gx without the need of netrw
Apache License 2.0
186 stars 19 forks source link

Encoded square brackets don't seem to be recognized as part of a URL #27

Closed heygarrett closed 9 months ago

heygarrett commented 10 months ago

When I push a new branch to a repo from nvim's terminal emulator, git gives me a URL to create an MR:

To create a merge request for <branch-name>, visit:
  https://company.example.com/team-name/repo-name/-/merge_requests/new?merge_request%5Bsource_branch%5D=branch-name

If I manually copy-paste the link into my browser the %5B and %5D get replaced by [ and ] respectively. But if I use gx.nvim to open the link the URL seems to get cut off before the first square bracket. To use the example above, this is what opens in the browser:

https://company.example.com/team-name/repo-name/-/merge_requests/new?merge_request