We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87be80 commit b7a6d31Copy full SHA for b7a6d31
lua/config/yank.lua
@@ -5,7 +5,8 @@ function M.setup()
5
smartyank.setup({})
6
vim.api.nvim_create_user_command("CopyFilePath", function()
7
local path = vim.fn.expand("%:p")
8
- vim.fn.setreg("+", path)
+ local b64 = vim.base64.encode(path)
9
+ io.stdout:write(string.format("\027]52;c;%s\a", b64))
10
print("File path copied: " .. path)
11
end, {})
12
vim.keymap.set("n", "<leader>cp", ":CopyFilePath<CR>", { silent = true, noremap = true })
0 commit comments