(map fooz [1 2 3] [:a :b :c])
..but I realize that I should be passing a map and not a vector to fooz as the second arg and I want to be able to remove the innermost square brackets around the keywords :a :b :c. I'm wondering if there's a CCW feature that I'm missing that will allow me to "unwrap" this expression with one keystroke.
The way I do this currently is to select the elements inside of the vector, cut the elements, erase the square brackets, type left curly brace and then copy the elements back. (6 keystrokes)
Here's how I'd like it to work (if it doesn't already exist). Let's say the cursor is between the keywords :a and :b in the following code snippet:
(map fooz [1 2 3] [:a | :b :c])
Hi All,While writing Clojure code I often run into situations where I'd like to "unwrap" an expression (i.e. remove the inner-most parens of the statement where the cursor is). For example, let's assume we're in strict paren mode and I have the following simple function :(map fooz [1 2 3] [:a :b :c])
..but I realize that I should be passing a map and not a vector to fooz as the second arg and I want to be able to remove the innermost square brackets around the keywords :a :b :c. I'm wondering if there's a CCW feature that I'm missing that will allow me to "unwrap" this expression with one keystroke.
The way I do this currently is to select the elements inside of the vector, cut the elements, erase the square brackets, type left curly brace and then copy the elements back. (6 keystrokes)
Here's how I'd like it to work (if it doesn't already exist). Let's say the cursor is between the keywords :a and :b in the following code snippet:
(map fooz [1 2 3] [:a | :b :c])
hitting the magical "unwrap" command would give:(map fooz [1 2 3] | :a :b :c | )with the keywords :a to :c selected so that I could just type "{" and I could transform the vector into a map with two keystrokes.Maybe I'm thinking about this in the wrong way - feedback and insights into other approaches are welcome!thanks,Alex
--
You received this message because you are subscribed to the Google Groups "counterclockwise-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojuredev-use...@googlegroups.com.
To post to this group, send email to clojured...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojuredev-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to clojuredev-users+unsubscribe@googlegroups.com.
To post to this group, send email to clojuredev-users@googlegroups.com.