compiler-explorer / compiler-explorer/compiler-explorer
[REQUEST]: Open compiler output tabs next to compiler tab
- Dominant language
- TypeScript
- Stars
- 19.1k
- Forks
- 2.1k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 67
Description
### Is your feature request related to a problem? Please describe
When I click Output to open the output tab, sometimes the tab opens far away from the associated compiler and I have a moment of confusion while I try to find where it ended up.
### Describe the solution you'd like
I'd like the Output to open as a tab within the same docking location as the compiler itself. In the gif below you can see where I end up moving Output tab, and that's the location I want it to open by default.
### Describe alternatives you've considered
I imagine this may not be desirable when the compiler is the only tab. In that case it makes sense for the new Output tab to create a new docking area and split the available space with the compiler so both are visible. I can see two potential solutions:
1. Use a heuristic. If there's only one compiler tab, open the Output in a new docking location. If there's more than one compiler tab, open the Output within the same docking location as the compiler.
2. Always open new compiler related tabs in the same docking location as the compiler tab that opened them. This has the benefit of being easier to understand.
Neither opening tabs in a new docking location or within the same docking location is going to be what the user wanted 100% of the time. I figure the right default is to open the tab somewhere predictable and easy to find, rather than in a potentially hard to predict place. From that perspective, option 2 seems quite reasonable.
### Additional context
In this gif you can see that I have 3 compilers open in a column. When I click Output on the top compiler the output tab opens at the bottom of the column next to the bottom compiler. I then need to move the output tab next to the compiler it is meant for.

Contributor guide
Assessment
This issue has not been assessed yet.