microsoft / microsoft/terminal
Preserve Last Known Window Position When Showing/Hiding Terminal
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Description of the new feature
I would like to suggest adding the ability to preserve the window position of the terminal before it is closed or hidden, so that when reopened using hotkeys, it appears in exactly the same screen location where it was previously opened. Currently, upon re-opening with a hotkey, the terminal window automatically displays on the monitor which currently has input focus, making it inconvenient while working with applications that heavily rely on console output for debugging or monitoring processes.
An ideal solution would be an option allowing users to choose whether the terminal should remain at its original position or switch between monitors based on current input focus.
### Proposed technical implementation details
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the terminal window's hide, close, and hotkey reopen behavior in the C++ codebase; the issue does not name specific files or tests. Done means the terminal can preserve its last window position when reopened, with an option to instead use the monitor with input focus.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100