Allow task spawned in center terminal to gain focus #35519
Replies: 3 comments 2 replies
-
Did you try any other options like zed/assets/settings/initial_tasks.json Lines 17 to 21 in b01d187 ? |
Beta Was this translation helpful? Give feedback.
-
I agree, it looks like when There is one case when it works as expected: when center terminal tab is newly created by spawned task - it gains focus but I believe it works only because of the new tab is simply created "on top" of all other tabs. Sould I make a recording of it? |
Beta Was this translation helpful? Give feedback.
-
You should probably include the results from Here is an example of a task that always gains focus on my machine. {
"label": "file_finder",
"command": "zed \"$(tv files)\"",
"hide": "always",
"reveal_target": "center",
"allow_concurrent_runs": true,
"use_new_terminal": true
}, And for what it's worth here is also a keymap that I use along side it: "space s f": [
"task::Spawn",
{ "task_name": "file_finder", "reveal_target": "center" }
], What I have is:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I tried hard and I'm not able to configure Zed to focus a task pane if it's spawned in the center terminal - the
reveal_target
option just make sure pane is visible, but doesn't focus it. My tasks always need immediate input from user to proceed (likeespflash
serial port selection when flashing), so it always forces me to manually move a focus to spawned task terminal pane after spawning it. It really slowes me down ;)Would it be possible to implement such an option?
Thanks for your work, BTW
Teo
Beta Was this translation helpful? Give feedback.
All reactions