Giter VIP home page Giter VIP logo

iterm2-imagetools's Introduction

Display images in iTerm2

This tool implements the iTerm2 image support as described here. It supports both local files as well as images loaded via http(s).

Be sure to install the latest version of iTerm2.

imgcat

imgcat

gnuplot+imgcat

imgls

Installation

To install imgcat, you should have a recent version of Go (1.21+ at the time of writing this), and type:

go install github.com/olivere/iterm2-imagetools/cmd/imgcat@latest

To install imgls, type:

go install github.com/olivere/iterm2-imagetools/cmd/imgls@latest

The binaries then get installed into the $GOPATH/bin directory (or $HOME/go/bin if GOPATH is not set; see go help install), which you can add to your $PATH.

License

MIT-LICENSE. See LICENSE or the LICENSE file provided in the repository for details.

iterm2-imagetools's People

Contributors

cwww3 avatar olivere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iterm2-imagetools's Issues

Installation fails

I'm don't know golang and I'm stuck. I've installed go with homebrew and executing the install command leads to this error message.

➜  go install github.com/olivere/iterm2-imagetools/cmd/imgls
can't load package: package github.com/olivere/iterm2-imagetools/cmd/imgls: cannot find package "github.com/olivere/iterm2-imagetools/cmd/imgls" in any of:
/usr/local/Cellar/go/1.6.2/libexec/src/github.com/olivere/iterm2-imagetools/cmd/imgls (from $GOROOT)
($GOPATH not set)

What did I miss?

updated go installation method.

I recently tried this per the readme.

> GO111MODULE=on go get -u github.com/olivere/iterm2-imagetools/cmd/imgcat                                                                  7.8s  Thu May 19 18:23:23 2022
go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.
❯ go version                                                                                                                                       go version go1.18.2 darwin/amd64

So I did this, and it worked.

GO111MODULE=on go install  github.com/olivere/iterm2-imagetools/cmd/imgcat@latest

feature request

It would be awesome if I can display the image of the url on the Internet. 👍

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.