schemely
schemely copied to clipboard
Inconsistent displacements of code lines
This might be hard to implement, but I think it would be nice to be able to move variable declarations within a let in a structural, not textual way. Let me explain better. If I have the following code:
(let* ((numbers '(3 -2 1 six -5))
(six 6))
And I select the declaration '(six 6)', maybe using the outstanding cmd-W shortcut, I would like to move to the first position in the list of let declarations, as in:
(let* ((six 6)
(numbers '(3 -2 1 six -5)))
So my code is valid. Normally, this is accomplished using the combination cmd-shift-up/down. Alas, this is not context-aware, and it leaves the expression looking really ugly:
(six 6))
(let* ((numbers '(3 -2 1 six -5))
We could think of additional scenarios that might benefit from this type of structural changes.