Skip to content

Improve support for kill-whole-line #68

@hpfr

Description

@hpfr

Hi, thanks for making Puni, I appreciate the philosophy behind it.

One thing that’s been bothering me is that with kill-whole-line set, puni-kill-line correctly kills through \n but then puts point at the start of the next expression instead of remaining at column 0. This means the next invocation of puni-kill-line will not kill through \n, so you have to press C-k twice per line or alternate C-a and C-k as you would if kill-whole-line were unset.

I’m used to kill-whole-line enabling me to repeatedly C-k to quickly kill multiple lines, where n presses of C-k results in n killed lines.

Of course, soft deletion should take precedence. So when there is a closing delimiter on the current line, puni-kill-line should still stop there. But outside of that case, I would like puni-kill-line to keep point at column 0, so that while inside a balanced expression, each C-k kills a full line while at column 0.

Does this make any sense? Thanks!

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