delete lines completely #211
Replies: 1 comment 1 reply
-
If I understand correctly what you’re looking for, I did it with:
keys['cmd+d'] = function()
buffer.line_delete()
end
… On Jun 9, 2022, at 11:53 AM, Pablo Rodríguez ***@***.***> wrote:
Thanks to @rgieseke <https://github.com/rgieseke> in #210 <#210>, I can delete a complete line with:
keys['ctrl+k'] = function()
buffer.del_line_right()
buffer.del_line_left()
end
But now I realize that I need to remove also the final character for a new line (regexp \n).
And I also need that if I select more than a line, I can remove all selected lines. Right now, only the last line is removed.
Which is the right way to do this?
Many thanks for your help.
—
Reply to this email directly, view it on GitHub <#211>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AANUZGFV2UHMEELNWPGPT2TVOIHRNANCNFSM5YKSQMAQ>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ousia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks to @rgieseke in #210, I can delete a complete line with:
But now I realize that I need to remove also the final character for a new line (regexp
\n
).And I also need that if I select more than a line, I can remove all selected lines. Right now, only the last line is removed.
Which is the right way to do this?
Many thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions