Search code examples
nano

nano: update a file after selecting it using the file browser


I have no problems when open+change+save a file if I write nano filename on the terminal. But if I open nano and open the File Browser and open a file and try to save it, there is no default file name!:

enter image description here


Solution

  • I have tried your problem and indeed found that nano unable to "remember" the filename. My suspicion is that, when you open the editor just by typing "nano" in the command line, it only reads the content of that file, and paste it to the current buffer (without also making a new buffer for opening that file).

    So try to do this:
    1. Open nano just by typing nano in terminal
    2. Then type alt + F to enable nano to open file into separate buffer
    3. Read your file of interest from nano by ctrl + R, then ctrl + T
    4. Make some modification to the file, and try to save it, It should know the filename of the original file now!