compiler-explorer / compiler-explorer/compiler-explorer

[REQUEST]: Open compiler output tabs next to compiler tab

Open
#7,227 1 comment 0 reactions 0 assignees View on GitHub
request
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.

![Output Window Location](https://github.com/user-attachments/assets/2e0c6ded-cc55-4c1b-aa7d-47a0068e378b)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.