Could be done like making you're own "Reveal" function.
If elements are temporary hidden but a few no longer should be then the following workflow in API could do it:
Command A:
1. retrieve all temp. hidden elements, and save the Id's in a shared list
2. restore all elements (reset the temp. hidden state)
3. save the view id (and/or doc Hash) in a shared variable (could be combined with the Shared list of 1, this way the function could work on multiple views, a custom class that holds this info)
Command B:
1. Ask for elements to no longer be temp. hidden (highlight the hidden elements or something, or even hide all other elements...
2. afther this apply the original temporary hidden state but first remove the id's above form the Shared list.
(Correct shared list should then be retrieved from the view id + doc hash, doc hash to support multiple documents for this command)
I have something like this, but for selections themself (sort of virtual selection, to which elements can be added, removed, combined/union operation etc. without having the selection active)
OR just use "Select Previous" after resetting the emporary hide state manually in the UI.
As long as the esc. button wasn't pressed that option is available (right -click in view, in menu select "Select previous". After this the selection can be edited (add element) and Temp hide/isolate can be used.
- Michel