MozillaZine

[ext/dev] SeaTab-X-2 - Firefox tab closers in SeaMonkey

Announce and Discuss the Latest Theme and Extension Releases.
patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 18th, 2014, 12:50 am

When approved by Mozilla, SeaTab-X-2 will appear here:
https://addons.mozilla.org/en-US/seamon ... eatab-x-2/

I have gotten special permission from CatTheif to resurrect her SeaTab X code in a new extension. As far as I know, this is the only *official* SeaTab X fork. As this is mostly a completely new extension, it does have different features than the original SeaTab X by CatTheif. Firstly, as of this release of 0.2 there is only one style of tab closer supported, more are likely to come in the future. Secondly, SeaTab-X-2 follows the setting for browser.tabs.closeButtons which you must manually change in about:config, and these are the options available:

0 = Display a close button on the active tab only
1 = Display close buttons on all tabs*
2 = Don’t display any close buttons
3 = Display a single close button at the end of the tab strip (SeaMonkey Default)

^ SeaTab-X-2 will ignore this setting and act like it is set to 1
4 = Display close button on active tab and on hover (my personal favorite)

*Note that unlike Firefox, SeaTab-X-2 will show tab closers on all tabs in tab overflow mode.

If you wish to move the New Tab button to the right side of the tab strip, you can use this userChrome hack:
Code: Select all
.tabs-stack vbox hbox stack { -moz-box-ordinal-group:10!important; }


If you want more advanced Firefox-like features, please consider my other extension Sea Fox: https://addons.mozilla.org/en-US/seamon ... n/sea-fox/ It is NOT recommended to run Sea Fox and SeaTab-X-2 at the same time.
Last edited by patrickjdempsey on February 19th, 2014, 2:13 pm, edited 4 times in total.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Exalm
 
Posts: 137
Joined: July 28th, 2013, 3:29 pm

Post Posted February 18th, 2014, 4:14 am

Modern? Or is that "only one style" note about this?

And you may want to use display: none !important to hide close button on first MailNews tab etc, because it seems to glitch if chrome://messenger/content/messenger.css is loaded after your extension.

Edit: 0 and 4 browser.tabs.closeButtons modes work like 2 in MailNews.

Edit2: Anyway, https://github.com/Exalm/gnomerunnergtk ... 2ac95da383
If you fix the bugs above, it would be awesome. :)

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 18th, 2014, 10:50 am

Thanks, will look into it. I wanted to start fresh which is why I started with version 0.1 instead of just copying over all of CatTheif's work... I find it better if I understand everything that's happening. :)
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

InvisibleSmiley

User avatar
 
Posts: 69
Joined: November 10th, 2002, 1:19 am

Post Posted February 18th, 2014, 12:14 pm

Looks good! Personally I'm using SeaTabXPlus 1.1 from http://forum.mozilla-russia.org/viewtopic.php?id=55506 right now, but having something "official" that is actively supported and offering different options is certainly appreciated.

A possible enhancement would be the ability to control the browser.tabs.closeButtons pref directly through the Add-ons Manager (preference button) so people see actual labels for the different options. Would make it a bit more accessible. But really nice to have only.
SeaMonkey Trunk Tracker: http://smtt.blogspot.com/

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 18th, 2014, 12:47 pm

I have no plans on adding a pref-panel. These are cumbersome and require localized support. I have considered automatically changing browser.tabs.closeButtons to "1" if it is set to "3" on startup since there is no reason to have SeaTab-X-2 installed and have that pref set to "3".
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

InvisibleSmiley

User avatar
 
Posts: 69
Joined: November 10th, 2002, 1:19 am

Post Posted February 18th, 2014, 1:40 pm

patrickjdempsey wrote:I have considered automatically changing browser.tabs.closeButtons to "1" if it is set to "3" on startup since there is no reason to have SeaTab-X-2 installed and have that pref set to "3".


I guess that's a good idea. Installing an add-on and seeing no difference just adds to confusion.
SeaMonkey Trunk Tracker: http://smtt.blogspot.com/

CatThief

User avatar
 
Posts: 1854
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA

