GithubHelp home page GithubHelp logo

shuhei / colortty Goto Github PK

View Code? Open in Web Editor NEW
68.0 3.0 2.0 240 KB

๐ŸŽจ A utility to generate color schemes for alacritty

License: MIT License

Rust 100.00%
color-scheme alacritty command-line-tool cli

colortty's Introduction

colortty

colortty is a utility to generate color schemes for alacritty. It also supports the following conversions:

  • iTerm 2 -> alacritty
  • mintty -> alacritty
  • Gogh -> alacritty

screenshot of colortty list

Installation

cargo install colortty

Usage

colortty - color scheme converter for alacritty

USAGE:
    # List color schemes at https://github.com/mbadolato/iTerm2-Color-Schemes
    colortty list
    colortty list -p iterm
    colortty list -u # update cached color schemes

    # List color schemes at https://github.com/Gogh-Co/Gogh
    colortty list -p gogh
    colortty list -p gogh -u # update cached color schemes

    # Get color scheme from https://github.com/mbadolato/iTerm2-Color-Schemes
    colortty get <color scheme name>
    colortty get -p iterm <color scheme name>

    # Get color scheme from https://github.com/Gogh-Co/Gogh
    colortty get -p gogh <color scheme name>

    # Convert with implicit input type
    colortty convert some-color.itermcolors
    colortty convert some-color.minttyrc
    colortty convert some-color.sh

    # Convert with explicit input type
    colortty convert -i iterm some-color-theme
    colortty convert -i mintty some-color-theme
    colortty convert -i gogh some-color-theme

    # Convert stdin (explicit input type is necessary)
    cat some-color-theme | colortty convert -i iterm -
    cat some-color-theme | colortty convert -i mintty -
    cat some-color-theme | colortty convert -i gogh -"

Development

Install:

cargo install --path .

Build:

cargo build

Test:

cargo test

License

MIT

colortty's People

Contributors

benjaminknox avatar shuhei 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

Watchers

 avatar  avatar  avatar

colortty's Issues

YAML -> TOML (Alacritty V0.13.0)

Alacritty version 0.13.0 will be using TOML instead of YAML, are there plans to update the get command to show the new format?

Add Gogh color scheme support

Hi there. First of all thanks for this helpful utility tool. I don't know if you are willing to push forward and add some more functionality.

Add support for themes in Gogh

Error handling

  • colortty:
    thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libcore/slice/mod.rs:2463:10
    note: Run with `RUST_BACKTRACE=1` for a backtrace.
    
  • colortty get deep:
    thread 'main' panicked at 'Invalid color component name: Alpha Component', src/color.rs:156:42
    note: Run with `RUST_BACKTRACE=1` for a backtrace.
    

Add support for LS_COLORS through vivid

Another nice to have functionality for this tool might be
generating LS_COLORS colors compatible with theme. I personally use vivid for this. Generating vivid color theme file compatible with selected theme would be lovely. It is annoying when ls_colors settings and your terminal colors do not match.

Publish to Cargo

  • Update the usage of hyper (reqwest)
  • List up proper dependency versions

Show color palette of listed themes

When choosing a theme seeing color palette is important if theme is not a well known one. Add an option to show color palette on terminal. Pastel project would be helpful in implementing this.

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.