Slipstream-Mod-Manager icon indicating copy to clipboard operation
Slipstream-Mod-Manager copied to clipboard

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

Open WardJaeger opened this issue 1 year ago • 0 comments

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.

WardJaeger avatar Jan 15 '23 06:01 WardJaeger