Examples of removing remote text object. Text object selection is done via Avy.
dzaa
is a sequence of command which can be spelled out as:
d
evil delete operator,
z
initiate Avy candidate selection, aa
is a key sequence for parameter outer text object.
Original | After dzaa |
def temp(var, temp=(1,2)):
|pass |
def temp(var):
|pass |
Original | After czaa |
def temp(var, temp=(1,2)):
|pass |
def temp(var|):
pass |
Those actions try to adapt indentation of the inserted thing to the indentation of the current point.
zaem
is a sequence of command which can be spelled out as:
z
initiate Avy candidate selection, ae
is a key sequence for compound outer text object,
m
- avy action for teleporting selected text object.
Original | After zaem |
if True:
if False:
pass
def tempf():
while True:
| |
def tempf():
while True:
|if True:
if False:
pass |
Original | After zaem |
def tempf():
i = 3
while True:
if i > 3:
break
i = 0
| |
def tempf():
i = 3
i = 0
|while True:
if i > 3:
break |