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

Add support for Ctrl+U to delete line backwards #230

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

maximbaz
Copy link
Contributor

It is common behavior of Ctrl+U to delete line backwards, so I wanted to have support for it in gurk.

The desired behavior is as following. Given text (cursor indicated as |):

aaaaaaaaaaaa
bbbbbbbbbbbb
ccccccc|ddddd

Pressing Ctrl+U should result into:

aaaaaaaaaaaa
bbbbbbbbbbbb
|ddddd

Pressing again should result into:

aaaaaaaaaaaa
bbbbbbbbbbbb|ddddd

Then:

aaaaaaaaaaaa
|ddddd

Then:

aaaaaaaaaaaa|ddddd

Then:

|ddddd

Further presses of Ctrl+U would have no effect.

Let me know if it makes sense!

@boxdot
Copy link
Owner

boxdot commented Jul 11, 2023

It fits very nicely to Ctrl+k. Thank you for the implementation.

@boxdot boxdot merged commit 1df2baa into boxdot:master Jul 11, 2023
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

Successfully merging this pull request may close these issues.

2 participants