mirror of
https://github.com/enso-org/enso.git
synced 2024-12-25 08:12:36 +03:00
e7668ebc3a
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.
14 lines
633 B
TypeScript
14 lines
633 B
TypeScript
/** @file File associations for client application. */
|
|
|
|
/** 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}`
|