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
46.98k stars 2.7k forks source link

Slash command for output from tasks `/task` #17001

Open oliver-kriska opened 2 weeks ago

oliver-kriska commented 2 weeks ago

Check for existing issues

Describe the feature

Same like we have /tab or /terminal we should have also /task so we use output from task in Assistant. I use tasks for Elixir development so I have tasks for tests or mix dialyzer (in my case custom alias for formatter, credo and dialyzer running as one task). Probably it will need two attributes for selecting which task output to use and maybe lines same like with terminal.

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

No response

osiewicz commented 2 weeks ago

You can already use /terminal to grab active task output (though - admittedly - I've just learned that myself). We should definitely document that.

notpeter commented 2 weeks ago

We have docs! 😺 https://zed.dev/docs/assistant/commands#terminal

Screenshot 2024-08-28 at 10 02 21
osiewicz commented 2 weeks ago

Yeah, but they don't mention that you can use /terminal for tasks

oliver-kriska commented 2 weeks ago

thanks, it's not mention anywhere so linking that docs was really useless.

Also I tried it. It works only with "last active" terminal. So when I use task and use also actual terminal for something else (REPL, zsh,...) it will not use that task's terminal but lastly used. So it's basically working by accident let's say.

So maybe it would be nice solution to be able select which terminal tab I want to use. That will be working for Tasks and also for people who use multiple terminals at all.