Skip to content

Conversation

@ninetailedtori
Copy link
Contributor

Addition of hlsearch highlighting - teal as in line with style guide.

Signed-off-by: ninetailedtori <ninetailedtori@uwu.gal>
@sgoudham
Copy link
Contributor

Could you show some screenshots of how it looks like with a search and selection on the same line?

@ninetailedtori
Copy link
Contributor Author

ninetailedtori commented Aug 28, 2025

Could you show some screenshots of how it looks like with a search and selection on the same line?

Ah yes, lemme do that :)
image

Here is an example :) as you can see the highlighting is on the fg, so it's pretty subtle, and since it doesn't collide with another colour, it works quite well.

@sgoudham
Copy link
Contributor

sgoudham commented Aug 28, 2025

How does it look if you select "hlse" with your mouse cursor on line 4, with the hlsearch still active?

@ninetailedtori
Copy link
Contributor Author

image

@sgoudham sgoudham changed the title Fix for https://github.com/catppuccin/micro/issues/13. fix: differentiate hlsearch and selection Aug 28, 2025
@sgoudham sgoudham linked an issue Aug 28, 2025 that may be closed by this pull request
@ninetailedtori
Copy link
Contributor Author

image

Of course, an active selection will override hlsearch and this is intended behaviour, but search already highlights the active one with selection, and that's hardcoded until it gets changed if it ever does :]

@sgoudham
Copy link
Contributor

sgoudham commented Aug 28, 2025

Ah, I forgot that we're probably going to want to remove color-link selection since that was added in #18.

@ninetailedtori
Copy link
Contributor Author

Ah uh- hmm, it doesn't show up as a change in this PR, I made sure to fully rebase to the upstream before adding this commit.

@sgoudham
Copy link
Contributor

sgoudham commented Aug 28, 2025

No, sorry, not in this PR - just generally. Because the selection colour (surface0) is going to be quite weak and/or troublesome on the transparent variants right?

I don't use this editor so sorry if I'm getting anything wrong! Just trying to facilitate contributions as best as possible 😄

@ninetailedtori
Copy link
Contributor Author

Ahhh, right. It's not that bad? Currently it's quite showing up for me.
image

@injust
Copy link
Contributor

injust commented Aug 28, 2025

No, sorry, not in this PR - just generally. Because the selection colour (surface0) is going to be quite weak and/or troublesome on the transparent variants right?

Yup the selection is weaker on the transparent variant -- if you have a bright white window underneath, it's impossible to see.

But at the same time, removing color-link selection entirely would make the normal and transparent variants differ significantly. The default selection (bright white background) is also a bit ugly 😄

Maybe increase the opacity of the selection for the transparent variant?

@ninetailedtori
Copy link
Contributor Author

Yee, I fixed it from that block colour previously, which it was before, super harsh and super ugly, which is why I chose this one to "mimic the transparent overlay2". It works best imo of both worlds haha.

@ninetailedtori
Copy link
Contributor Author

Hmm I'll try choose a different overlay colour for the transparent version, gimme one sec!

@ninetailedtori
Copy link
Contributor Author

image

What about this?

Signed-off-by: ninetailedtori <ninetailedtori@uwu.gal>
@injust
Copy link
Contributor

injust commented Aug 28, 2025

surface1 looks a lot better IMO.

Screenshots

Catppuccin Mocha with Ghostty at background-opacity = 0.9. Bright white window underneath the right split.

surface0:

image

surface1:

image

@ninetailedtori
Copy link
Contributor Author

Sounds good, then we'll keep this one? :]

@sgoudham
Copy link
Contributor

If it's not too much hassle, could you try out Catppuccin Latte with these changes to make sure it looks fine too? @injust

@injust
Copy link
Contributor

injust commented Aug 28, 2025

LGTM!

Screenshot

Catppuccin Latte with Ghostty at background-opacity = 0.9. Grey window underneath the right split.

image

Wow, GitHub compressed the heck out of that screenshot...

Copy link
Contributor

@sgoudham sgoudham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks all!

@sgoudham sgoudham merged commit e5b11b4 into catppuccin:main Aug 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selection and hlsearch are same colour

3 participants