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

use_center_terminal: <bool> settings for task.json #16909

Open JonGretar opened 2 weeks ago

JonGretar commented 2 weeks ago

Check for existing issues

Describe the feature

I would love to be able to set the option "use_center_terminal": true for tasks.

This would allow me to create global tasks (and bind keyboard shortcuts) to start tools such as lazygit, posting and others in the main window. With these tools bound to a shortcut I would not even need a plugin system in Zed.

On a related note. A tasks spawn command on a task already running(where use_new_terminal and allow_concurrent_runs is false) should probably focus on that terminal as it does with new tasks.

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

LazyGit-Zed

rxtsel commented 2 weeks ago

I would like this to be able to run lazygit.