Skip to content
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

Add fuzzy search option #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add fuzzy search option #46

wants to merge 1 commit into from

Conversation

Zynton
Copy link

@Zynton Zynton commented Aug 23, 2022

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.

@CastixGitHub
Copy link
Contributor

Hi @Zinston, can you please explain the issue?

Also, notice you removed ignorecase for the standard behaviour

@Zynton
Copy link
Author

Zynton commented Aug 25, 2022

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.

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.
@CastixGitHub
Copy link
Contributor

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?

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.

2 participants