-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening a new terminal window does not restore the previous window's size and position on the screen #12633
Comments
Do you have window layout saving enabled? In Settings -> Startup -> "When Terminal starts" select the "Open windows from a previous session" option. |
I don't want that, nor should I need that enabled to have this. Edit: I even explicitly mentioned that option in my issue. No edits. |
Alright so this is a new feature request - a setting to use the So then it makes more sense to put this as another radio option in "When Terminal starts...". Or like, a checkbox under the "Open a tab with the default profile", that only |
An option doesn't really make sense to me. I don't really want anything complicated. I just want the default windowing behaviour I've come to expect from other apps. 🤷 |
We already have some other settings to control where the window is positioned and how big it is, so already we're off the rails of "other apps". I'm of the strong opinion that user preference is king - I'd love to give everyone as many knobs to control the Terminal as possible, to make it work exactly like they'd like. |
Good defaults are always nice tho :) |
I agree, it should just work its standard windows behaviour. Should respect the monitor it was on as well. Let people override if required but please follow principle of least surprises. |
Discussion outcome: This probably needs a miniature spec (AKA: we agree on it in the issue, and check in a quick markdown document about it) as the team couldn't come to consensus on whether this is a |
Thanks for bringing the outcome here! |
Hah just came here to report this, I was thinking of two suggestions:
|
FWIW: Option to always spawn at a set of coordinates OR at the center of the screen are already settings. Unifying those two with bullet point 2 is the one that this issue is tracking - finding a good way of exposing that setting to the user both as a UI and in json is the hard part. |
Oh my bad, sorry. I didn't see it in the UI options. |
This comment was marked as resolved.
This comment was marked as resolved.
Nope. We'll make sure to update this thread when there is. In the meantime, might I recommend the Subscribe button? As it stands, this issue remains at:
If someone wants to sort out how exactly this should be implemented, we'd be more than happy to review a writeup Some notes, march 2023:
around 434abc2 (during #14825), this was actually almost trivially easy. We made the logic concerning the number of tabs persisted a bit more strict, but honestly, I think we could undo that easily. Commit 1b59eb9 was the one to enforce the "we must have tabs" thing |
FWIW, and when it comes to the implementation specifically, I believe this should use the |
Is this still an open bug? I'm unable to get Windows Version 10.0.19045 Build 19045 settings.json:
Steps to reproduce:
Expected behaviour:terminal opens on monitor two, with previous state Observed behaviour:terminal opens on monitor one in a "default" state. (though not one explicitly set) note: as alluded to above, I worked around this bug by hard-coding a window position, but now if I start a second terminal instance, it perfectly overlaps the first, instead of being offset by ~50px as usually happens when letting Windows decide. |
Windows Terminal version
1.13.10395.0
Windows build number
10.0.19044
Other Software
No response
Steps to reproduce
Expected Behavior
Terminal would open the window in the same position and size
Actual Behavior
The position and size are reset.
Note: I am not referring to session restore on start-up like you'd find in a web browser that can be enabled optionally. I'm referring to regular behaviour that people expect on desktop operating systems. And in particular, this makes it easier to use on smaller screens such as laptops.
The text was updated successfully, but these errors were encountered: