Skip to content

Commit

Permalink
fix: wl-copy copies literal string < [filename].png (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
chemio9 authored Sep 27, 2024
1 parent 22359eb commit 5a79b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/freeze-code/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ local copy_by_os = function(opts)
if vim.env.XDG_SESSION_TYPE == "x11" then
cmd = { "xclip", "-selection", "clipboard", "-t", "image/png", "-i", filename }
else
cmd = { "wl-copy", "<", filename }
cmd = { "sh", "-c", "wl-copy <" .. filename }
end
end
return vim.fn.system(cmd)
Expand Down

0 comments on commit 5a79b22

Please sign in to comment.