simple-tab-groups icon indicating copy to clipboard operation
simple-tab-groups copied to clipboard

Pinned tabs should migrate to group

Open stecydube opened this issue 7 years ago • 25 comments
trafficstars

Pinned tabs do not belong to any groups. They are always displaying for all groups.

I would like to have an option at the least to automatically assign pinned tabs to a group like Sync Tabs Group does.

stecydube avatar Nov 06 '18 13:11 stecydube

It would be great if there is selectable option like that. I can imagine cases, when it is convenient to have pinned tabs same in all groups.

Lirt avatar Nov 14 '18 15:11 Lirt

I actually prefer the current behavior (pinned tabs are available for all groups), so hope if it is implemented, it's off by default.

piyushsoni avatar Nov 21 '18 07:11 piyushsoni

+1

rexzhang avatar Dec 18 '18 14:12 rexzhang

Was about to request that too, so +1

0x7969 avatar Jan 11 '19 23:01 0x7969

I also want different pinned tabs per group. My use case is that I have two groups: Personal and Work.

There are tabs that I want to be pinned in Personal (because I use them frequently), but I don't want them distracting me when I'm in the Work group.

Right now the pinned tabs are always visible, even when in the Work group.

Other than that, this extension is fantastic, I like it a lot!

Pauan avatar Feb 24 '19 13:02 Pauan

Hi guys. The fact is that the browser itself does not know how to do this for pinned tabs.

Not all tabs are eligible for being hidden:

  • Tabs that are pinned cannot be hidden.
  • Tabs that are sharing the screen, microphone or camera cannot be hidden.
  • The current active tab cannot be hidden.
  • Tabs that are in the process of being closed cannot be hidden.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/hide

I could try this with the manual method, but it would be very laborious and unstable, since I need to change half of the code and logic. Also, errors can lead to data loss.

Drive4ik avatar Feb 25 '19 10:02 Drive4ik

@Drive4ik Thanks for the reply! Since this is a limitation in Firefox itself, we should file a bug report on Bugzilla (or similar).

Pauan avatar Feb 25 '19 23:02 Pauan

It seems to me that nothing will come of it. They knowingly set such conditions.

Drive4ik avatar Feb 26 '19 15:02 Drive4ik

The pinned tabs are the only things that blocks me to stop Sync Tab Groups. I am using them as @Pauan told it, they are "important" tabs with easy access rather than global session tabs.

For the pinned tabs, I would expect at least to see them in a special groups so that I could search them and manage them from within the extension.

On top of that, if it could be possible to include the pinned tabs to the current group, it would be even more awesome. Not mandatory by default, but trough an option to enable. If a manual method that unpin before hiding is too complicated, I would not complain with a method that closes the pinned tabs and open them again each time (in discarded mode).

Morikko avatar Aug 17 '19 16:08 Morikko

The value of Pinned tabs to me is the tabsize is minimised, and they always appear at the same position at the top of the window. The favicon is a good graphical way to locate a tab and the text for a tab is often not of much value.

Perhaps rather than play with the pin process which some have suggested has its own value working across groups, but could this add on or another provide a way to simply hide the text title on all tabs. Since the groups will most likely open in the same order this would be the equivalent or pinning tabs in many ways. Ideally this would be selectable within each group.

AnthonyMuscio avatar Sep 25 '19 02:09 AnthonyMuscio

This also applies, as mentioned, to tabs which are using the microphone or similar. It is quite annoying if you open a video call for example and are then almost stuck on the current tab group until you end the call. Firefox refuses to do anything about this because they don't understand tab groups. As a workaround it would be very useful if pinned/microphone/etc tabs just remained visible in other groups. To aid the UI one possibility would be to have "ghost copies" visible in the current tab group, in addition to the real tabs visible in the home group. Clicking these would take you to that tab in the current group rather than moving to the tab's actual group.

fish-face avatar Jan 13 '21 11:01 fish-face

With notifications allowed, expectations are reduced:

image

By Mozilla's design, pinned tabs cannot be hidden – this is logical.

Less logical: in 2017, Mozilla chose to not provide a tab groups API. This was, I believe, short-sighted.

https://github.com/Drive4ik/simple-tab-groups/issues/286#issuecomment-522251712

… expect at least to see them in a special groups …

For as long as Firefox will have no concept of grouping:

  • there can be no (special) group that is not managed by an extension

– and the tab-hiding feature of Firefox is fundamental to extensions such as Simple Tab Groups. Realistically we can not expect any extension to hide a pinned tab.

https://github.com/Drive4ik/simple-tab-groups/issues/286#issuecomment-534819150

… hide the text title …

I should not expect Mozilla to allow this for anything other than pinned tabs. A little history …

The successor to the original (and best) FireTitle extension was named Crappy Firetitle through frustration with the constraints of WebExtensions APIs. Whilst the extension for Firefox Quantum is no longer so provocatively named, there remain the frustrations caused by Mozilla bugs that are linked from the description of the extension. In particular:

– as the required changes were disallowed, so (quoting the developer):

… support setting a custom prefix … that's as far as we can go without the proper API.

