ccw-ide / ccw

Counterclockwise is an Eclipse plugin helping developers write Clojure code
https://github.com/laurentpetit/ccw/wiki/GoogleCodeHome
Eclipse Public License 1.0
218 stars 49 forks source link

feature request: re-ordering elements in a form. #867

Open gilch opened 8 years ago

gilch commented 8 years ago

Editing syntax trees feels clunky without this feature, but I can't find a way to make CCW do it. I have to resort to the error-prone manual copy-paste.

CCW needs something like lispy-move-down(up) or Cursive's Move Form Down (Up), or at least Paredit's transpose, though that's not quite as capable.

It would work something like this:

; || is selection
(1 2 |(3 4)| 5 6)
; move down
(1 2 5 |(3 4)| 6)
; move down
(1 2 5 6 |(3 4)|)
; make a new selection
(1 2 |5 6| (3 4))
; move up
(1 |5 6| 2 (3 4))
; etc.