Preserve Last Known Window Position When Showing/Hiding Terminal #23230

Open
opened 2026-01-31 08:36:02 +00:00 by claunia · 2 comments
Owner

Originally created by @arhe1on on GitHub (May 5, 2025).

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

Originally created by @arhe1on on GitHub (May 5, 2025). ### 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_
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 08:36:04 +00:00
Author
Owner

@DHowett commented on GitHub (May 7, 2025):

Oh hey! If you're using the globalSummon action, you can configure whence the window is summoned using a couple of the additional knobs we expose. Does that help/?

One of the examples in there is...

// Summon the MRU window to the current desktop, leaving the position of the window untouched.
{ "command": { "action": "globalSummon", "monitor": "any" }, "id": "User.MyGlobalSummonAnyMonitor" },
@DHowett commented on GitHub (May 7, 2025): Oh hey! If you're using the `globalSummon` action, you can [configure whence the window is summoned](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#parameters-32) using a couple of the additional knobs we expose. Does that help/? One of the examples in there is... ```jsonc // Summon the MRU window to the current desktop, leaving the position of the window untouched. { "command": { "action": "globalSummon", "monitor": "any" }, "id": "User.MyGlobalSummonAnyMonitor" }, ```
Author
Owner

@arhe1on commented on GitHub (May 9, 2025):

Yes, it helped.Thank you very much!

@arhe1on commented on GitHub (May 9, 2025): Yes, it helped.Thank you very much!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23230