Replies: 2 comments 1 reply
-
I was trying to do that, but it highly depends on your terminal, so it wouldn't be a universal solution. The plugin you attached works only with Kitty. On top of that, if you use a multiplexer like tmux or something else, it can break this functionality as well. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Now we have snacks.nvim, which integrates well with images. I use this keymap to show snapshots with a preview: vim.keymap.set("n", "<leader>xs", function()
local path = vim.fn.getcwd() .. "/.nvim/xcodebuild/failing-snapshots"
if vim.fn.isdirectory(path) ~= 0 then
Snacks.picker.files({
dirs = { path },
confirm = function(data)
vim.fn.jobstart({"qlmanage", "-p", data.finder.items[1].file}, {
detach = true,
on_exit = function() end,
})
vim.defer_fn(function()
vim.fn.system("open -a qlmanage")
end, 200)
end,
})
else
Snacks.notify.info("No Failing Snapshots")
end
end, { desc = "Show Failing Snapshots" }) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thought you can’t display images in neovim, but turns out it’s possible with this plugin https://github.com/3rd/image.nvim
could be cool to display snapshots like that, and possibly images from assets that way? I remember AppCode displayed them near the line number when you mention image’s name
Beta Was this translation helpful? Give feedback.
All reactions