Following the implementation of the excellent If Then Else feature , I am recreating a new scene that requires redoing 7 scenes to update the Tempo tariff cost in Gladys.
And I notice that for each If Then Else block, I have the same actions/things to redo.
I can see a duplicate button like the one below to speed up creating repetitive actions:
I cleaned up my votes so I could add one here. But it’s hard to choose
However, @mutmut, in your mockup you also put a « duplicate » button on the conditions block, even though that block is necessarily unique. I think it should be removed.
And furthermore your title says « duplicate an action or a block of actions ». But in the mockup you only put the duplicate button on blocks (top-level blocks or blocks nested inside an if…then…else). Maybe the title should be changed to indeed only mention duplication of entire blocks, no?
And if you actually want to go as far as duplicating actions (inside a block), then it would be logical to also be able to duplicate conditions (inside the conditions section of an if…then…else). But personally that would seem less useful, and a bit heavy in the interface to have duplicate buttons everywhere, so I would limit the functionality to action blocks.
Indeed duplicating all actions is not the primary need because you can easily recreate one and do copy/paste of text if necessary.
That’s why I put a dupliquer only on the Condition Si Alors Sinon action (because it is indeed an action in the Gladys sense if I’m not mistaken).
My goal is to have a duplicate for blocks that can have many actions, and on Condition Si Alors Sinon which can also have many actions.
Well no, in my tuto this « block » (action?) is not unique because I put 6 of them in a row inside 5 identical ones.
If we only duplicate the action blocks and there is a Condition Si Alors Sinon action inside, then this will imply :
either keeping all blocks separate (and which will necessarily run in series),
or we move the Condition Si Alors Sinon to the first action block (to have a parallel execution as I want in my case).
I’d say the second option is the lesser evil given that you don’t have to redo all the actions. I always prefer to delete extra things than to have to recreate the same things each time.
You’re right, so I’ll remove action from my title to leave only the duplication of action blocks (and therefore sub-action blocks?).
@StephaneB would you keep the duplication on block 2, but also on 2.1.A.1. and 2.1.A.2.? Or only block 2? (we remove it on Condition Si Alors Sinon)