Is it posssible to save text in nano with one keypress

nano

I use nano as my favorite text editor.

I was able to save my documents by pressing F3 + Enter.

But is there a way to save the document directly by pressing some key, if I'm sure I would like to save the document to the same name as before?

Best Answer

You can try:

  • Edit your .nanorc file
  • Add line: set tempfile

Now, after you finish editting your file, just press Ctrl + X, nano then quit and automatically save your file.

Related Question