Generate Zed task configuration with intelligent defaults
Generates Zed task configurations with intelligent defaults based on task type and project structure.
/plugin marketplace add oskar-dragon/claude-code/plugin install obsidian-location-notes@claude-code[task-description]zed/STEP 1: Parse Task Description
STEP 2: Analyze Existing Zed Configuration
STEP 3: Generate Task Configuration
CREATE task object with:
APPLY Zed variable best practices:
STEP 4: Create or Update tasks.json
IF .zed/tasks.json doesn't exist:
ELSE:
STEP 5: Provide Usage Instructions
cmd-shift-p → search "task: spawn"task: rerun to repeat last taskTest Runner:
{
"label": "Test current file",
"command": "bun test $ZED_FILE",
"cwd": "$ZED_WORKTREE_ROOT",
"use_new_terminal": false,
"allow_concurrent_runs": true,
"reveal": "always"
}
Development Server:
{
"label": "Start dev server",
"command": "bun dev",
"cwd": "$ZED_WORKTREE_ROOT",
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always"
}
Formatter:
{
"label": "Format file",
"command": "bun fmt $ZED_FILE",
"cwd": "$ZED_WORKTREE_ROOT",
"use_new_terminal": false,
"allow_concurrent_runs": true,
"reveal": "never"
}
$ZED_WORKTREE_ROOT: Project root directory$ZED_FILE: Currently selected file$ZED_COLUMN: Current cursor column$ZED_ROW: Current cursor row/tool:zed:task "run tests"
/tool:zed:task "start dev server"
/tool:zed:task "format current file"
/tool:zed:task "run tests"
Creates a test task that runs the project's test command, reveals output on errors, and allows concurrent runs.
/tool:zed:task "start dev server"
Creates a dev server task with a new terminal, prevents concurrent runs, and always shows output.
/tool:zed:task "format current file"
Creates a formatting task for the current file, never reveals output, and allows concurrent runs.
cmd-shift-p and search for "task: spawn"