snacks.nvim
snacks.nvim copied to clipboard
bug: Gitbrowse open file in browser not works on branches with '/' character in it.
Did you check docs and existing issues?
- [x] I have read all the snacks.nvim docs
- [x] I have updated the plugin to the latest version before submitting this issue
- [x] I have searched the existing issues of snacks.nvim
- [x] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.12.0-dev-1572+gaf5ac171bd-Homebrew
Operating system/version
MacOs 15.6
Describe the bug
Bitbucket branch pattern does not work with branches with '/' parameter. Not sure it is an issue with other providers.
Steps To Reproduce
- Create bitbucket branch with '/' character in it like 'feature/xyz'.
- Try to open it with gitbrowse.
Expected Behavior
It should open correct path on browser.
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{ "folke/snacks.nvim", opts = {} },
-- add any other plugins here
},
})
Would be helpful to at least add the url it's trying to open and then the url that should be used instead.
I'm also not using bitbucket myself, so feel free to create a PR
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.