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

Offset initial image generation position in config settings

Open MikeLemo1 opened this issue 2 years ago • 2 comments

When I render centain images in bash tmux and ueberzug the image generates ~ 6 columns too high so I'd like to lower it similar with the image:move(0, 6) command but for every image that gerts rendered in markdown, Is there a config settings to change offset position generation per image preview? It does seem to create the right amount of total "Empty lines space" for displaying the image without obstructing text data but the image needs to be offset lower though

BTW function to toggle image views for hide/show with a single button would be nice too

MikeLemo1 avatar Apr 11 '24 09:04 MikeLemo1

+1 for this.

To be clear, it would be nice to provide a default column for insertion of the image which currently is taken to be the first.

That way, the image can be "centered" or "right aligned". Currently it is only left aligned.

A related (and probably more difficult) request is the ability to write alongside the images, which would require nvim to give actual lines to the image region. This can be very useful in maximising use of screen. For example, by using wrapmargin to have soft line breaks in the text, all the sentences can be left aligned and all the images could go on the right side.

physicophilic avatar Sep 15 '24 07:09 physicophilic

Yeah it'd be nice if you could also align the image in relation to the screen and other text along with it maybe even have it being interpreted in CSS similar to html pages as markdown also renders html with jinja2 etc... But still as of today using it with aerial and breadcrums plugins is still buggy and should be fixed with something similar to calculating the amount of colums those plugins generate at each frame and offset comphensate the image render accordingly, if the offsets.lua of image.nvim you can manually adjust the image offset but it doesn't work dynamically with aerial etc....

MikeLemo1 avatar Oct 18 '24 07:10 MikeLemo1