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 Answers1

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
Thomas Dickey
  • 76,765
  • 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. – Sopalajo de Arrierez Oct 30 '15 at 01:13