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

Improve support for kill-whole-line #68

Open
hpfr opened this issue Nov 17, 2024 · 0 comments
Open

Improve support for kill-whole-line #68

hpfr opened this issue Nov 17, 2024 · 0 comments

Comments

@hpfr
Copy link

hpfr commented Nov 17, 2024

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!

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

1 participant