Add Hotkeys and HUD for Adjusting Maximum Window Count Setting #1802
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.
Add Window Limit Hotkey Controls and Enhanced HUD System
🚀 Summary
This PR introduces keyboard hotkey controls for adjusting the window limit feature and enhances the existing HUD system to be more universal and responsive. Users can now dynamically increase/decrease the maximum window count per screen using keyboard shortcuts, with immediate visual feedback through an improved HUD display.
Closes #1799
🎯 What's Changed
1. Universal HUD System Refactor (
cf34654
)Enhanced
LayoutNameWindow
with dynamic width sizingdisplayNotification(title:description:)
method for flexible HUD contentresizeToFitText()
for automatic window sizing based on text lengthImproved
ScreenManager
with universal HUD capabilitiesdisplayCustomHUD(title:description:)
for reusable HUD functionalitydisplayLayoutHUD()
to use the new universal system2. Window Count Hotkey Controls (
ac5ae4a
)New Hotkey Commands
increase-window-max-count
: Increment window limit by 1decrease-window-max-count
: Decrement window limit by 1 (minimum 0 for unlimited)Enhanced User Configuration
increaseWindowMaxCount()
anddecreaseWindowMaxCount()
methodsenablesWindowCountHUD()
configuration optionWindow Count HUD Display
displayWindowCountHUD()
method inWindowManager
UI Integration
🎮 How to Use
Configure Hotkeys: Go to Preferences → Shortcuts and set your preferred key combinations for:
Enable HUD Feedback: In General preferences, enable "Notify when changing maximum window count" to see visual feedback when adjusting limits
Adjust Window Limits: Use your configured hotkeys to dynamically adjust the maximum window count
🔧 Technical Details
docs/window-limit.md
📝 Configuration
The feature adds these new configuration options:
enables-window-count-hud
: Boolean to enable/disable HUD feedbackincrease-window-max-count
: Hotkey binding for incrementing limitdecrease-window-max-count
: Hotkey binding for decrementing limit✨ Benefits
This enhancement makes the existing window limit feature more accessible and user-friendly, providing a smooth workflow for users who frequently adjust their workspace constraints.