imgcat

package module
v0.0.0-...-ee6a34a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 5 Imported by: 0

README

imgcat

Tool to output images in the terminal. Built with bubbletea

install

homebrew
brew install trashhalo/homebrew-brews/imgcat
prebuilt packages

Prebuilt packages can be found at the releases page

aur
yay -S imgcat

sample output

imgcat https://i.redd.it/65fmdbh1ja951.jpg

sample

files on disk

imgcat *.jpg
  • j, down: next image
  • k, up: previous image

gifs

imgcat supports gifs and yes they will animate on your terminal. The quality of that animation seems largely dependant on your terminal. Kitty runs them best.

svgs

imgcat has experimental svg support.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(urls []string) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL