electron-tabs icon indicating copy to clipboard operation
electron-tabs copied to clipboard

Tab Limit

Open joshuakoh1 opened this issue 3 years ago • 1 comments

Is there a way to set a tab limit? I could bind a function to tab-added and check the length of tabGroup.getTabs() and force tab.close() but it doesn't seem the most elegant of solutions

joshuakoh1 avatar Feb 06 '22 13:02 joshuakoh1

No. Let's keep this thread as a feature request.

I see many way to implement this:

  • add a tabLimit option (not so elegant IMO),
  • add a way to abort tab opening into the related event,
  • add a tabGroup method to freeze the creation of new tabs,
  • add a tabGroup option to filter tabs before it is created.

brrd avatar Feb 07 '22 10:02 brrd