Could you make me see my image files on wezterm? #831
soulinland82
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
You can do it by defining your own command. filesystem = {
window = {
mappings = {
["I"] = "image_wezterm", -- "<Leader>p" instead of "I" if you want the same as NvimTree
},
},
commands = {
image_wezterm = function(state)
local node = state.tree:get_node()
if node.type == "file" then
require("image_preview").PreviewImage(node.path)
end
end,
},
}, |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Nvimtree allows to see image files in wezterm using this plugin ( adelarsq/image_preview.nvim ).
But now I stop using nvimtree and now I use neotree so I couldn't use image_preview plugin and I couldn't see images.
I suggest to add these stuffs in neotree without adding preview plugin.
If it is possible, then it is very fantastic!
Beta Was this translation helpful? Give feedback.
All reactions