AmaiKinono/puni

puni-join command like split

MicahElliott opened this issue · 2 comments

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?

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

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.