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

support slurp and barf from paredit #115

Open
lukehoersten opened this issue Sep 23, 2015 · 2 comments
Open

support slurp and barf from paredit #115

lukehoersten opened this issue Sep 23, 2015 · 2 comments

Comments

@lukehoersten
Copy link

Support slurp and barf to bring the next nodes in and out of the current node scope. This would work for things like () and [] as well as do notation scope changes.

@jaen
Copy link

jaen commented Feb 19, 2016

I know +1s don't offer all that much value, but this seems like an essential feature. Point in case follows:

I decided to finally start learning Haskell for real and - having been doing Clojure recently - I thought this kind of editing could be nice in Haskell as well.
Was writing a naive quicksort to get to grips with spacemacs' Haskell layer (didn't use emacs before) and forgot to put pivot in a list, so I wanted to do [|] pivot (| being the cursor) and slurp from there, like in Clojure, but it seems there's no command for that.

So, +1 on that, since it feels like something natural to structural editing that's missing. Though it's probably harder to implement in a more syntaxed language like Haskell.

@emmanueldenloye
Copy link
Contributor

You could use smartparens-mode (the non-strict version) to get the desired behaviour.

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

3 participants