Change Ctrl+Tab behavior in editor to scroll through recent tabs
Currently combination "Ctrl+Tab" just switches to the next Tab in editor. That's not particulary convenient especially considering that "Ctrl+Shift+Tab" does not work, as Stadia captures that.
Another issue with current implementation is that when we reach "Game" tab, same combination starts to work on "Entities" -> "World" -> "Game" which is confusing and basically prevents us from reaching the tab before the current.
I think that better implementation would be to scroll through the recently used tabs, which are placed on stack. That's what vscode does when you use "Ctrl+Tab" there. There's a stack of all tabs and they are sorted in the order of last use. When I press ctrl and one tab (without unpressing ctrl) I see the current state of the stack and second row is selected (first is current tab, second is the last used before, third is the one used before second, etc). So if I qickly use ctrl+tab combination, editor should open the tab, which was open just before current one. But if I hold ctrl and press tab more than once, I could locate myself further in history. Finally when I release ctrl, the new tab goes out of stack (not really how stack works actually, but whatever, that's just a term) and is placed on top of it (exactly how stack works).
In this implementation moving in a backward direction ("Ctrl+Shift+Tab") would not really be needed (I never use it in vscode) and the most often case of working on a script+game or script+uiwidget or pair of scripts would be much easier than currently.
Please sign in to leave a comment.
Comments
0 comments