-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
Describe the bug
Similar to #92 when I paste an image (I have pngpaste installed) it creates an empty .png image instead.
Here is my config
{
'https://github.com/hakonharnes/img-clip.nvim',
event = 'VeryLazy',
cmd = { 'PasteImage', 'ImgClipDebug', 'ImgClipConfig' },
ft = { 'markdown', 'codecompanion' },
keys = {
{
'<C-p>',
vim.cmd.PasteImage,
noremap = true,
desc = 'Paste image from system clipboard',
},
},
opts = {
default = {
file_name = '%Y-%m-%d-%H-%M-%S',
prompt_for_file_name = false,
},
filetypes = {
markdown = {
url_encode_path = true,
template = '',
},
},
},
},
Steps to reproduce
Steps to reproduce the behavior:
- Open a file (in my case a markdown file)
- Copy the image to your clipboard
- Paste the image with the keymap
- See that the new image created is an empty image
Expected behavior
To get the correct image
Screenshots
Kapture.2025-04-15.at.12.01.00.mp4
Desktop (please complete the following information):
- OS:
macOS Sequoia 15.4 - Neovim version:
0.11 - Terminal: Ghostty (I tested in Kitty too) both with and without
tmux