iron.nvim icon indicating copy to clipboard operation
iron.nvim copied to clipboard

[feature request] images in REPL

Open rwijtvliet opened this issue 8 months ago • 1 comments

Running code in the ipython buffer created with iron, I noticed that images are not being drawn:

image

Whereas the same code in the terminal proper does draw the images:

image

From what I gather, there is an issue displaying images in the terminal buffer in vim. Yet, some plugins (e.g. magma) are able to draw images (maybe because they are not inside a terminal buffer?).

Either way, my feature request is to show images in ipython for sixel or kitty-image-protocol enabled terminals. Maybe using https://github.com/3rd/image.nvim ?

(I think it's not relevant, but my iron config in the first screenshot is:

      iron.setup {
        config = {
          scratch_repl = true,
          repl_definition = {
            sh = {command = { 'zsh' }},
            python = {
              format = require('iron.fts.common').bracketed_paste,
              command = { 'ipython', '-i', '--no-autoindent', '--nosep' },
            },
          },
          repl_open_cmd = require('iron.view').split.vertical.botright(0.40, {winfixwidth = false, winfixheight = false, number = true}),

PS: See this question on stackexchange for an overview of the options that I have tried.

rwijtvliet avatar Jun 24 '24 10:06 rwijtvliet