Feature #28601
closedMultiple stdWrap executed in numeric order
100%
Description
It is already possible to do multiple stdWrap-actions one after each other by chaining them together (nested stdWrap). But for more than a few stdWrap-levels that gets a bit complicated. Also you can't easily remove/copy/reorder those actions.
In several places numerical indices are commonly used (10. / 20. / 30. / ...). It would be a good idea to add such functionality to stdWrap as well.
stdWrap-functions are all non-numeric so this won't conflict with existing/future stdWrap-functions.
Example:
20 = TEXT
20 {
value = *
wrap = a|A
1.wrap = b|B
10.wrap = c|C
2.wrap = d|D
}
Expected result:
cdba*ABDC
(all numeric stdWrap-calls after the regular ones which might fill in data first or the like).
Dependencies:
#19347 is about implementing search/replace-functionality to stdWrap. Current versions of the patch suggest to implement a hierarchy like
abc.stdWrap.replacement {
10 {
...
}
20 {
...
}
}
But that would be a solution only (here) for replacement. With this addition now it would be possible to use the same functionality for all stdWrap-functions and #19347 should be revised to take advantage of this. So a possible new syntax would simply be:
abc.stdWrap {
10.replacement {
...
}
20.replacement {
...
}
}