abo-abo / avy

Jump to things in Emacs tree-style
1.71k stars 109 forks source link

Add Function for Swapping Lines. #317

Closed LaurenceWarne closed 3 years ago

LaurenceWarne commented 3 years ago

Hi! This PR adds a new interactive function for swapping lines in the user's currently active region, from issue #310. I've sent off for the copyright assignment, though the number of lines added comes to ~exactly 15~ 16.

Thanks, and let me know what you think :slightly_smiling_face:

abo-abo commented 3 years ago

Merged, thanks! I've only changed the name to avy-transpose-lines-in-region, since we rely on transpose-lines and the region to be active.