Change File Drop preferences
In the CotEditor app
on your Mac, use File Drop preferences to choose how to insert a preset text when you drop a file onto your document window. To change these preferences, choose CotEditor > Preferences, then click File Drop.
For example, you can automatically insert the img tag into your HTML document by dropping an image file from Finder.
| Option | Description |
| File Drop Definitions |
Choose the conditons to perform the file drop.
- Extensions: The setting is performed only when a file with one of these extensions is dropped. If this field is empty (All), all files are eligible. No dot is required for file extensions. You can set multiple extensions by separating them by a comma.
- Syntax Style: The setting is performed only when a file is dropped to a document having this syntax style. If this field is empty (All), all documents are eligible.
- Description: You can use this field to leave a comment about the row. This field doesn't affect the file drop behavior and can be left blank.
|
| Insertion formart |
Set the text to be inserted for the condition that is selected in the file drop definition list above. |
| Variables |
You can use CotEditor's variables in an insertion format.
- Variables are going to be replaced with the corresponding information of the dropped file. See “Variables for File Drop” for each variable's details.
|