help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Choosing directory to save file to, inside nano


From: Chris Allegretta
Subject: Re: Choosing directory to save file to, inside nano
Date: Mon, 05 Jun 2023 08:54:06 -0400

Hello. Don't think so, as nano's default concept of where to save files is based on either its working directory, or the path of the file. For stdin there is of course no path to start from, and working dir is just where it is invoked. I believe if you wanted to get closer, albeit outside nano, you could pipe the output to:

(cd somedirectory && nano -)

Nano would then start from there for saving the output to a relative path.


On June 5, 2023 4:37:48 AM EDT, Find Marbles <locatemarbles@gmail.com> wrote:
Hello,
is there a way to choose/change the directory to which I can save a file to, inside nano, without having to manually type it out?
The reason I'm asking is because I have a script which pipes the text output to nano -
After doing some editing of the text, I want to give the file a new name and save it to a directory of my choosing.
Thank you in advance

reply via email to

[Prev in Thread] Current Thread [Next in Thread]