-
I would like to create keybinding to be able to copy the url generated with gitbrowse without opening browser. Is there a straight forward way to achieve this? |
Beta Was this translation helpful? Give feedback.
Answered by
maskudo
Jan 23, 2025
Replies: 1 comment 1 reply
-
I've got this binding to do that: {
"<leader>gy",
function()
Snacks.gitbrowse.open({
open = function(url)
vim.fn.setreg("+", url)
vim.notify("Yanked url to clipboard")
end,
})
end,
desc = "Copy line(s) link",
mode = { "n", "v" },
},
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
achojo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've got this binding to do that: