puni-join command like split
MicahElliott opened this issue · 2 comments
MicahElliott commented
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 commented
What does join
do? Is it the same as puni-slurp-forward
?
AmaiKinono commented
Puni has split
but no join
. The reason:
- Puni implements
up-list
but nodown-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.