jisaacks / MaxPane

Sublime Text plugin to quickly maximize a pane in a multi pane layout without resetting the layout.
MIT License
78 stars 9 forks source link

Prevent changing pane-layout on ctrl+tab #4

Closed yckart closed 11 years ago

yckart commented 11 years ago

It would be nice if we can prevent st to change the pane-layout due ctrl+tab.

jisaacks commented 11 years ago

Can you please explain the problem better. I am pressing shift+tab and not changing panes, not even changing files. For me it works as intended. If I press shift+tab with a selection it moves the selected code to the left, otherwise it inserts a new tab.

Also what OS and ST build are you using?

yckart commented 11 years ago

@jisaacks Ah, damn sorry, my fault! I meant ctrl+tab and ctrl+shift+tab. So if we press one of these shortcuts the next/previous tab gets the focus, if we skip through all tabs and the last one is reached the next pane gets the focus. It's a bit confusing to me. I think it would better to start again at the first tab, instead switching to the next pane.

Maybe a thing where different users need different behaviours...

jisaacks commented 11 years ago

Hmm... I just tested on ST2 (build 2217) and ST3 (build 3033) on OSX and for me, the behavior you are desiring, is what I am seeing. ctrl+[shift+]tab for me is always staying in the same pane, even when I do not have a pane maximized.

yckart commented 11 years ago

Argh! A custom key-binding for this behaviour is my fault:

{"keys": ["ctrl+tab"], "command": "next_view"},
{"keys": ["ctrl+shift+tab"], "command": "prev_view"}

This swaps the tabs in its order how the are, and not how they were pushed into the stack. Any ideas how, to workaround?

yckart commented 11 years ago

Gotcha! This fixed the problem: https://github.com/borist/SublimePaneNavigation