Comments (11)
@Hultner Thanks for filing this issue. Agreed that bit can be difficult to read in some contexts. Currently, I'd like to avoid config files if possible.
One option is to have "absolute" colors that don't change due to the background however AFAIK that's not possible with https://github.com/c-bata/go-prompt.
Another option is to have two themes a light & dark them that changes based on the terminal background color. Surprisingly this isn't possible with all terminals AFAIK.
from bit.
A popular tool with "pretty" syntax that handles this quite nicely is bat1, they use a $BAT_THEME environment variable which in my opinion is much nicer than a configuration file. They also have built in support of base16.
I'm not very familiar with go but a quick search turned up this library, might not be useful but I'll leave it here anyway.
from bit.
I've added an experimental "inverted" theme. To enable set your env variable:
BIT_THEME=inverted
from bit.
@chriswalz Is this released yet? it still looks just as bad, just slightly different on bit v0.8.2
from bit.
Here's what I see
bit --version
bit version 0.8.2
from bit.
I guess on your end it's the "Selected" color that is problematic. It's possible some colors aren't getting set
from bit.
I've never coded go but I might be able to give it a go and see if I can create something reasonable looking if the build tool chain is easy/fast to set up. Tell me if that would be appreciated.
from bit.
Yes, definitely take a look. Look for the function SuggestionPrompt(
in util.go
.
Once you clone or fork the repo & install go. run BIT_THEME=inverted go run main.go
from bit.
@chriswalz I gave it a go (some Gothenburg humour right there), I made two themes to compare, I think it might turn out better this way since it's not always the same theme that works everywhere. Anyway here's a first screenshot. I took them with night shift on at first so I'm redoing the other colour themes without to give a good picture of how it looks.
The inverted one is more inspired by the original theme, while the monochrome one is just a brutalist minimalist approach and simply uses the defaults.
from bit.
Okay here's a full load of screenshots, I didn't test everything but at least of these two additional themes is readable on every combination I've tried, a good dozen of teams seems reasonable.
from bit.
@chriswalz Added a PR #71
from bit.
Related Issues (20)
- Runtime error on `bit release bump` when no tags HOT 2
- bit save: "EOF found when expecting closing quote" while typing HOT 1
- Feature Request: Fuzzy matching on branch names HOT 3
- feature: Keep the prompt running HOT 2
- keyboard enter not work when i use bit HOT 1
- keyboard has no response HOT 4
- Auto completion on zsh does not seem to work (Docker) HOT 3
- Alias for git switch does not open branch selector HOT 2
- Feature: add suggestions for "bit add" HOT 1
- subcommand info is not suggested when running bit command
- Request to add a github action
- Mode to keep running bit after command has been executed
- Sort branches by recently used
- bit init does nothing
- Feature: add intellij and vscode diff integration?
- Completions crash in fish HOT 6
- Extra space before committed message using 'bit save "commit message"' HOT 6
- Feature request: Completion for nushell? HOT 1
- feature: Integrate git-plus
- fatal: not a git repository (or any of the parent directories): .git HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit.