abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.2k stars 132 forks source link

Change the delimiters of a sexp #568

Open rosekunkel opened 3 years ago

rosekunkel commented 3 years ago

Is there a lispy command that can change the delimiters of a sexp? I checked the reference but if it's there I couldn't find it. The behavior I'm looking for is something like this:

(foo |(bar baz))

Type some-lispy-command [ to get:

(foo |[bar baz])

The equivalent smartparens command is sp-rewrap-sexp. If there isn't a command to do this already, I'd be willing to submit a pull request to add it.