Skip to content

Added filtering by window title regex to blacklist and whitelist - #183

Open
olegtarasov wants to merge 5 commits into
FelixKratz:mainfrom
olegtarasov:regex
Open

olegtarasov wants to merge 5 commits into
FelixKratz:mainfrom
olegtarasov:regex

Conversation

@olegtarasov

@olegtarasov olegtarasov commented Nov 4, 2025

Copy link
Copy Markdown

Full disclosure: I vibecoded this feature with Codex from OpenAI.

I encountered a problem while using JankyBorders with JetBrains IDEs: tooltips windows get a border. This is not a desired behavior for me, especially when hovering on filenames in project explorer:

clion_problem1 clion_problem2

So I really needed some kind of way to blacklist only certain windows, not the entire app. Filtering by window title regex looks like a solution to this problem, so I tried to add this feature while preserving backward compatibility.

Now several rules can be specified for both blacklist and whitelist. If there is only the app name, the filter behaves like before. But you can also specify multiple rules for a single app with additional regex filters for window title, like this:

borders style=round width=10 hidpi=on active_color=0xffd36151 inactive_color=0x00000000 blacklist="clion:^$"

This example fixes the problem that I had with JetBrains IDEs:

clion_fixed1 clion_fixed2

EDIT: After completing the PR, I looked at other PRs in this repo and found another solution for JetBrains IDEs :) Well, regex filtering still looks like a useful feature, so I'll leave my PR for your consideration as well.

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.

1 participant