When you are developing scripts with multiple files, you need to have ready access to the code, whether or not the scripts are stored in the project or external to the project.
When scripts are stored in the project, you can easily access and organize your scripts using the project panel. When they are stored external to the project, you can also organize them and manage them from the project panel by creating a connection to the external filesystem folder where you scripts are located.
When you connect to an external filesystem folder, the scripts are still located in the external folder, allowing other users to access them from the filesystem and allowing them to be managed with source control. However, the files appear inside the project as if they were part of the project, allowing them to be easily opened and edited.
To create a connection to a folder on the filesystem:
- Go to the File menu and select Create Connection, which will open a panel for creating a connection to a filesystem or to a database.
- In the "Create Connection" panel, click on the folder, then enter the path of the folder to which you want to connect.
- When you are finished, click the "Connect" button, which add the folder you selected to the project.
To open scripts in the connected folder and save changes to it:
- Double-click on the script icon in the connected folder.
- Even though the script appear in the project, it's still stored externally.
- To save changes to the script, use "Save As" in the File menu, just as you would with any other script that appears on the project.
To save new scripts to the connected folder:
- Create the new script.
- Go to the File menu and select "Save As".
- In the project "Save As" dialog, select the connected folder next to "Save in:", enter the filename, then press "Save"
- The newly created script will be saved to the external folder and will appear in the project under the folder.
- Of course, you can also save the newly created script using "Save As External".
If you are working with an external connection, you'll sometimes need to refresh the project panel so that it shows newly added files. The reason for this is that files are sometimes added to the external folder without Kirix Strata's knowledge; for example, this might happen if you are working with other developers on a shared source code repository and other developers add files to the project.