Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alt+<up,down> arrow inside map destruction is not working properly #1737

Closed
armed opened this issue May 23, 2022 · 2 comments
Closed

alt+<up,down> arrow inside map destruction is not working properly #1737

armed opened this issue May 23, 2022 · 2 comments

Comments

@armed
Copy link
Contributor

armed commented May 23, 2022

It moves keys in pairs (kv) as in plain maps.

For example I can’t move b to third position in place of c (alt+down)

(let [{:keys [a |b c d]} my-map]
   ;; ....)

currently it changes to this:

(let [{:keys [c d a |b]} my-map]
   ;; ....)

but should:

(let [{:keys [a c |b d]} my-map]
   ;; ....)
@armed
Copy link
Contributor Author

armed commented May 23, 2022

@armed
Copy link
Contributor Author

armed commented May 23, 2022

And it doesn't happen with function args

(defn foo [{:keys [c |d a b]}]
    nil)

Here I can move d behind a

armed added a commit to armed/calva that referenced this issue May 23, 2022
@armed armed mentioned this issue May 23, 2022
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant