grunt-open icon indicating copy to clipboard operation
grunt-open copied to clipboard

option to reuse tab each time open is called (might require browser plugin)

Open dylang opened this issue 12 years ago • 11 comments

Unless you are diligent about closing new tabs, starting and killing grunt many times while debugging eventually the browser will have a sea of identical tabs.

It would be nice if there was an option to request the browser to "reuse" the same tab each time grunt-open was used.

I haven't looked to see if browsers have this option on the command line. I'm guessing it's not possible to request the browser uses the same tab the way target="name" works on <a href.., so this might require a browser extension.

Other ideas how to prevent the sea of tabs from happening?

dylang avatar Nov 26 '13 22:11 dylang

I know the frustration but don't know a solution. If anyone finds one, please post or submit a PR.

jsoverson avatar Nov 26 '13 22:11 jsoverson

+1

ttdmayshark avatar Nov 27 '13 00:11 ttdmayshark

:+1:

mike-spainhower avatar Nov 27 '13 00:11 mike-spainhower

Maybe this can solve it, at least for Mac users.

https://github.com/prasmussen/chrome-cli

dylang avatar Feb 11 '14 04:02 dylang

+1 but suspect it's hard to do. Currently I'm not using open because of this.

mokkabonna avatar Feb 11 '14 10:02 mokkabonna

Here is an issue for Chromium https://code.google.com/p/chromium/issues/detail?id=141942

generalov avatar Mar 26 '14 07:03 generalov

It seems that it is possible to reload tabs in Chrome through the remote debugger https://gist.github.com/generalov/9778791 .

generalov avatar Mar 26 '14 12:03 generalov

+1

LeonardoGentile avatar Jun 25 '14 16:06 LeonardoGentile

+1

yamsellem avatar Nov 24 '14 13:11 yamsellem

not related to grunt but I've kinda solved with this: https://github.com/LeonardoGentile/chrome-duplicate-tab-detector

LeonardoGentile avatar Nov 24 '14 13:11 LeonardoGentile

+1

Falven avatar Apr 01 '16 22:04 Falven