JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.01k stars 2.37k forks source link

Allow the 16 basic ANSI colors in addition to HEX colors #127

Closed samuelfahrngruber closed 3 years ago

samuelfahrngruber commented 3 years ago

Prerequisites

Description

First of all I totally love this project and it makes using the CLI much more enjoyable for me.

Ok now to the actual idea:

I use oh-my-posh for the powershell which I mainly run inside the windows terminal. Basically there are a couple of nice themes for the terminal, which map the 16 basic ANSI colors to nicer-looking ones.

So I thought about how I could re-use the color scheme from the windows terminal theme in my oh-my-posh theme without copying all the colors over and fine-tuning them there.

The old oh-my-posh used the 16 basic colors which were adapted by the windows terminal theme quite nicely.

In the end i would like to be able to specify the basic 16 ANSI colors in a theme .json like in this example segment:

        {
          "type": "git",
          "style": "powerline",
          "powerline_symbol": "\uE0B0",
          "foreground": "black",
          "background": "lightYellow"
        },

Maybe also using a prefix for color names such as "$black" and "$lightYellow" to make the names more recognizable and easier distinguish between hex and name.

Environment

Other

I would like to contribute the code myself.

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.