Skip to content

adding tags for path components #4

@bgctw

Description

@bgctw

How can I refer to parts of the path pattern when specifying the tag in the plugin options?
I tried something similar to capture groups in regex but did not succeed.
resource/([^/]+): \1
resource/[^/]+/([^/]+): \1

E.g When I create a note in <myvault>/resource/bgc/bgc-logbook I want the following tags to be added:

#bgc
#bgc-logbook

I have no experience in javascript or typescript, but some regexp matching seems to be possible according to this post

I want to create a tag for each path component. This might by probably easier implemented as a separate plugin that does not need to parse config rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions