Allow nested swapping
otommod opened this issue · 1 comments
otommod commented
For example, if I have this:
foo(1, 2, bar(3, 4))
if I have the cursor on 3 or 4 it will switch these as the parameters of bar, so I would have: foo(1, 2, bar(4, 3))
but anywhere else, it would work for foo
.
AndrewRadev commented
Actually, I consider this a feature, and a very important one at that :). You can easily move the bar
call around if you just put the cursor on bar
. On the other hand, if I were to just swap "top-level" (whatever that would mean) items, you'd never be able to swap the 3 and 4 around.