Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP Editing online Files (Improvement)

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Balderstrom
Power Member
Power Member


Joined: 11 Oct 2005
Posts: 2090

PostPosted: Tue Jun 15, 2010 1:31 am    Post subject: FTP Editing online Files (Improvement) Reply with quote

I've recently begun to use FTP and Edit more recently, and have found the process to be cumbersome.
Quote:
  • Select file in Panel, choose "Edit" (it opens in our Text Editor of choice).
  • Make changes in said file & Save.
  • Switch back to TC, close the Edit-dialog box.
  • Confirm the next pop-up that you'd like to Upload the changes.
  • Another dialog, asking if you really want to upload the changes [Overwrite].
Switch to your WebBrowser, refresh a page in question, realize you need to edit further -- that the changes didn't have the desired effect.

Start the whole process over.

=================================================================

The initial dialog could watch for changes in the file you are editting; and with a checkbox, [x] Auto Upload when file changes. Also optionally, TC could make 2 copies of said file, one that you are editting, and another Original in case you need to restore.

If not then possibly an [Apply] changes button. So you can keep the local copy open once, and not have to repeatedly re-edit/and open the file. And click through 3 TC Dialogs every time you want to make a change.

If I made a manual copy of the file, editted it locally and saved, I could manually drag & drop it to the FTP panel, and only have to deal with one overwrite dialog.
With TC taking care of the local copy in the temp folder the whole process should be more streamlined not more complicated.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 28349
Location: Switzerland

PostPosted: Tue Jun 15, 2010 8:46 am    Post subject: Reply with quote

Quote:
[x] Auto Upload when file changes

That could be done quite easily, but when should the local copy be deleted then?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Balderstrom
Power Member
Power Member


Joined: 11 Oct 2005
Posts: 2090

PostPosted: Tue Jun 15, 2010 10:32 am    Post subject: Reply with quote

TC could clean up it's Temp files upon Shutdown (ini file setting to do so, or not**), and/or have a callable command to clear up Temp files.

** When files are not automatically deleted:
They could be kept in the same path (locally) as online, e.g.
%TC_TEMP_ROOT%\foobar.com\www\css\override.css
For further purusing of the files offline, or for manual syncing later.
_________________
Petition to rename "TC suggestions (English)" to be more in-line with the forum: "TC Behaviour which will not be changed"
My Recommendation: "TC Suggestions (dev/null) Features that wont be implemented."
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 28349
Location: Switzerland

PostPosted: Wed Jun 16, 2010 2:00 am    Post subject: Reply with quote

Quote:
TC could clean up it's Temp files upon Shutdown

But the editor could still remain open even when you close TC...
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Balderstrom
Power Member
Power Member


Joined: 11 Oct 2005
Posts: 2090

PostPosted: Wed Jun 16, 2010 8:50 am    Post subject: Reply with quote

I suppose, but that's still the case now: EmEdit remains open after closing the dialogs in TC.

In my mind it would be more useful to simplify the process of actual updating the remote file, and leave the deletion of possibly unneeded files to the end-user.

Also if I'm not mistaken you can query if a File has any open handles on it (even if it isn't locked).

A more simple approach, if Automatic Updating is enabled: the very first dialog could have 3 buttons:
[Delete] [Revert] [Exit]

Delete: Delete file and close dialog.
Revert: Revert Remote file back to original (TC has 2 copies)
Exit: Close dialog, file remains.
Back to top
View user's profile Send private message Send e-mail
eyolf
Junior Member
Junior Member


Joined: 14 Mar 2005
Posts: 43

PostPosted: Fri Nov 12, 2010 6:22 am    Post subject: Reply with quote

Any news on this?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 28349
Location: Switzerland

PostPosted: Mon Nov 15, 2010 8:49 am    Post subject: Reply with quote

No, unfortunately not. The removal of the temp file when it's no longer needed is still not solved.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Balderstrom
Power Member
Power Member


Joined: 11 Oct 2005
Posts: 2090

PostPosted: Mon Nov 15, 2010 6:33 pm    Post subject: Reply with quote

eyolf wrote:
Any news on this?

ghisler(Author) wrote:
No, unfortunately not. The removal of the temp file when it's no longer needed is still not solved.

The removal of a Temp file is a completely non-issue.



Anyways, the solution is to not use Total Commander for FTP.
FTP Drive 3.5 (214KB) , install and run.
  • Add your FTP servers in the "Sites List Editor".
  • FTP Drive will create a mounted drive (defaults to Z) under My Computer.

  1. Content is browseable like a regular folder structure.
  2. You can use normal edit commands, normal context-menu's any Buttons on TC's buttonBar, etc. etc.
  3. You can drag files into folders, or Copy and them Paste from the context menu.
  4. Copy/Paste from a local Harddrive into the Z:\MyWebSite.
  5. Use TC's Comment descript.ion's for files.
  6. When you are editing a file, and save it. It is saved. Done.
    Quirk: If the file doesn't exist (creating a copy from an editor) You need to save it twice.
    You will get an errorMsg the first time, it will work the second time.


