Zed Cylc Extension

October 7, 2024 ยท View on GitHub

This extension adds support for .cylc and suite.rc workflow configuration files to the Zed code editor.

Cylc (pronounced silk) is a general purpose workflow engine that also manages cycling systems very efficiently. It is used in production weather, climate, and environmental forecasting on HPC, but is not specialized to those domains.

It uses the grammar defined in tree-sitter-cylc.

Demo

Screenshot of Cylc extension in Zed showing syntax highlighting and outline view

Features

Description
๐ŸŒˆ Syntax HighlightingProvides comprehensive highlighting for .cylc and suite.rc files.
๐Ÿ“œ Hierarchical OutlineDisplays a collapsible, structured view of your Cylc configuration file, making it easy to navigate large workflows.
โŒจ๏ธ Auto-IndentationAutomatically adjusts indentation as you write, ensuring your workflow configuration is consistently formatted.
๐Ÿ“‚ Code FoldingCollapse or expand sections of your Cylc files for easier management of large blocks of code.
๐Ÿ–ฅ๏ธ BASH Language InjectionEmbedded Shell syntax inside script settings and the [[environment]] section, for easier validation of your tasks scripts.

Installation

zed-cylc is available in the official Zed Extension Gallery and can be installed directly from the Editor.

For manual installation, follow these steps:

  1. Download the latest release or a specific commit from GitHub.
  2. Unzip the downloaded file.
  3. In Zed, open the Extensions manager (โ‡งโŒ˜X on MacOS) and click on Install Dev Extension, then select the unzipped folder.

Contributing

Contributions and bug reports are welcome! Please submit a pull request or file an issue on the GitHub repository.

License

MIT