Mozilla might allow a prefix (effectively lengthening a title), however the decision to disallow changes to titles is probably immovable and in that context, I can't imagine hiding of titles in any context other than pinning (or windows that lack title bars).

grahamperrin avatar Feb 27 '21 14:02 grahamperrin

https://github.com/Drive4ik/simple-tab-groups/issues/286#issuecomment-440559046

… prefer the current behavior (pinned tabs are available for all groups), …

Recommended:

Active Pinned Tab

… automatically moved to the current window.

… use them in multiple windows without having to switch to the window where the tab was originally pinned.


In addition: if you do work with multiple windows, you'll want something to restore pinned tabs after closing a window.

(Do not use the History menu of Firefox to restore the closed window – it will create duplicate, non-grouped (non-synchronised) tabs.)

Save Pinned Tabs

… allows you to save your current pinned tabs as a set. You can then load the pinned tab set on any window that has the extension enabled. …

Pinned Tab Fix

This saves the set automatically. Experimental.

grahamperrin avatar Feb 27 '21 17:02 grahamperrin

https://github.com/Drive4ik/simple-tab-groups/issues/704#issuecomment-787492776 @michaelschufi asked:

… Why do the tabs need to be hidden? …

In as few words as possible:

grahamperrin avatar Feb 28 '21 18:02 grahamperrin

#286 (comment)

Realistically we can not expect any extension to hide a pinned tab.

I don't know exactly how they do it, but this Tab Group Switch extension does it. They probably close and reopen tabs, though, as they reload every time.

barreira avatar Mar 09 '21 21:03 barreira

Tab Group Switch

I tried a few times to get it to work, I couldn't get it to restore any group (with or without pinned tabs) and tabs were lost without warning. If you'd like to follow up on this, I can start a topic at https://discourse.mozilla.org/c/add-ons/add-on-support/111

grahamperrin avatar Mar 09 '21 22:03 grahamperrin

I would love to see this feature.

I also use pinned tabs as a way to make the tab smaller and fix its position. This would be a must-have for me.

Pin Unpin Tab can pin or unpin tabs, so I suppose it would be possible to unpin the tabs and hide them, and later pin again when showing them.

Shayan-To avatar Apr 18 '21 09:04 Shayan-To

👍 +1 to work-around the Firefox API limitations

Please support moving Pinned Tabs to a Group through "Unpinning" before "Hide/Close"

  • Make this an "experimental" feature so people get their behavior -- but don't mind so much about any rough edges ;)

blueacorn avatar Jun 30 '21 19:06 blueacorn

I just opened a bug on Bugzilla in case this api limitation can be removed: https://bugzilla.mozilla.org/show_bug.cgi?id=1792430

jclaveau avatar Sep 26 '22 13:09 jclaveau

Hi, is thre any news about this?

RicoGit avatar Nov 21 '22 18:11 RicoGit

Hi @Drive4ik , I realize this may not be your priority right now, but just in case...

There's a great article on your plugin, got me using it again, and I am converted 👍 https://www.techrepublic.com/article/firefox-finally-tab-management-add-on-worth-using/

Working across a lot of projects, with a lot of context switching, you end up pinning a lot of frequently-used tabs for quick access on each project... it would be great if STG supported grouping pinned tabs :<3:

Tab Session Manager and Save Pinned Tabs both do a decent job in Firefox of saving/restoring pinned tabs - perhaps you can borrow some inspiration from them for experimental handling of pinned tabs?

blueacorn avatar Jan 21 '23 05:01 blueacorn

Hi guys. The fact is that the browser itself does not know how to do this for pinned tabs.

Not all tabs are eligible for being hidden:

  • Tabs that are pinned cannot be hidden.
  • Tabs that are sharing the screen, microphone or camera cannot be hidden.
  • The current active tab cannot be hidden.
  • Tabs that are in the process of being closed cannot be hidden.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/hide

I could try this with the manual method, but it would be very laborious and unstable, since I need to change half of the code and logic. Also, errors can lead to data loss.

Hey @Drive4ik, thanks so much for this excellent extension. This is indeed unfortunate, I know risk aversion when it comes to editing legacy code, but maybe there is a "safeish" way of approaching it. I imagine a multi-step transformation as below:

  1. Define a new tab module which will hide the details of working with tabs. Define blank API functions (to mind comes show, hide, create, isPinned, export, import and a Tab data structure).
  2. Move behaviour into the blank API functions and swap out the code blocks with calls to this module
  3. Implement conditionals in your "Tab" module for dealing with pinned tabs according to the suggested mechanism above.
  4. Test it (we must come up with a test check-list)
  5. Maybe do a beta-release?
  6. Stable for 6 months maybe cut a new release.

It's probably a bit more work than this, but I hope we find a contributor which could do this type of refactoring and thoroughly test it.

Again, thanks for spending time on this extension! We really are blessed with an amazing tool here! :tada:

chriscz avatar Apr 12 '23 14:04 chriscz

Any update on this? STG still does not allow you to create default/pinned tabs specific to each group.

Chaitran77 avatar Feb 11 '24 10:02 Chaitran77