Skip to content

Regression on task_name when spawning task with spaces in name from keybinding #24832

Closed
@danieljimenez-mycase

Description

@danieljimenez-mycase

Summary

Setting task_name with spaces does not work with keybindings

1.add task to task.json

{
  "label": "start lazygit",
  "command": "lazygit -p $ZED_WORKTREE_ROOT"
}

add keybinding

{
  "context": "Workspace",
  "bindings": {
    "alt-g": [
      "task::Spawn",
      { "task_name": "start lazygit", "reveal_target": "center" }
    ]
  }
}
  1. use keybinding

Actual Behavior:
opens task selector

Expected Behavior:
opens task with that name

I fixed this by using "_" instead of spaces. I got this idea because the auto config update changed it to be that.
Do we need to update the docs instead?

Zed Version and System Specs

Zed: v0.173.8 (Zed)
OS: macOS 14.7.4
Memory: 16 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

regressionA bug that was introduced in a recent release

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions