ashkulz / NppFTP

Plugin for Notepad++ allowing FTP, FTPS, FTPES and SFTP communications
https://ashkulz.github.io/NppFTP/
323 stars 93 forks source link

Respect folder position on local drive when uploading file to site #347

Open dspwhite opened 2 years ago

dspwhite commented 2 years ago

Using the latest version of NppFTP with Notepad++ 8.4.2.

I have my HTML files and folders mirrored on my local hard drive as they appear on my website. Hence when I want to upload a file, I don't want to have to navigate to the correct folder on the website in the NppFTP panel - it should find it automatically according to the file's position on my local drive. The EditPlus text editor did this and it was a massive timesaver.

At first, I thought setting the "Initial Remote Directory" to my site's root folder on my local drive in the NppFTP profile settings would allow for this. However, no luck. The file is still merely uploaded to whatever the folder position is in the NppFTP panel.

Is it possible to do what I want, or can you at least implement it going forwards?

pryrt commented 2 years ago

If I am reading things correctly, I believe that the second problem mentioned in this Notepad++ Community post also references this same difficulty.

dspwhite commented 2 years ago

I think his issue is that the folders above the root folder in the remote location take up too much horizontal real estate on the screen in Notepad++.

My problem is that I want to take the local folder and have NppFTP automatically match it up against the remote folder, so than I don't have to navigate to the correct remote folder; instead, NppFTP will do this automatically.

pryrt commented 2 years ago

@dspwhite ,

There were two aspects in the Community post. Problem 1 was that the horizontal space. But problem 2 was

And another problem is, when i launch the programm, tabs are already opened and i press Save, it will save, but File explorer doesnt start with initial directory and i had to go back from root till specific dir.

This second problem sounds quite similar to me, because it has to do with where files get saved on the remote relative to where they are on the local drive, and not always going where you think they will. (In other words, you are not the only one to have problems with the file not uploading to the remote directory you would like.)

dspwhite commented 2 years ago

Ah maybe, it would have been clearer if he said "I upload file to remote location" rather than "i press Save".