Let's say I have the following method:
def foo(hello, world, ohai):
pass
Now I put my cursor on the first 'h' in 'hello'. After calling ArgWrap the code (as expected) becomes the following:
def foo(
hello,
world,
ohai,
):
pass
However, my cursor is on the opening parenthesis rather than the 'h' of hello. Now if put my cursor on the 'h' again and call ArgWrap, my cursor stays in the same place in the file and is therefore hovering over 'pass'. Therefore, I can't simply toggle ArgWrap back-and-forth because I have to move my cursor in between the calls.
It'd be great if the cursor tracked the argument that you're hovering over (or at the very least remained within the parenthesis) so that it was easier to toggle between the states.
Let's say I have the following method:
Now I put my cursor on the first 'h' in 'hello'. After calling ArgWrap the code (as expected) becomes the following:
However, my cursor is on the opening parenthesis rather than the 'h' of hello. Now if put my cursor on the 'h' again and call ArgWrap, my cursor stays in the same place in the file and is therefore hovering over 'pass'. Therefore, I can't simply toggle ArgWrap back-and-forth because I have to move my cursor in between the calls.
It'd be great if the cursor tracked the argument that you're hovering over (or at the very least remained within the parenthesis) so that it was easier to toggle between the states.