If you've added a site, such as: "MyWebsite"
When you browse to Z:\MyWebsite\www\css\ --- you can actually tell you are on the "MyWebsite" server as opposed to TC's FTP addressbar of:
0:\www\css, or 1:\www\css, (etc)

Red --> TC FTP cannot do.
Green-> TC FTP can do.

Unfortunately, "FTP Drive 3.5" saves the FTP-site's passwords as plain-text in a text-file in FTP Drive's dir. So a little work is required for a portable "USB" solution. That aspect is not quite secure. The master-password option of TC and other Password managers would be much preferred.
-- Has an option for a NetView client/server to get the list of Sites (I am not sure what that is). And it does save the password for the NetView Client in the registry (as plain text).

Could write a script to unpack a password-protected zip (or Rar) file containing the passwords/host data prior to running FTPDrive, but that aspect would be a bit klunky at best, as you'd want to remove the file afterwards, and you might need/want to add more sites while it is running.
Back to top
View user's profile Send private message Send e-mail
cos
Junior Member
Junior Member


Joined: 03 Oct 2007
Posts: 21

PostPosted: Wed Dec 01, 2010 2:08 am    Post subject: Reply with quote

Yes, i would like to see a FTPDRIVE functionality under total commander too !!

I am not sure, but i thik one of these, ftpdrive, or netdrive are also opensource, shoudl not be a problem to check it out and improve TC.

I bitch on a daily basis current workflow for editing files online, being a webdeveloper i do it a lot.
It became so frustrating, i now installed a ftp synch tool and i work locally, while it silently uploads the changes, yet too many times i need to do the changes online directly.

Anyway christian, it think this FTP thing/issue, is huge for all people who actually use TC AND the FTP a lot.
Back to top
View user's profile Send private message
Sune
Junior Member
Junior Member


Joined: 18 Mar 2003
Posts: 3
Location: Danmark

PostPosted: Fri Mar 11, 2011 8:27 pm    Post subject: Reply with quote

Balderstrom wrote:
Anyways, the solution is to not use Total Commander for FTP.
FTP Drive 3.5 (214KB), install and run.
  • FTP Drive will create a mounted drive (defaults to Z) under My Computer.
I tried the FTPdrive and I like it.
BUT I got problems while copying files, with FTPdrive activated, in Totalcommander, on Win7.

Problem: When trying overwriting a file the process is stopped, and I have to kill Totalcmd, exit FTPdrive, and start again.

I am quiet sure the problem is that an "invisble" window is waiting for me to confirm how I want the overwrite do be done.
I am aware, that I may have to set the default overwrite mode in TotalCmd to "No Asking", but this is a very useful thing (when not copying to/from FTP, where "only newer" don't work anyway).

I don't know whether this can be fixed by FTP-advanced settings?
Or with TotalCmd-settings?

Any ideas...?

Of course The Best would be if TotalCMD could do everything, or at least to copy/move direct inside the FTP-drive Smile
Back to top
View user's profile Send private message
Balderstrom
Power Member
Power Member


Joined: 11 Oct 2005
Posts: 2090

PostPosted: Fri Mar 11, 2011 10:33 pm    Post subject: Reply with quote

It's possible that it has issues with Win7. I did a little searching around, and found NetDrive --- although like most "modernized" software, it's huge: 8MB. Or consider contacting the author of FTPDrive. I may need to do so myself when I get Win7 up and going --- will have to see what options I have with our new VPS, if I can do scp or ssh natively in TC or if I'm stuck with ftp in TC.
Back to top
View user's profile Send private message Send e-mail
Sune
Junior Member
Junior Member


Joined: 18 Mar 2003
Posts: 3
Location: Danmark

PostPosted: Sat Mar 12, 2011 8:10 am    Post subject: Reply with quote

Nice with NetDrive, thanx Smile
Though... NetDrive does not support the single drive-letter for plenty FTP-sites (that I do manage). I did propose this feature to NetDrive...
I may do same to FTP-drive: propose win7/x64 support Smile
Back to top
View user's profile Send private message
Pruna
Junior Member
Junior Member


Joined: 23 Mar 2005
Posts: 2

PostPosted: Sat Dec 03, 2011 2:17 pm    Post subject: Reply with quote

The file could be deleted as it is now, I suppose when the connection is closed. What difference does it make if it gets uploaded each time it's saved locally?
You just have to monitor for file writes and get rid of that dialogue asking to upload the file. The rest should be the same.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group