| CARBONIAN-VIEW(1) | Carbonian Manual | CARBONIAN-VIEW(1) |
carbonian-view - images and Markdown in the terminal, drawn with sixel
carbonian-view FILE [FILE...]
Shows images and Markdown files in the terminal (foot, and tmux 3.8) as sixel pictures, on the alternate screen like less(1): nothing enters tmux's scrollback, and the page is drawn again when the pane is resized.
An image (png, jpg, gif, webp, bmp, tiff) is one page, fitted to the window keeping its proportion (it also enlarges, up to four times), centred, with a line that says the format, the size in pixels, the size of the file and the size shown. A Markdown file is a run of pages: the text drawn by glow(1) at the window's width, and each local image of the file (, relative to the file) on a page of its own, where it would be. An image on the web (an http or https URL, in the file or on the command line) is fetched only after you say so: the page asks (y this image, s this site for this run, a this site always, n not now), and see view.conf(5). Another kind of link or a missing file stays in the text. Without glow the text is shown as it is.
A 3D plot made by carbonian-notebook (a matplotlib figure: its picture has a .fig3d file beside it) can be turned in the viewer. The page says Enter: turn the 3D plot; Enter grabs it, and until it is let go the keys are the plot's, not the pages'. The picture is drawn again at each new view; keys and mouse events that arrive together are added up and drawn as one frame. Every frame has the full size and replaces the last one only when it is done.
Only a .fig3d of your own, not writable by others nor by a group that is not yours, is opened, because it is a pickle and a pickle runs code. R figures and the pictures saved in a notebook file have no .fig3d and stay pictures.
view.conf(5), carbonian-notebook(1), glow(1), tmux(1)
| Carbonian |