Docs: Specify the location of the tasks.json files (#13333)

- Docs: Tasks: Explicitly note the location of `tasks.json` files.
- Docs: Keybindings: Add link to task docs showing example of binding to
a specific task.

Release Notes:

- N/A
This commit is contained in:
Peter Tripp
2024-06-20 16:12:21 -04:00
committed by GitHub
parent 2c545ce0bc
commit 51601cf6bd
2 changed files with 9 additions and 3 deletions
+3 -2
View File
@@ -31,8 +31,9 @@ There are two actions that drive the workflow of using tasks: `task: spawn` and
## Task templates
Tasks can be defined:
- in global `tasks.json` file; such tasks are available in all Zed projects you work on. You can edit them by using `zed: open tasks` action.
- in worktree-specific (local) `tasks.json` file; such tasks are available only when working on a project with that worktree included. You can edit worktree-specific tasks by using `zed: open local tasks`.
- in global `tasks.json` file; such tasks are available in all Zed projects you work on. This file is usually located in `~/.config/tasks.json`. You can edit them by using `zed: open tasks` action.
- in worktree-specific (local) `.zed/tasks.json` file; such tasks are available only when working on a project with that worktree included. You can edit worktree-specific tasks by using `zed: open local tasks`.
- on the fly with [oneshot tasks](#oneshot-tasks). These tasks are project-specific and do not persist across sections.
- by language extension.