Skip to content

Arrange tags in sub-directories to utilise the group feature from tags.py #2423

@Ibrahim2750mi

Description

@Ibrahim2750mi

According to these lines

# Files directly under `base_path` have an empty string as the parent directory name
tag_group = parent_dir.name or None

tag_group will be None until the tag is in a sub-directory inside bot/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:
2023-03-02_03-41
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: tagsRelated to bot tagsp: 2 - normalNormal Prioritys: planningDiscussing detailst: enhancementChanges or improvements to existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions