-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Underline highlighted lines in ANSI theme #1985
Conversation
847d07b
to
31404f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! I like the first commit - despite it being specific for the ANSI theme and hard-coded, it is very simple. I have a few concerns about the second commit's approach, namely it seems weird to use a "custom" scope selector as a global setting, so I'd be interested to hear what the other maintainers think :)
c38883c
to
13f35bc
Compare
This PR still has a change in |
13f35bc
to
95c9291
Compare
@sharkdp I had overlooked that! removed that change 👍 |
Would you mind adding a simple regression test for this change please? It is useful not only preventing regressions, but also to make it clearer what the use case is and how it works. It would be great if you could set Approved on this when you think it looks good @keith-hall (when you have time, of course). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. But I agree with @Enselic that a regression test would be great.
95c9291
to
57adeac
Compare
Yes definitely, good call. I just added a test, and while doing so realised it actually had a bug with Also moved changelog entry to Unreleased section. |
57adeac
to
433b8b7
Compare
@sharkdp I think this is ready to be merged |
Hey 👋
I have attempted to fix this in two ways: the first commit is a simple, ANSI-specific condition.
The second commit is using a custom scope to allow each theme to customise how the highlighted line's font style is set.
Let me know what you think and I can squash to a single final commit.
Fixes #1730