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

New configuration API #3

Closed
7 of 8 tasks
joshgoebel opened this issue Jun 4, 2022 · 1 comment
Closed
7 of 8 tasks

New configuration API #3

joshgoebel opened this issue Jun 4, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@joshgoebel
Copy link
Owner

joshgoebel commented Jun 4, 2022

@joshgoebel
Copy link
Owner Author

joshgoebel commented Jun 5, 2022

Need some match helpers now to avoid ugliness like this:

    conditional(lambda ctx: re.compile("Firefox").search(ctx.wm_class),
        keymap("Firefox",{
            K("C-M-j"): K("C-TAB"),
            K("C-M-k"): K("C-Shift-TAB"),
        })
    )

Since now the requirement is we always pass a function, we may need a few helpers to tidy this up.

IE:

conditional( wm_class_matches_regex("Firefox"), # ...

Or something... We can't just pass raw regex around anymore because the target isn't clear... device name? wm class? wm name (soon)? other?

@joshgoebel joshgoebel self-assigned this Jun 5, 2022
@joshgoebel joshgoebel added the enhancement New feature or request label Jun 6, 2022
@joshgoebel joshgoebel added this to the 0.5.0 milestone Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant