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

Implement paredit drag up/down #500

Closed
bdevel opened this issue Dec 2, 2019 · 1 comment
Closed

Implement paredit drag up/down #500

bdevel opened this issue Dec 2, 2019 · 1 comment

Comments

@bdevel
Copy link

bdevel commented Dec 2, 2019

@PEZ Thanks for the paredit push left/right.

I also recommend adding drag-down which will move an item that has a list to the left, into the list as the first item. You could then push-right to desired position.

  • drag-down: (let *x* [a 1]) to (let [*x* a 1])

The drag-up would move an item out of a list and placed to the right of it.

  • drag-up: (let [a 1 *x*]) to (let *x* [a 1]).

With those two added, anything can be created with structural edits. The only other drag I can think is drag-next and drag-prev which is indifferent to boundaries.

  • drag-prev: (let [a 1 ] *x*) to (let [a 1 *x* ])
  • drag-next: (let [a 1 *x* ] ) to (let [a 1 ] *x* )

BTW, this are comparable to clojure.zip zipper up/down, left/right, next/previous.

@PEZ
Copy link
Collaborator

PEZ commented Dec 2, 2019

Thanks for these suggestions. I'll implement them all. 😄

About drag-prev/next. They look a bit like the movement commands Forward Down/Up , so I think I'll name it something like that.

@PEZ PEZ mentioned this issue Dec 15, 2019
22 tasks
@PEZ PEZ closed this as completed in b899044 Dec 25, 2019
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

2 participants