benjaminRomano / bottom-dock

Generic bottom dock for Atom
https://atom.io/packages/bottom-dock
MIT License
17 stars 1 forks source link

An option to hide the tabs panel #5

Closed laughedelic closed 8 years ago

laughedelic commented 9 years ago

I use only todo-manager plugin with this dock and I think that this panel with one open tab is not very useful for me. It takes space on the screen and the highlighted tab is a bit distracting. Regarding the controls, they could be useful, but I still can access them with the hotkeys. So what I'm asking for is an option to hide this panel if there is only one tab (or some keybinding to toggle it?).

benjaminRomano commented 9 years ago

So, I've given some thought about the best way to handle one panel, and I think I'm going to handle it the same way visual studio does.

They hide the tabs when there is only one panel. As show below in the picture.

1 Panel

image

multiple panels

image

In making this change, I would also copy the way Visual Studio handles the close button by creating a header on the panel.

What do you think about this approach? Do you think the header is just as annoying?

wldcordeiro commented 8 years ago

Settings view: checkboxes for panels to show/enable. Simplest solution imo.

benjaminRomano commented 8 years ago

I already fixed this problem. I just made it that if only one tab is present than it hides the tab panel.

laughedelic commented 8 years ago

thanks :+1: