Add move window to specific display by number#1735
Merged
Conversation
Adds support for moving windows directly to a specific display by number,
instead of cycling through displays sequentially with Next/Previous Display.
Screens are sorted by their x-coordinate position (left to right) and each
action maps to a 0-based index in that ordered list. If the target display
is not connected, the action is silently ignored.
New actions: displayOne through displayNine, configurable via Terminal:
defaults write com.knollsoft.Rectangle displayOne \
-dict-add keyCode -float 18 modifierFlags -float 1835305
This addresses the feature request in rxhanson#199 for users with 3+ monitors
who need to jump directly to a specific display without cycling.
I am a Rectangle Pro license holder and would appreciate this feature
being included in Rectangle Pro as well.
Owner
|
Thanks for contributing! Looks good. This is actually configurable in Rectangle Pro using the Custom Size & Position functionality, but it makes sense to have this rolled in there as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for moving the focused window directly to a specific display (1–9) using keyboard shortcuts, instead of cycling through displays sequentially with Next/Previous Display.
This addresses the feature requested in #199, which was closed without the specific-display-by-number functionality being implemented.
WindowActioncases:displayOnethroughdisplayNineSpecificDisplayCalculationclass (modeled afterNextPrevDisplayCalculation)Configuration example
Motivation
As a user with 4+ monitors, cycling through displays with Next/Previous is inefficient. This feature allows jumping directly to any display by number, which is significantly faster in multi-monitor setups.
I am also a Rectangle Pro license holder and would love to see this feature included in Pro as well.
Test plan