22

When using GNU's Nano Editor, is it possible to delete from the actual cursor position to the end of the text file?

My workaround for now: keep pressed CtrlK (the delete full line hotkey). But this method is not so confortable on slow remote connections (telnet, SSH... etc).

1 Answer 1

35

According to Nano Keyboard Commands, you can do this with AltT:

M-T    Cut from the cursor position to the end of the file

where the M is "alt" (referring to the ESC key). In the documentation, "cut" is another way of saying delete or remove, e.g.,

^K     Cut the current line and store it in the cutbuffer
1
  • A perfect solution. To note: the two keys must be pressed consecutively, not at the same time. And the cut is not sent to the Windows's clipboard when SSHing with Putty, so it is just a method to delete, not paste, but the question was not requesting for copy-pasting. Oct 30, 2015 at 1:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .