zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.46k stars 3.12k forks source link

Prefer project tasks over global tasks in keymappings ("task::Spawn"). #20987

Open IViktorov opened 1 day ago

IViktorov commented 1 day ago

Check for existing issues

Describe the feature

That would be nice if it would be possible to have a global task, for which there would be a keybinding with option to override it for specific project by creation of task with same label.

As for now (zed 0.161.2) global tasks are preferred for "task::Spawn" and there is no obvious way to override them in project. That will be good if "task::Spawn" would search in project tasks first and then in global tasks.

For example I want to have a global task "build and test" with keybinding for general build, but I need to override it for some projects with different build process.

Environment

Zed: v0.161.2 (Zed) OS: Linux Wayland fedora 41 Memory: 13.5 GiB Architecture: x86_64 GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 24.2.7

If applicable, add mockups / screenshots to help present your vision of the feature

No response