I use org-metadown to swap two elements of a list in org mode, and I'd like to swap any two org mode lines.
I've found this snippet: [Using M-up and M-down to transpose paragraphs](https://orgmode.org/worg/org-hacks.html#orgcb907ce) : however it moves the whole org-element (for example a paragraph), and I want something simply line-based. I've tried to define this hook:
(add-to-list 'org-metaup-hook
(lambda () (interactive) (prog2 (transpose-lines 1) (previous-line 2))))
(add-to-list 'org-metadown-hook
(lambda () (interactive) (progn (next-line 1) (transpose-lines -1) (previous-line 1))))
But is doing strange things and I don't understand transpose-lines very well. It seems like there is no way for the cursor move along with the line you are moving up and down.
Is there a simpler way to do this?