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

puni-join command like split #52

Open
MicahElliott opened this issue Jul 7, 2023 · 2 comments
Open

puni-join command like split #52

MicahElliott opened this issue Jul 7, 2023 · 2 comments

Comments

@MicahElliott
Copy link

Is there any equivalent to puni-join? I'm coming from smarparens and often use split and join, but was surprised to see there is no puni-join. Is it called something else in puni?

@WorldsEndless
Copy link

What does join do? Is it the same as puni-slurp-forward?

@AmaiKinono
Copy link
Owner

Puni has split but no join. The reason:

  • Puni implements up-list but no down-list
  • So Puni knows the exact delimiters when inside a sexp, but doesn't know the delimiters of sexps around the cursor.
  • So Puni could split the sexp when the cursor is in it, which is just inserting a pair of the delimiters, but Puni could not join the sexps around the cursor, which involves deleting a pair of delimiters.

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