Project Sharing (#6077)
Enso will now associate with two file extensions:
* `.enso` — Enso source file.
* If the source file belongs to a project under the Project Manager-managed directory, it will be opened.
* If the source file belongs to a project located elsewhere, it will be imported into the PM-managed directory and opened;
* Otherwise, opening the `.enseo` file will fail. (e.g., loose source file without any project)
* `.enso-project` — Enso project bundle, i.e., `tar.gz` archive containing a compressed Enso project directory.
* it will be imported under the PM-managed directory; a unique directory name shall be generated if needed.
### Important Notes
On Windows, the NSIS installer is expected to handle the file associations.
On macOS, the file associations are expected to be set up after the first time Enso is started,
On Linux, the file associations are not supported yet.
2023-04-06 16:26:37 +03:00
|
|
|
/** @file File associations for client application. */
|
|
|
|
|
2023-05-19 22:55:29 +03:00
|
|
|
// =========================
|
|
|
|
// === File associations ===
|
|
|
|
// =========================
|
|
|
|
|
Project Sharing (#6077)
Enso will now associate with two file extensions:
* `.enso` — Enso source file.
* If the source file belongs to a project under the Project Manager-managed directory, it will be opened.
* If the source file belongs to a project located elsewhere, it will be imported into the PM-managed directory and opened;
* Otherwise, opening the `.enseo` file will fail. (e.g., loose source file without any project)
* `.enso-project` — Enso project bundle, i.e., `tar.gz` archive containing a compressed Enso project directory.
* it will be imported under the PM-managed directory; a unique directory name shall be generated if needed.
### Important Notes
On Windows, the NSIS installer is expected to handle the file associations.
On macOS, the file associations are expected to be set up after the first time Enso is started,
On Linux, the file associations are not supported yet.
2023-04-06 16:26:37 +03:00
|
|
|
/** The extension for the source file, without the leading period character. */
|
|
|
|
export const SOURCE_FILE_EXTENSION = 'enso'
|
|
|
|
|
|
|
|
/** The extension for the project bundle, without the leading period character. */
|
|
|
|
export const BUNDLED_PROJECT_EXTENSION = 'enso-project'
|
|
|
|
|
|
|
|
/** The filename suffix for the source file, including the leading period character. */
|
|
|
|
export const SOURCE_FILE_SUFFIX = `.${SOURCE_FILE_EXTENSION}`
|
|
|
|
|
|
|
|
/** The filename suffix for the project bundle, including the leading period character. */
|
|
|
|
export const BUNDLED_PROJECT_SUFFIX = `.${BUNDLED_PROJECT_EXTENSION}`
|