8000 [Feature Request] Flow too many tabs to multiple lines · Issue #76 · atom/tabs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

[Feature Request] Flow too many tabs to multiple lines #76

Closed
fungilation opened this issue Aug 14, 2014 · 20 comments
Closed

[Feature Request] Flow too many tabs to multiple lines #76

fungilation opened this issue Aug 14, 2014 · 20 comments

Comments

@fungilation
Copy link

One thing I notice from Webstorm that's great is it flows tabs onto 2 (or more?) lines when there's too many. This is a common occurrence I'm sure with many programmers having many files open, and tabs so crowded you can't read the filenames on the tabs anymore.

PS. Issue originally filed at atom/atom#3260

@Yogu
Copy link
Yogu commented Nov 16, 2014

👍 This would help me a lot.

@benogle
Copy link
Contributor
benogle commented Nov 16, 2014

This was fixed in atom/atom-light-ui#13 and atom/atom-dark-ui#35. Ref #67

In the next release, you should be able to scroll the tabs that are created off screen.

@benogle benogle closed this as completed Nov 16, 2014
@Yogu
Copy link
Yogu commented Nov 16, 2014

That's better than now, but isn't that something different? This feature request asks for the tabs to be on multiple lines. I really like this behaviour in the Firefox extension TabMixPlus, and I think it would be really nice to have this in a code editor. The benefit is that you can instantly see all the open tabs and can scan them for a file name you're looking for.

@benogle
Copy link
Contributor
benogle commented Nov 17, 2014

Stacked tabs are not something we are going to pursue. Instead, we're opting for a scrollable list of tabs.

This functionality could definitely be done in a new package or in a new theme.

@simurai
Copy link
Contributor
simurai commented Nov 17, 2014

@Yogu What theme are you using? You could also open Atom > Open Your Stylesheet and paste in this:

// Make tabs multi-row
.tab-bar {
  height: auto;
  flex-wrap: wrap;
}

.tab-bar .tab {
  flex-basis: auto;
}

It should make your tabs wrap to multiple rows:

screen shot 2014-11-18 at 6 50 12 am

It's not perfect. Like when dragging, the blue indicator isn't wrapping. And depending on the theme you're using, it might need some more fixes.

@oktayacikalin
Copy link

@simurai Hmm seems to work fine except that my active tab is being crunched to its minimum size. Any idea to fix this?

@simurai
Copy link
Contributor
simurai commented Feb 11, 2015

@TheBlackLion What's the theme you're using? And by "being crunched to its minimum size", is it about 40px so you only see a few characters?

@oktayacikalin
Copy link

@simurai "Spacegray Eighties" from the spacegray-eighties-ui package and "Base16" (Eighties, Dark) fromt he base16-syntax package. Yes, only some characters. Normally it would expand the active tab, but with this modification it rather tries to expand all other than the active tab :)

@simurai
Copy link
Contributor
simurai commented Feb 12, 2015

@TheBlackLion Ok, for "Spacegray Eighties" this should work:

// Make tabs multi-row
.tab-bar {
  height: auto;
  flex-wrap: wrap;
  .tab,
  .tab.active {
    flex-basis: auto;
  }
}

@oktayacikalin
Copy link

@simurai Thanks - works much better :). But when switching to the last tab of the first row, it suddenly flows into the next row because of the appearing close button. I'm now using flex-basis: 10em; as a workaround. This does not happen if I just hover over the tabs. Any idea?

@simurai
Copy link
Contributor
simurai commented Feb 13, 2015

Hmm.. ya, there is some expanding on the active tab. But this should keep it at the same size:

// Make tabs multi-row
.tab-bar {
  height: auto;
  flex-wrap: wrap;
  .tab,
  .tab.active {
    flex: 1 0 auto;
    height: 30px;
    line-height: 27px;
  }
  .tab .title,
  .tab.active .title {
    padding-right: 5px;
    position: relative;
    top: 1px;
  }
  .tab .close-icon,
  .tab.active .close-icon {
    line-height: 29px;
  }
}

@oktayacikalin
Copy link

@simurai Now that seems to work perfectly - thank you very much, sir :)

Now who is gonna put it into a package? :)

@fungilation
Copy link
Author

+1 as a package. Completely "native" looking on the new One UI theme

@geekygrappler
Copy link

Very nice, thanks @simurai

8000
@kuychaco
Copy link
Contributor

@simurai @fungilation - Here's that atom package you were asking for: https://atom.io/packages/multirow-tabs

@simurai
Copy link
Contributor
simurai commented Oct 20, 2015

@kuychaco Awesome! Works in most themes. Some themes that don't work probably use a stronger selector. Just checked atom-material-ui which adds !important to its height. Not sure if you wanna battle back with also adding !important. 💥

@fungilation
Copy link
Author

Nice, thanks @kuychaco. Made a request though on remembering multirow setting between Atom restarts? kuychaco/multirow-tabs#5

@crogersdev
Copy link

Thanks, @kuychaco and @simurai !! 👍

@sfaleron
Copy link

I'm not a fan of the way scrolling works. Geany implements this as what I'll call "panning" but it's still a sort of scrolling. Geany scrolls through the tabs, but doesn't switch tabs until you click one. This is a lot less disorienting, and usually one isn't interested in inspecting each tab along the way. Random access, not sequential!

@calebmeyer
Copy link

An alternative solution is just to keep your tab count low. With ctrl-p being fast and reasonably accurate, you can switch using it fairly easily. A package like https://atom.io/packages/zentabs can do this for you automatically.

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

No branches or pull requests

10 participants
0