Edit files directly on ftp server

When I click a php file inside a ftp folder I get the option to "open" at the top of the context menu. When i click it nothing happens so I guess i have to set my text editor somewhere?

What i want to do is this:
Ricght click a file on ftp, have it open in my default text editor, make my changes, then click save inside the text editor and have it saved automatically back to the ftp.

I just cannot figure out how to edit a file directly as nothing happens when i click open.

Any idea what I am doing wrong?

What happens when you double-click a local .PHP file? You may just need to associate your text editor with the .PHP extension.

ok. 1 problem is solved now. double clicking opens the php file in my default text editor.

i didnt try the double click before as im used to "ricght click, then edit" from pretty much all ftp programs I used before.

But what is not solved is that when I make a change to the file in my text editor and then save it, it does not save the changes back to the ftp (it onlt saves the changes to the temporary file).

How can I do this?

Check these settings in Preferences:


This is checked already in my preferences.

Exactly as in my screenshot or do you have different choices for the Monitor/Check options?

The "when launched process exits" option won't work for some editors, for example.

I just double-checked with the settings shown in my screenshot and it works fine with the FTP site I tried against and TextPad as the editor. (Shouldn't matter which editor it is with the "Monitor file for 20 minutes" option set.)

Actually, looking at my preferences, it looks a lot different. You seem to have a lot more options in there than I do. Screenshot attached.

You're running an old version of Opus.

9.1.0.3 by any chance?

that was right. I downloaded a new evaluation with the newest version. I was now able to choose monitor files for 20 minutes". After that everything worked fine.

Thanks for the help!

You've been evaluating 9.1.0.3 for six months?

Creative usage of the word "evaluation" :slight_smile:

Hi Leo,

the re-upload function works for me
but only if i double-click on the file... how do i create a button that works too

my practical case :

@async C:\Program Files\Notepad++\notepad++.exe "%1"
@async C:\Program Files\Adobe\Adobe Dreamweaver CS4\Dreamweaver.exe "%1"
when i use one of thos buttons the re-upload function does not work

even better is there a way to use winmerge and dopus to compare local and remote files ?

thanks for your answer
cheers, nico

[s]I think it may only work with double-clicks. Not sure if that's due to a technical difficulty or just how it was designed. Either way, it wouldn't hurt to drop GPSoftware a request if you'd like to see the feature extended. The worst they can say is no.

You should be able to use WinMerge with FTP sites the same as with any other folder, but only for comparisons. If you modify the temp copy of the remote file then it'll be thrown away.[/s]

For better remote merging it might be worth investigating one of the diff/merge tools with explicit FTP/SFTP support, e.g. Beyond Compare (which is excellent, although I've never tried the FTP/SFTP aspect of it).

Correction: It works fine with buttons that run commands. It's not limited to double-click.

Check how you have the feature configured in Prefs - File Operations - Options.

thanks for your answer leo

my settings are the same as yours (previous capture)
and this does not work with my 2 buttons...

thanks for reminding me about beyond compare, i'm gonna try it :wink:

It's the @async that is making it not work. Do you need that? If each button just runs a single command then you definitely don't need @async (which is rarely needed in general).

BTW, you should put quotes around the exe paths as well since they contain spaces.

unfortunately, if i remove @sync it does not work...
i cannot open multiple files... worse i have to kill dopus to remove this dialog (see attachement)

Does NotePad++.exe let you give it multiple filenames on the same line?

This works with TextPad:

"C:\Program Files\TextPad 5\TextPad.exe" {allfilepath$}

If not then you might be able to work around it by launching NotePad++ via something else that launches it asynchronously. I thought the built-in Start command in Windows could do it but had trouble getting it to work. (Is it me or has the Start command been broken in Vista? I swear it used to do things which no longer work.)

Thanks Leo,

that works both for notepad++ and dreamweaver

thanks again for your help