Skip to content

Implemented tab groups feature#300

Open
radomir9720 wants to merge 1 commit intowakatime:masterfrom
radomir9720:master
Open

Implemented tab groups feature#300
radomir9720 wants to merge 1 commit intowakatime:masterfrom
radomir9720:master

Conversation

@radomir9720
Copy link
Copy Markdown

@radomir9720 radomir9720 commented Jul 13, 2025

Browsers have tab groups(spaces, workspaces, islands).

I thought that it will be very convenient to group my tabs by projects in those tab groups, and say to the wakatime extension to use the tab group name as a project name, instead of using the "Custom project name" feature(not very convenient) or logging the <<LAST PROJECT>>(not very accurate).

So this is what was done in this PR.

"Tab groups" settings were added to Options page:
image

Now you can enable the "Use tab's group name as project name" checkbox(disabled by default to keep the backwards compatibility), and the tab group name, if the tab is in a group, of course, will be used as a project name. For example, if the group name is "My Company Name", then you'll see on the Wakatime dashboard all the activity from the tabs within this tab group logged under the name "My Company Name".

Also you have the checkbox "Log only grouped tabs activity"(off by default, to keep the backwards compatibility). With this option all the activity from ungrouped tabs will be ignored. For example, if you want to have some tabs for your personal use, and don't want Wakatime to log them, you can have them ungrouped, and enable this checkbox. In this case, the Wakatime extension will log only activity from grouped tabs(for example from "My Company Name" group), and the activity from ungrouped tabs(your personal use) will be ignored.

Worth to mention:
Features were tested on Google Chrome, Firefox, Opera, Yandex Browser.

In Chrome and Firefox everything works out-of the box, as described above.

If you're using Opera, be aware that Opera has two types of groups:

  1. Workspaces
  2. Tab islands

You need to use the workspaces, not tab islands, because tab islands are anonimous(don't have names).
Also the "Log only grouped tabs activity" won't be available for you, because in Opera every tab is in a workspace(group).

If you're using Yandex browser
You'll have to go through some extra setup, as Yandex Browser doesn't support the default chrome's tab groups feature.
Instead it has something like Opera's workspaces. In Yandex Browser they called it "space". Also, unlike Opera, their API don't provide the space name. So you'll have to manually match the space id to a name. You'll be provided with instructions when you'll open the Options page.

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

Successfully merging this pull request may close these issues.

1 participant