zed icon indicating copy to clipboard operation
zed copied to clipboard

Tasks - variable from user input when running the task (minor)

Open coolemur opened this issue 10 months ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the feature

Described in discussion - https://github.com/zed-industries/zed/discussions/10823

Would be nice to have user input as variable

So instead of exact value, user could write the value everytime the task is run:

  {
    "label": "Kill port 8081",
    "command": "kill -9 $(lsof -i tcp:8081 -t) 2> /dev/null"
  }
 {
   "label": "Kill port <port>",
   "command": "kill -9 $(lsof -i tcp:${input:port}-t) 2> /dev/null"
 }

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

No response

coolemur avatar Apr 22 '24 08:04 coolemur