Company
Date Published
Author
Thorsten Ball, Piotr Osiewicz, and Kirill Bulatov
Word count
1884
Language
English
Hacker News points
None

Summary

Zed, a code editor, has introduced a feature called Tasks that allows users to execute various commands directly from within the editor, such as Go tests, compilers, or shell scripts. Initially launched in February in version 0.124.7, the feature has been enhanced by developers Piotr, Kirill, and Mikayla, culminating in an impressive iteration in the Zed Preview release v0.136. The feature utilizes Tree-sitter technology to facilitate syntax-aware task-spawning, enabling users to run and rerun tasks efficiently with customizable keybindings and task variables like $ZED_SYMBOL and $ZED_SELECTED_TEXT. Tasks can be predefined using JSON files in project or global settings, and Zed supports language-specific tasks, with extensions able to define their own tasks.json files. The tool's integration with Tree-sitter also allows for the creation of runnables, where users can execute tasks with a simple click, offering an innovative and streamlined way to manage and execute code within Zed.