balta2ar / brotab

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

Open new WWW-page with <prefix>.<window_id>.<tab_id> #17

Open fmartin2912 opened 4 years ago

fmartin2912 commented 4 years ago

Hi, brotab-developers, nice job, your "bt".

Would it be possible to open a new WWW-page in the same tab as the last one opened? That would be a nice feature in case of a lot of openings of WWW-pages (my workaround in a python script opening in an new tab and closing eventually opened other tabs sometimes produces errors with send/receive times).

Greetings Martin

balta2ar commented 4 years ago

@fmartin2912 are you talking about "new" (new tab with google query search) or "open" (open the give URL) command?

dufferzafar commented 4 years ago

I think what they want is to open a URL in a particular tab.

Currently, open takes <prefix>.<window_id>, but they seem to be requesting that it should take <prefix>.<window_id>.<tab_id>

This will allow you to open a URL in the current tab like so: bt open $(bt active) https://google.com