balta2ar / brotab

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

api.open_urls in background? #87

Open chapmanjacobd opened 2 years ago

chapmanjacobd commented 2 years ago

It would be nice to be able to open tabs in the background.

My use case is opening tabs while browsing: https://github.com/chapmanjacobd/lb/blob/5147b15e6d0167440df959ef5918487ef0871188/scripts/streaming_tab_loader.py

A kwarg for api.open_urls might be appropriate. Alternatively, I have browser.tabs.loadDivertedInBackground set to True in about:config. Maybe brotab could respect that setting?

balta2ar commented 2 years ago

Do you know which API I can use in the extension to read that setting?

On Thu, Oct 13, 2022, 19:56 Jacob Chapman @.***> wrote:

It would be nice to be able to open tabs in the background.

My use case is opening tabs while browsing: https://github.com/chapmanjacobd/lb/blob/5147b15e6d0167440df959ef5918487ef0871188/scripts/streaming_tab_loader.py

I have browser.tabs.loadDivertedInBackground set to True in about:config. Maybe brotab could respect that setting?

— Reply to this email directly, view it on GitHub https://github.com/balta2ar/brotab/issues/87, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTFRCIWY2JCRS5TINCKD3WDBELBANCNFSM6AAAAAAREQR53Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

chapmanjacobd commented 2 years ago

Maybe just a kwarg, api.open_urls(background=False), would be more appropriate