Tab duplication not copying tab vars

It seems that duplicating a tab (Go TABDUPLICATE=full) is not duplicating vars set in tab.vars.
Is this by design ? I would have expected the opposite, but there might be a good reason for the current behavior (event if it's not going to suit my current agenda :slight_smile: ).

I'm not sure duplicating them would make sense in general, since a script might be using them in a way where duplication isn't wanted. OTOH, some scripts may want the duplication...

So it probably makes sense as it is, maybe with a way for scripts to step in and duplicate variables where they want them duplicated. That would probably require extending of OnOpenTab/ OpenTabData so they provide the tab that's being duplicated when applicable. I've made a note to look into that when we have time. Not sure how hard or easy it would be to plumb in but hopefully not too hard.

1 Like

Many thanks.