-
-
Notifications
You must be signed in to change notification settings - Fork 675
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
Arrange tags in sub-directories to utilise the group feature from tags.py
#2423
Comments
The intent was to sort tags into groups and sub-directories but no one has taken it up yet. I'm firmly against removing this feature just because we haven't used it yet. For instance, all the d.py related tags can go into a subdirectory, it just requires someone making that PR |
This is the reason I made the issue(if there already an issue for this, then I am sorry), I could sort them up in the sub-directories. But first I think we need to finalise the groups we are going to have. I am thinking something along these lines.
I feel like there can be more groups added to lighten up |
tags.py
tags.py
I don't think we need to create groups for every single tag or for most tags. Any additional grouping we add means you need an additional term to invoke it. With your proposal, calling the pep8 tag would be For me, the group names that make sense are:
Also, I don't believe this solves the aliases being listed issue. It just sorts the duplicated names for tags, it doesn't reduce the total clutter or duplicate-nature of it. There is an existing issue for utilizing the tag groups as well for some specific tags: Side note: it seems the slash command for tags wasn't tested with tag groups, because the functionality of tag groups has been changed and is no longer really working. It was working when I was testing it with the alias feature though. |
Can't we do something like we only require the group name for triggering some specific group tags, an example would be dpy and use the other groups to list the tags in the embed more cleanly? We can check if the Also for the slash commands I think we can make it probably ignore all the groups and use the tag name directly. |
I like the idea of having an enforceable tag group vs not. It lets us keep things a bit organized without sacrificing fast tag invoking, but if needed we can still de-conflict tag invocations. Will probably need a core dev weigh in as it changes the original scope/intent of the feature. I think the slash command should match whatever the |
I think we are on the same page now. |
Currently, the new Also, do we want to categorize tags on the site into different urls? |
As Janine pointed out, the tag functionality was greatly reduced with the slash command migration. I’m guessing slash commands don’t allow you to enter invalid commands? That is in part how we were handling tag matching before slash commands (its in the error handler). If we can’t reimplement this flexibility with the slash-commands, then I don’t think this is a good use case for them, and we might be better off reverting these changes. Slash command benefits don’t outweigh the flexibility. |
According to these lines
tag_group
will be None until the tag is in a sub-directory insidebot/resources/tags/
eg:bot/resources/tags/fstring/fstring.md
and currently we don't have sub-directories in the folder.Moving them to sub-directories might also solve #2345 as then the aliases will be listed as bullets under the directory name eg:
NOTE: I have kept the directories name as same as the .md(s) here, it could look a lot better if used correct names in parent bullet.
My suggestion is either we nuke them or sort the tags in the directory to use the group functionality of the code.
The text was updated successfully, but these errors were encountered: