balta2ar / brotab

Control your browser's tabs from the command line
MIT License
389 stars 27 forks source link

Opening a new window? #39

Open CRImier opened 4 years ago

CRImier commented 4 years ago

Hi! I'm making Python scripts using brotab (using the Python API), and I've already written some examples for automation purposes. I'll publish them soon and you can check them out =) EDIT: they're here https://github.com/CRImier/dudetab

One thing - would it be possible to (easily) add an API call to open a new window? I'm writing scripts to rearrange tabs in currently open windows and it'd be useful to be able to open a new window if there isn't a suitable one.

doctorcolossus commented 2 years ago

+1

The current documentation for the "open" command says: "If window_id is not specified, URL will be opened in the active window of the specifed client."

I propose that it would be more useful to open URLs in a new window if no window_id is specified.