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

Automatic grouping based on tags/names #13

Open
arp242 opened this issue Jul 30, 2018 · 0 comments
Open

Automatic grouping based on tags/names #13

arp242 opened this issue Jul 30, 2018 · 0 comments

Comments

@arp242
Copy link
Contributor

arp242 commented Jul 30, 2018

Would be best if we could add rules for this, for example:

autogroup Desk name^=desk
autogroup Desk tags*=teamwork-desk

Using CSS attribute selectors may be a good idea?

https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors

Maybe make a generic matching library that can be called as:

matches := cssmatch.Match("tags^=desk", []map[string][]string{
    map[string][]string{"tags": []string{"desk"}},
    map[string][]string{"tags": []string{"projects"}},
})

Or maybe something like that already exists?

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

No branches or pull requests

1 participant