[PR #9785] Make the window name _quake special #27753

Open
opened 2026-01-31 09:24:01 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/9785

State: closed
Merged: Yes


Summary of the Pull Request

This PR adds some special behavior to the window named "_quake".

  • When creating the quake window, it ignores "initialRows" and "initialCols" and opens on the top half of the monitor.
    • It uses initialPosition to determine which monitor this is
  • It cannot be moved
  • It can only be vertically resized on the bottom border.
  • It's always in focus mode.
    • We should probably have an issue tracking "Allow showing tabs in focus mode"? Maybe?
    • This one element is maybe the one I'm least attached to

When renaming a window to "_quake", it adopts all those behaviors as well. It does not exit focus mode when leaving QM, nor does it resize back. That seemed unnecessary.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

Note that this doesn't do things like:

  • dropdown
  • global hotkey summon
  • summon to the current monitor
  • summon to the current desktop

I'm doing #653 very piecemeal, to try and make the PRs less egregious.

Validation Steps Performed

  • validated that center on launch still works
  • validated that QM works on different monitors based on initialPosition
  • validated entering/exiting QM behaves as expected

TODO!

  • When snapping the quake window between desktops with win+shift+arrow, the window doesn't horizontally re-size to the new monitor dimensions. It should.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/9785 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This PR adds some special behavior to the window named "\_quake". * When creating the quake window, it ignores "initialRows" and "initialCols" and opens on the top half of the monitor. - It uses `initialPosition` to determine which monitor this is * It cannot be moved * It can only be vertically resized on the bottom border. * It's always in focus mode. - We should probably have an issue tracking "Allow showing tabs in focus mode"? Maybe? - This one element is maybe the one I'm least attached to When renaming a window to "\_quake", it adopts all those behaviors as well. It does not exit focus mode when leaving QM, nor does it resize back. That seemed unnecessary. ## References * As spec'ed in #9274 * See also #8888 ## PR Checklist * [x] In the pursuit of #653 * [x] I work here * [ ] Tests added/passed * [ ] Requires documentation to be updated, but I'm not gonna do any of that till quake mode is totally done. ## Detailed Description of the Pull Request / Additional comments Note that this doesn't do things like: * dropdown * global hotkey summon * summon to the current monitor * summon to the current desktop I'm doing #653 _very_ piecemeal, to try and make the PRs less egregious. ## Validation Steps Performed * validated that center on launch still works * validated that QM works on different monitors based on `initialPosition` * validated entering/exiting QM behaves as expected ## TODO! * [ ] When snapping the quake window between desktops with <kbd>win+shift+arrow</kbd>, the window doesn't horizontally re-size to the new monitor dimensions. It should.
claunia added the pull-request label 2026-01-31 09:24:01 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27753