Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to name tab groups #2352

Open
Larvotto opened this issue Mar 9, 2023 · 9 comments
Open

Ability to name tab groups #2352

Larvotto opened this issue Mar 9, 2023 · 9 comments

Comments

@Larvotto
Copy link

Larvotto commented Mar 9, 2023

So rather than container headings saying "41 tabs", "6 tabs", etc, it would be great to attach labels.

Also, many thanks for the extension. It's excellent.

@xcv58
Copy link
Owner

xcv58 commented Mar 10, 2023

Hi @Larvotto,

Thanks for reaching out. Do you mean it should be able to attach a label for each window? What's your ideal way to specify the label, does a free input work?

I think the biggest problem is how to maintain the label. Since it will tie to a window and it could be stale over time (close and open new tab).

@Larvotto
Copy link
Author

Hi @xcv58 ,

My ideal would be for free input for the labels. I find I'm often researching several things at once (currently mostly home network related), and like to have the tabs for each thing open in a separate window (e.g. one window for tabs related to Proxmox, one for data backup solutions, one for Home Assistant), plus have a "working" window where I have gmail and network interfaces (Portainer, Grafana, etc) open. Plus, now that I have discovered Tab-Manager-v2, I like to have it open in yet another window, on its own, to act as a menu/overview of everything I have open.

Alternatively, and as one way of maintaining label persistence, maybe the label could be auto-populated using the name of the first tab in each window? e.g, if the first tab listed in a window is gmail, the window label would simply be 'gmail.com'. This would obviously change if the first tab is closed, or the tab order is changed, but as a user I think I'd be happy to manage that.

Thanks also for a great extension. The more I use it, the more I like it!

@xcv58
Copy link
Owner

xcv58 commented Mar 14, 2023

Got it I think we’re on the same page. I can try to make the window name editable and see how it behaves.

@dbush-bdq
Copy link

Is there any way to bring in the window's name from the Chrome "Name this Window" feature?

I can't find the Chrome documentation for the feature but this page describes it:
https://www.howtogeek.com/723486/how-to-name-chrome-windows-for-alttab-and-the-taskbar

@xcv58
Copy link
Owner

xcv58 commented Mar 18, 2023

Is there any way to bring in the window's name from the Chrome "Name this Window" feature?

I can't find the Chrome documentation for the feature but this page describes it: https://www.howtogeek.com/723486/how-to-name-chrome-windows-for-alttab-and-the-taskbar

Thanks. I did an investigation years ago #232 (comment)

It seems there is no extension API to support this feature.

@dbush-bdq
Copy link

Shame they don’t expose it via the API.

Thanks for the answer and the extension.

@xcv58
Copy link
Owner

xcv58 commented Mar 19, 2023

I implemented this based on a map between the window id and its name #2378. But there are a few limitations:

  1. There is no way to persist the right map between different sessions. i.e. if you close and reopen your browser, all windows will get a new id, thus the existing map doesn't work anymore.
  2. It is possible that the window gets the wrong name. Imagine you close a window and then open a new window. By coincidence, the new window might have an id that you have set the name earlier. So it will have the old name which doesn't make sense at all. Of course, we could optimize this by removing the key once a window is closed.
  3. It might be a conflict with other features like sort and group tabs which will reorganize the tabs in different windows.

Overall, I don't think adding the ability to manually rename a window is a good option. I'd lean toward two options:

  1. Wait for Chrome extension API to support the window name.
  2. Use other technology to automation set the name for the window. Which could fix all the above limitations.

On option 2, one promising approach is using GPT mode to generate the right name for the group of tabs.
Some examples as below:

image
image

@Larvotto
Copy link
Author

Interesting, thanks for your effort. Not sure if it helps, but one Firefox extension (Winger) enables window naming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants