Differences

This shows you the differences between the selected revisions of the page.

2008-10-24 2009-03-05
syntax (martin) 4.2 bug 334 mdi=>sdi (martin)
Line 18: Line 18:
Some external editors can open multiple files in one process. Usually such editors have some kind of tabbed interface, but it is also case of new versions of Microsoft Word (2000 and later). Some external editors can open multiple files in one process. Usually such editors have some kind of tabbed interface, but it is also case of new versions of Microsoft Word (2000 and later).
-If such an editor is already running and WinSCP runs a second instance to open new file, the second instance just notifies the first to open the new file and exits immediately. Hence WinSCP expects that the file was closed as well and tries to delete the temporary file. +If such an editor is already running and WinSCP runs a second instance to open new file, the second instance just notifies the first to open the new file and exits immediately.
-To allow WinSCP to use this kind of editor, you need to configure it as an external editor and enable preference option //[[ui_editor_preferences#external|External editor opens multiple files in one window (process)]]//((Note that WinSCP can heuristically detect that you need to enable the option //External editor opens multiple files in one window (process)// and offers you to do so.)). Then WinSCP will not treat the file as closed when the editor launched to open it is closed.((Drawback is that all the files ever edited by the current instance of WinSCP will be kept in [[temp_folder|temporary directory]] (until WinSCP is closed) and WinSCP will need to watch for changes of them all.)) Note that setting only affects the "edit" operation. So you may want to make sure that editing is [[ui_pref_panels#double-click|default operation for double-click]].+To allow using this kind of editor, WinSCP do not treat the file as closed when the editor launched to open it is closed.
If you choose to edit the same file again during the same session, WinSCP will download it to the same temporary directory as before, allowing the external editor to reload the file content in case it has it still opened (if the editor can detect the change). If you choose to edit the same file again during the same session, WinSCP will download it to the same temporary directory as before, allowing the external editor to reload the file content in case it has it still opened (if the editor can detect the change).
-If you want to both keep the standard WinSCP behaviour and use your preferred editor, you should check if your editor offers you option to open separate instance for each edited file. Some editors have such option+Drawback of the approach is that all the files ever edited by the current instance of WinSCP are kept in [[temp_folder|temporary directory]] (until WinSCP is closed) and WinSCP need to watch for changes of them all. 
-  * UltraEdit: //Advanced > Configuration > General > General Application Items > Allow multiple instances// + 
-  * PSPad: //Settings > Program Settings > System Integration > Only One Program Instance//  +If you want to avoid that you need to make sure that your editor opens each file in separate window (process). Some editors do that by default, some offers a configuration option for that. Then configure your editor as an external editor for WinSCP and enable preference option //[[ui_editor_preferences#external|External editor opens each file in separate window (process)]]//. Then WinSCP will treat the file as closed when the editor launched to open it is closed. Note that setting only affects the "edit" operation. So you may want to make sure that editing is [[ui_pref_panels#double-click|default operation for double-click]].
-  * Crimson Editor: //Tools > Preferences > General > Allow Multiple Instances// +
-  * TextPad: //Configure > Preferences > Allow Multiple Instances to Run// +
-  * Notepad++: Use command-line switch ''[[http://notepad-plus.sourceforge.net/uk/cmdLine-HOWTO.php|-multiInst]]''+
===== [[binary]] Editing Binary Files ===== ===== [[binary]] Editing Binary Files =====

Last modified: by martin