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

Could kill sexp also add the killed sexp to the clipboard? #39

Open
orestis opened this issue Jul 1, 2020 · 1 comment
Open

Could kill sexp also add the killed sexp to the clipboard? #39

orestis opened this issue Jul 1, 2020 · 1 comment

Comments

@orestis
Copy link

orestis commented Jul 1, 2020

Thanks for making this, it's works very nice!

One thing I miss from Emacs is not thinking about "delete" and "cut" -> killing a line, sexp etc will automatically add it to the clipboard so you can paste it immediately.

I'm not sure if I can cobble this together myself (I'm a newbie to Atom) by making a command that will "select next sexp" and then "cut", or if this something that lisp-paredit could/should provide.

I'm happy to look into providing a PR for this. Thanks for your time!

@neil-lindquist
Copy link
Owner

jonspalding did most of the work; I'm just the current maintainer.

This is definitely something that lisp-paredit can provide.
One approach would be to use atom.command.dispatch to call the existing "select next sexp" and "cut" commands.

I am against the default deletion commands having this behavior, so it should either use a new of commands or have an option in the settings to enable it. I'm open to thoughts or suggestions, since there are pros and cons to each.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants