prasmussen / chrome-cli

Control Google Chrome from the command line
MIT License
2.61k stars 89 forks source link

Bring window to foreground #35

Open Trinition opened 8 years ago

Trinition commented 8 years ago

Activating a tab does activate it, but it will leave the window in the background if that's where it was. While there might be a case for that, it seems more likely that the window should be brought to the foreground. As an alternative, maybe this could be a separate command.

Bonus points if it can also switch desktop spaces on Mac OSX.

Michael-F-Ellis commented 8 years ago

I'll second that. Would also be nice to have an option to return to the terminal running the script that called chrome-cli, although one can fake that in a script with "open -a Terminal" following the chrome-cli call.

BTW, Thanks for this very useful and well-documented app!

jaredatron commented 5 years ago

A chrome-cli focus -t 1234 command would be awesome!