Post Posted February 18th, 2014, 3:23 pm

I want to express my sincerest thanks to Patrick for a job well done! =D>
Still passionate for Mozilla themes and extensions, just not actively developing them for public release anymore.

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 18th, 2014, 5:01 pm

Exalm wrote:Modern? Or is that "only one style" note about this?


Yes, once I get the bugs out of the main implementation then I will get into offering theme/OS support.

Exalm wrote:And you may want to use display: none !important to hide close button on first MailNews tab etc, because it seems to glitch if chrome://messenger/content/messenger.css is loaded after your extension.

Edit: 0 and 4 browser.tabs.closeButtons modes work like 2 in MailNews.


I didn't have have any Mail-specific support before, but v0.2 will support Mail.



I honestly have no clue what any of this is. ?

Version 0.2 will be up soon. It will ignore browser.tabs.closeButtons = 3 and act like it is set to 1.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Exalm
 
Posts: 137
Joined: July 28th, 2013, 3:29 pm

Post Posted February 18th, 2014, 11:04 pm

patrickjdempsey wrote:Yes, once I get the bugs out of the main implementation then I will get into offering theme/OS support.
OS support is not really needed, since SeaMonkey itself doesn't provide it. But Modern support would be nice.

patrickjdempsey wrote:I didn't have have any Mail-specific support before, but v0.2 will support Mail.
Well, there was a rule to hide the close button on the first tab in MailNews. But it worked incorrectly sometimes.

patrickjdempsey wrote:I honestly have no clue what any of this is. ?
Just added SeaTab-X-2 support to my theme.

patrickjdempsey wrote:Version 0.2 will be up soon. It will ignore browser.tabs.closeButtons = 3 and act like it is set to 1.
Cool.

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 18th, 2014, 11:51 pm

Exalm wrote:
patrickjdempsey wrote:I didn't have have any Mail-specific support before, but v0.2 will support Mail.
Well, there was a rule to hide the close button on the first tab in MailNews. But it worked incorrectly sometimes.


All of that has been scrubbed. Totally new implementation for mail/news. ;)
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Chaa006
 
Posts: 9
Joined: February 15th, 2010, 3:45 pm

Post Posted February 19th, 2014, 7:06 am

I use Seatab and Seatabxplus 1.0, but neither is perfect IMHO. What I would like is the following :

1) Clicking on browser [X] button with two or more more tabs open :

a) On first use, asks "Close current tab or close all tabs ?"
b) Remembers answer
c) Uses that action henceforth unless changed through a user preference.

2) Retain the standard "Close tab" button in addition to the tab-specific "Close" buttons

3) Do away with the "Add new tab" feature of SeaTab-X" (I hit it accidentally far too often, and never need its functionality)

4) Hide tab-specific "Close" buttons for all tabs other than the active one, but reinstate each during tab hover.

Philip Taylor

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 19th, 2014, 1:26 pm

1. I wouldn't even begin to know how to do that but it sounds like a dangerous feature.

2. userChrome.css:
Code: Select all
.tabs-closebutton { display:-moz-box!important; }


3. SeaTab-X-2 doesn't do anything at all to the New Tab button.

4. browser.tabs.closeButtons:4
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Chaa006
 
Posts: 9
Joined: February 15th, 2010, 3:45 pm

Post Posted February 20th, 2014, 4:11 am

Thank you Patrick. I'm sorry that you don't fancy tackling (1), but I'll say no more and wait to see whether any other contributors would value it if implemented.

Philip Taylor

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted February 20th, 2014, 5:21 am

I usually just click that big X at the top of the browser when I want to close all of the tabs. ;)
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Exalm
 
Posts: 137
Joined: July 28th, 2013, 3:29 pm

Post Posted March 5th, 2014, 8:15 am

SeaTab-X-2 0.2 doesn't seem to hide close button on the first MailNews tab as well. At least other issues are fixed.
Additionally, while browser.tabs.closeButtons=3 should behave just as =1, it doesn't hide New Tab button in MailNews. :)

Return to Extension/Theme Releases


Who is online

Users browsing this forum: streetwolf and 4 guests