Yes, unfortunately, this is too much of a specific use case for this to actually get implemented, however I submitted a feature request a while ago about something similar to this. You may want to check it out:
That this isn’t exactly what you asked for, but it seems similar.