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

feature: Allow filtering objects in templates thanks to labels #164

Open
pawamoy opened this issue May 15, 2024 · 0 comments
Open

feature: Allow filtering objects in templates thanks to labels #164

pawamoy opened this issue May 15, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@pawamoy
Copy link
Member

pawamoy commented May 15, 2024

Is your feature request related to a problem? Please describe.

I'm working on a custom template for another project and I find myself in need to filter functions of a class based on their labels. Since I can't, and since I have to iterate twice on the functions, I have to use a condition on the labels twice.

Describe the solution you'd like

Probably add a parameter to filter_objects to accept labels. They should all be present, just like Griffe's Object.has_labels.

Describe alternatives you've considered

Checking labels in conditions.

Additional context

qtile/qtile#4612

@pawamoy pawamoy added the feature New feature or request label May 15, 2024
@pawamoy pawamoy self-assigned this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant