-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 --show-themes
errs with Pattern not found (press RETURN)
#587
Comments
Ok, I figured out that I should be using Suggestion (if my above understanding is correct): |
I agree. Using consistent terms would be very helpful. |
Hi @docwhat, @vassudanagunta I believe that the terminology is already consistent. It's explained here: https://github.com/dandavison/delta#custom-themes
No, "feature" is a more fine-grained concept than "theme": A theme specifies how to display everything including colors and various features such as line numbers. In contrast a feature is a single feature, such as "line-numbers". If one were to demo line numbers, what colors would you use?
It is intended to be consistent. Please point out inconsistencies and I'll fix them. The definitions are
I'll close this now because I don't think any of us are proposing further development tasks stemming from the discussion, but please do feel free to continue the discussion / suggest ways to clarify this. |
Ah-hah. The distinction between "syntax-theme" vs. "theme" is what was confusing. I had assumed they were the same. Thanks for the explanation! |
Yes, that totally fair, I knew that this would be a bit confusing, but I felt that it was necessary. What delta calls a "syntax-theme" is called a "theme" in bat. But bat doesn't add background (non-syntax) colors, so I felt that delta needed a word for the syntax colors, and also for the overall concept of foreground + background colors + decorations, and I felt that "theme" was the natural choice for the latter. |
I just found my way to this issue after trying the exact
I am aware of |
Hi @jab. "Pattern not found" is a |
LESS and PAGER are unset:
Both with |
Also reproduces with |
Hm, it is working for me. I do suspect this is something in your environment. |
I'm seeing the same
|
What delta versions are you using? @georgevreilly is it occuring only when you pipe content into |
I'm using version 0.16.5, installed by Homebrew. The problem occurs without any pipes. That's how I originally discovered it. |
Ah, right. It's occurring because you don't have any themes loaded. You need to include the themes via your gitconfig; see https://dandavison.github.io/delta/custom-themes.html I'll re-open this to fix that output. |
My [delta]
plus-color = "#012800"
minus-color = "#340001"
# syntax-theme = Coldark-Dark
syntax-theme = ansi
line-numbers = true
features = collared-trogon but there was no [include]
path = /Users/georgevreilly/.config/delta/themes.gitconfig (I already had What are |
Great. Incidentally, I think there's a little flaw in the |
I'm invoking delta as follows:
git --no-pager diff SQUASHED^^^^ SQUASHED^^^ | delta --show-themes
This results in:
If I press
RETURN
or any other key, it enters an empty pager.raw `git diff`
The text was updated successfully, but these errors were encountered: