Skip to content

Inconsistent behavior between lispy-up-slurp and lispy-down-slurp #7

@rvadhavk

Description

@rvadhavk

lispy-down-slurp ignores intermediate sibling sexprs that aren't lists, but lispy-up-slurp slurps all sexprs between the current list and previous sibling list.
For example
'((a) b (c)| d) lispy-up-slurp yields '((a b (c)|) d) (both b and (c) are slurped).
'((a)| b (c) d) lispy-down-slurp yields '(b ((a)| c)) d) (only (a) is slurped, b is ignored).

I think the behavior of ignoring non-list sexps aligns best with the documentation. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions