Original | After M-k (drag-up) |
def main(p=call2(n,
m), |t=call(nest1,
nest2,
nest3), par3,):
pass |
def main(|t=call(nest1,
nest2,
nest3), p=call2(n,
m), par3,):
pass |
Original | After M-k (drag up) |
echo --pr=setm --var temp \
--kwarg2 \
--kwarg3|="value with space" |
echo --pr=setm --var temp \
|--kwarg3="value with space" \
--kwarg2 |
Original | After 2 M-j (drag down) |
if |i < 8 and i > 0 and #comm
i is not None:
pass |
if i is not None and i > 0 and #comm
|i < 8:
pass |
Original | After M-r (raise) |
for i in range(3, 10):
|a = 3 |
|a = 3 |
Original | After M-r (raise) |
if (val := |d.get('k')) is not None:
pass |
if (|d.get('k')) is not None:
pass |
Original | After M-r (raise) |
---
partridges:
count: 1
|location: a pear tree
ecount: 1
t: t |
---
partridges:
|location: a pear tree
t: t |
Original | After M-r (raise) |
---
partridges:
|location: a pear tree
t: t |
---
|location: a pear tree
t: t |
Original | After zrua (raise upper param) |
---
k1: two
k2:
n1: 1
|n2: 2
n3: 3
k3: t |
---
k1: two
k2:
|n1: 1
n2: 2
k3: t |
Original | After zrua (raise upper param) |
k1: two
k2:
n1: 1
|n2: 2
k3: t |
---
k1: two
|n1: 1
n2: 2
k3: t |
Original | After M-c (clone after) |
if True or |call():
pass |
if True or |call() or call():
pass |
Original | After M-C (clone before) |
template <class S, |class B = base_t<S>>
struct cnt_t : public B{}; |
template <class S, class B = base_t<S>, |class B = base_t<S>>
struct cnt_t : public B{}; |
Original | After M-c (clone after) |
echo he \
ll \
|o |
echo he \
ll \
|o \
o |
Original | After M-c (clone after) |
---
- a: 1
- |l:
- my
- list
- b: 2 |
---
- a: 1
- |l:
- my
- list
l:
- my
- list
- b: 2 |
Original | After M-h (extract up) |
def main(v):
if True:
|var = call(t, p)
call() |
def main(v):
|var = call(t, p)
if True:
pass
call() |
Original | After M-l (extract down) |
void f (){
if (i > 0)
|i--;
else
i+=2;
} |
void f (){
if (i > 0)
{}
else
i+=2;
|i--;
} |
Original | After 2 M-h (extract up) |
- t
- a: t
bb:
- temp2
- |temp1
- aa |
- t
|- temp1
- a: t
bb:
- temp2
- aa |
Original | After 2 M-l (extract down) |
xmas-fifth-day:
partridges:
| count: 1
location: 2
a: |
xmas-fifth-day:
partridges:
a:
|count: 1
location: 2 |
Original | After M-s (inject down) |
def main():
|i = 3
while True:
pass
i = 0 |
def main():
while True:
|i = 3
i = 0 |
Original | After M-S (inject up) |
void f (){
i++;
if (i > 0)
i--;
i++;
|i = 3;
} |
void f (){
i++;
if (i > 0)
{
i--;
|i = 3;
}
i++;
} |
Original | After 2 M-S (inject up) |
---
- bb:
t1:
t11: 11
t2:
t22: 22
|a:
- 1
- >-
step
3
- aa |
---
- bb:
t1:
t11: 11
t2:
t22: 22
|a:
- 1
- >-
step
3
- aa |
Original | After zSos (inject up) |
def main():
i = 0
while False:
pass
|v = call(i+1)
i = -1 |
def main():
i = 0
while False:
|v = call(i+1)
i = -1 |
Original | After 2 M-> (slurp) |
def |main():
while True:
call(i)
i = 3
call(3)
v = 2 |
def |main():
while True:
call(i)
i = 3
call(3)
v = 2 |
Original | After M-> (slurp) |
def main():
i = 9
|while True:
pass
i = 3 |
def main():
|while True:
i = 9
i = 3 |
Original | After 8 M-> (slurp) |
---
- aa
- -| 1
- 2
- 3
- 4 |
---
- aa
- -| 1
- 2
- 3
- 4 |
Original | After M-< (barf) |
def main():
|i = 3
while True:
i = call(i) |
def main():
|i = 3
while True:
i = call(i) |
Original | After 2 M-< (barf) |
def main():
|while True:
i = 3
i = call(i)
j = call(i) |
def main():
i = 3
i = call(i)
|while True:
j = call(i) |
Original | After M-< (barf) |
- bb:
t|1: 1
t2: 2
a1: 3
a2: 4
- aa |
- bb:
t|1: 1
t2: 2
a1: 3
a2: 4
- aa |
Original | After M-x evil-ts-obj-convolute |
l.append(|call1()) if pred() else l.append(call2()) |
l.append(|call1() if pred() else l.append(call2())) |
Original | After M-x evil-ts-obj-convolute |
for v1, v2 in l():
call(v1)
if i:
|v = call(v1, v2)
v2 |
if i:
for v1, v2 in l():
call(v1)
v = call(v1, v2)
v2 |
Original | After M-x evil-ts-obj-convolute |
pred() ? l.push_back(|call1()) : l.push_back(call2()); |
l.push_back(pred() ? |call1() : l.push_back(call2())); |