oggy / tab-switcher

Like a window switcher for your Atom tabs.
MIT License
23 stars 11 forks source link

Always switch tabs from center pane #66

Open rixo opened 5 years ago

rixo commented 5 years ago

Hi!

Thanks and all, very useful package.

The one thing that has been bugging me for some time was that I couldn't alt-tab back to another opened file when the tree view pane was focused.

I tried to add an option to always switch tabs from the center pane, and it turned out to be pretty easy. And now I'm happy.

Would your be interested in a PR for this? Here's my change: https://github.com/oggy/tab-switcher/compare/master...rixo:always-center?expand=1

cokert commented 5 years ago

This is dope. I've applied it to my local copy. I can't imagine a situation where anyone would WANT the current/default behavior.

I've been thinking about what I'd want in a perfect world. What I've been thinking is a columnar layout where the left column is the left pane (tree view, if open), the middle column is open center tabs, and the right column is the far right pane (Git/GitHub if open). In the event that you have your center pane split, you'd have multiple columns, each with those pane's tabs.

I hadn't thought about top/bottom splits until just now. Those would be weird, and I guess you'd have to go to a kind of table/grid layout to support that scenario fully.