mklement0 / ttab

macOS and Linux CLI for opening a new terminal tab/window, optionally with a command to execute and/or display settings
285 stars 15 forks source link

-g and -G flags still focus the new tab? #13

Closed dgolant closed 3 years ago

dgolant commented 7 years ago

Hi, I just started using ttab and it looks like when I pass in ttab -G -t 'Datastore Emulator' gcloud beta emulators datastore start, the new tab still receives focus. I've attached a gif, to clarify

200w_d

it may be a little easier to follow here

mklement0 commented 7 years ago

Thanks for letting me know. I'll take a look.

robotdana commented 7 years ago

I noticed this after updating to High Sierra

mklement0 commented 7 years ago

I've just published v0.6.1, which should fix the problem.

The reason it broke is that Apple changed Terminal.app's scripting object model with respect to tabs.

robotdana commented 7 years ago

Thanks so much :)

LoganBresnahan commented 3 years ago

I believe this is an issue again. Using the Terminal application, -G does not stop the new tab from coming into focus for me. Terminal Version, 2.11 (440)

mklement0 commented 3 years ago

Thanks for letting me know, @LoganBresnahan - it seems to be a problem only in Terminal.app, not iTerm2.app - the problem is specific to the Terminal.app version that comes with Big Sur - things work fine on Catalina.

I'll take a look.

LoganBresnahan commented 3 years ago

Thanks for letting me know, @LoganBresnahan - it seems to be a problem only in Terminal.app, not iTerm2.app - the problem is specific to the Terminal.app version that comes with Big Sur - things work fine on Catalina.

I'll take a look.

Thanks a lot for taking a look, and thanks so much for your work on ttab! I really appreciate it :+1:

mklement0 commented 3 years ago

This should be fixed in the just-released v0.7.1, @LoganBresnahan; and thanks for the nice feedback.