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: Find Marbles
Subject: Re: Choosing directory to save file to, inside nano
Date: Mon, 5 Jun 2023 16:54:12 +0200

Hi thanks for answering,
I was kind of fearing that, but isn't there maybe a possibility of a key binding combination that could call an external script doing all or part of the necessary work? Making a shell script with fzf navigating through the directories and saving the user choice into clipboard is easy achievable. How to call such a script then in nano through a key binding? If at all possible, of course.
Thank you anyway.

Am Mo., 5. Juni 2023 um 14:54 Uhr schrieb Chris Allegretta <chrisa@asty.org>:
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]