Differences

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

2008-04-08 2008-04-08
double click in edit by default (martin) 4.1 Change: Removed One file only editing mode (martin)
Line 9: Line 9:
Editing and opening of files can be [[administration|restricted by system administrator]]. Editing and opening of files can be [[administration|restricted by system administrator]].
- 
-===== Editing Modes ===== 
-WinSCP has two modes to manage the edited/opened remote files. The mode can be selected in [[ui_pref_editor#modes|preferences]]. 
- 
-==== Multiple Files Mode ==== 
-With //Multiple files// mode (the default), WinSCP can handle several edited/opened remote files at once.  
Especially when the files are opened in an external editor, user can easily change two files at once. For this reason WinSCP must upload the files back using [[transfer_queue|background transfer/queue]] to allow several uploads at once. Especially when the files are opened in an external editor, user can easily change two files at once. For this reason WinSCP must upload the files back using [[transfer_queue|background transfer/queue]] to allow several uploads at once.
- 
-==== One File Mode ==== 
-With //One file// mode, WinSCP can handle only one edited/opened remote file at once.  
- 
-With this mode the WinSCP window is locked as long as the file (or rather the editor/associated application) is opened. Modified files are uploaded back using the main connection. Only once the upload is finished can you continue using the main window for other tasks. 
===== External Editors ===== ===== External Editors =====
Line 31: Line 20:
If such editor is already running and the WinSCP runs 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 editor is already running and the WinSCP runs 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.
-To allow WinSCP use this kind of editors, you need to select //Multiple files// mode and enable preference option //[[ui_editor_preferences#external|External editor opens multiple files in one window (process)]]//. 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 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. +To allow WinSCP use this kind of editors, you need to 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 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.
- +
-Note that setting only affects the "edit" operation. If a warning message still appears when you double click the file, then you can configure WinSCP to default the double click to "edit" in [[ui_pref_panels#double-click|preferences]].+
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).
- 
-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. 
If you want to both keep the standard WinSCP behaviour and use your preferred editor, you may check if your editor offers you option to open separate instance for each edited file. Some editors have such option: If you want to both keep the standard WinSCP behaviour and use your preferred editor, you may check if your editor offers you option to open separate instance for each edited file. Some editors have such option:
Line 53: Line 38:
When remote file is downloaded to editor or uploaded from editor, default [[transfer_settings|transfer settings]] or settings of active [[transfer_settings#presets|preset]] are used, with some exceptions: When remote file is downloaded to editor or uploaded from editor, default [[transfer_settings|transfer settings]] or settings of active [[transfer_settings#presets|preset]] are used, with some exceptions:
  * //Filename modification// option is forced to "No change".   * //Filename modification// option is forced to "No change".
-  * //Preserve-read only// is turned off. 
  * Replacement of characters not valid on Windows is enabled (original filename is restored on upload).   * Replacement of characters not valid on Windows is enabled (original filename is restored on upload).
  * Exclude and include masks are ignored.   * Exclude and include masks are ignored.
  * Text [[transfer_mode|transfer mode]] may be forced (see [[task_edit#binary|Editing Binary Files]]).   * Text [[transfer_mode|transfer mode]] may be forced (see [[task_edit#binary|Editing Binary Files]]).
  * [[resume|Transfer resume support]] is disabled.   * [[resume|Transfer resume support]] is disabled.

Last modified: by martin