i3-workspace-names-daemon icon indicating copy to clipboard operation
i3-workspace-names-daemon copied to clipboard

Add fuzzy search option

Open Zynton opened this issue 3 years ago • 3 comments

This adds an option --fuzzy or -f to match the keys in the config in a fuzzy way. Makes it possible to for instance change browser icons when it's open on a Youtube tab.

Zynton avatar Aug 23 '22 23:08 Zynton

Hi @Zinston, can you please explain the issue?

Also, notice you removed ignorecase for the standard behaviour

CastixGitHub avatar Aug 24 '22 08:08 CastixGitHub

Hi @CastixGitHub, good catch about the ignorecase, I'll fix it. I wanted to use this to change the icon in some cases when the title of the window changes. For instance, if I use Whatsapp in the browser, the icon changes to the Whatsapp icon. This gets trickier with things like Youtube, when the page title includes Youtube but also the title of the video. So I made this option to just match loose keywords in the title and I thought I'd share it.

Zynton avatar Aug 25 '22 06:08 Zynton

Ok, did you check the title transform available from this fork? https://github.com/i3-workspace-names-daemon/i3-workspace-names-daemon/blob/master/README.md#193

I think your issue should be covered by that, otherwise, could you add tests?

CastixGitHub avatar Aug 25 '22 11:08 CastixGitHub