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

[ENH] add :auto-matching-tags or :auto-tags-regex #257

Open
nickgarber opened this issue Mar 11, 2024 · 5 comments
Open

[ENH] add :auto-matching-tags or :auto-tags-regex #257

nickgarber opened this issue Mar 11, 2024 · 5 comments

Comments

@nickgarber
Copy link

:auto-tags
    This automatically groups items by all of their tags (i.e. items with exactly the same tags, in any order, will be grouped together).

Would love to have a version of the above that only groups on tags that match a regex. This would allow lots of nice structure, such as grouping agenda by project, (where projects tags follow the pattern P@.* or proj@.*) among other things.

@alphapapa
Copy link
Owner

Hi Nick,

Sure, that seems like a good idea. Would you be able to send a PR to implement this? I'd be glad to provide feedback as you develop it.

@nickgarber
Copy link
Author

From what I understand the hierarchical scheme described in the documentation for Hierarchical Tags is not fully implemented, but this would produce some of the same effects.

@nickgarber
Copy link
Author

Hi Nick,

Sure, that seems like a good idea. Would you be able to send a PR to implement this? I'd be glad to provide feedback as you develop it.

Yeah, for sure!

@nickgarber
Copy link
Author

By the way, any preference for which name to use?

@alphapapa
Copy link
Owner

Seems like my email replies are not showing up on GitHub issues. :/

Anyway, I'd suggest :auto-tags-match, which is slightly more concise, and fits well with Emacs's regexp-matching terminology (e.g. string-match).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants