Skip to content

[Feature Request] Command to insert child tag at specific location #35

@WardJaeger

Description

@WardJaeger

It would be great if there was a command that could insert a new tag at a specific location within the child list. The specific use case for this would be when adding new choices to an existing event, and the new choice needs to show up somewhere other than at the end of the list. mod-append would not satisfy this case, since it always places the new child tag at the end.

I'm imagining something like this: <mod-insert:XYZ insert-pos="1">. The insert-pos attribute would specify the 0-indexed position of the the new XYZ tag, which in my example would be in position 1 (after the first child tag). All other attributes would be included in the new XYZ tag, just like with mod-append.

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