Comments (9)
I tried again with GNOME terminal this morning and it is working as expected. Maybe I didn't start a new session or something last night after trying to force the dark theme. Sorry about that. So that just leaves Zellij.
The workaround of setting dark = true
in the .gitconfig
works, though! Thanks!
from delta.
That's great to hear! I was worried there for a second since GNOME Terminal always worked well in my experience π
from delta.
Hi @EbonJaeger, sorry about that. Please add dark = true
or --dark
to your delta config / invocations to force colors for dark backgrounds.
delta in 0.17.0 should autodetect in the absence of the light/dark
setting. I wonder if it could be an issue with Zellij cc @bash -- any thoughts?
from delta.
I'm seeing the same issue but only when I'm inside a tmux
shell. Outside tmux
it works fine.
from delta.
Hi @EbonJaeger π Thank you for reporting the bug!
In your GNOME Terminal setup, are you running Bash inside of Zellij or directly in GNOME Terminal?
I would be surprised if the issue happened in GNOME Terminal directly as it has always correctly reported colors in my experience.
@dandavison From a quick glance and some preliminary tests it does seem like Zellij reports incorrect colors (happens to me both in Alacritty and GNOME Terminal). If will try to dig further next week or so.
from delta.
@rsmmr What version of tmux are you running? Color detection should work OK in the latest version from git iirc.
from delta.
@bash I was not using Zellij or tmux in GNOME terminal; just straight Bash. I'll try the workaround later. π
from delta.
I've hit this too. It works fine in tmux, but not in zellij. What's more annoying is that the new --detect-dark-light
flag cannot be set through gitconfig, which means my only option is to force dark on all the time instead of letting it infer from my theme.
from delta.
Also I will note that Zellij sets a few env vars that can be used to detect that we're running in Zellij.
from delta.
Related Issues (20)
- π --navigate n/N jumps to next/prev hunk, not file? HOT 3
- RUSTSEC-2024-0320: yaml-rust is unmaintained.
- π Incorrect syntax-highlight with comment tag "#"
- π [Docs] Show the default config values HOT 1
- π Extra newline before diffs
- π Empty diff for proc files
- [Feature Request] Show percentage of how far the entire diff has been read
- `git grep -l` replaces first `-` with a `:` HOT 1
- Not working in Ubuntu 22.04 as intendedπ
- π inserted/deleted blank lines are sometimes hard to see
- Specify light and dark themes simultaneously, and auto-switch based on system appearance HOT 1
- π ripgrep JSON output causes panic with UTF character
- π PAGER env variable will omit command line parameters
- Weird EOL characters in side-by-side diff output ( ^[[0K )
- π Mouse scroll not working in jetbrains ide's terminal
- π output using html <ins> and <del> tags
- π Printing special terminal control characters "^[]11;rgb:0000/0000/0000^G" HOT 2
- π Memory allocation error for non root user HOT 1
- π Dark theme doesn't seem to be working HOT 2
- π Show when a directory as a whole was renamed, instead of each file inside it
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 delta.