How to efficiently lift multiple list items?

Let’s say I have a numbered list with 100 items and 98 of them are selected. How can I apply the lift transform on these selected items efficiently?

I tried using ‘nodesBetween’, but when I apply the transform, it changes the selection. So I am recursively calling ‘nodesBetween’ to lift the selection. Is there a more efficient way to do this?

Not really. Since the individual items have to be unwrapped (removing the list item) as well as lifted, a single step can’t express lifting them all, and you need one step per item.

1 Like