snacks.nvim icon indicating copy to clipboard operation
snacks.nvim copied to clipboard

bug: Gitbrowse open file in browser not works on branches with '/' character in it.

Open HOnatToprak opened this issue 1 month ago • 1 comments

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

  1. Create bitbucket branch with '/' character in it like 'feature/xyz'.
  2. 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
  },
})

HOnatToprak avatar Nov 14 '25 11:11 HOnatToprak

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

folke avatar Nov 14 '25 14:11 folke

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.

github-actions[bot] avatar Dec 15 '25 02:12 github-actions[bot]