✨ Resizing adjacent windows

未关闭
#264 12 条评论 11 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@mrkai77 已经在做这个了。

开始于 2024年3月24日。

评估

这个 Issue 还没有评估数据。

描述

Feature
Feature Request Description

When using macOS's split-view feature, the ability to adjust the middle divider for dynamic window resizing is quite useful, as demonstrated here:

https://github.com/MrKai77/Loop/assets/2030968/a6a5d008-5c15-40fb-b0a9-98289d43caa2

It would be cool if similar logic can be supported by Loop. Here's what I envision for this feature:

  • Dynamic Window Resizing: Adjusting the size of one window should cause adjacent windows to resize accordingly, maintaining its alignment.
  • Unified Adjustment for Shared Borders: Windows hidden behind the active window, which share a border with the resized window, should also resize dynamically. This creates a consistent layout and alignment.
  • Padding Support: Adjustments should respect user-defined padding settings to maintain the visual consistency and usability of the workspace.

A potential implementation could involve user-adjustable virtual grid lines. Currently, the default possible grid (excluding the "Almost Maximize" setting) looks something like the following if I'm not mistake.

Frame 8

As an example, if a window is snapped to the Top Left Third and the user resizes it downward, all windows within this cell should reflect the change. Moreover, future window snaps would adhere to the adjusted layout. Here's what a 2 x 3 layout adjustment might look:

Frame 9

In terms of how Loop will detect and respond to window resizing actions would still be up for discussion. You could listen to window resizing events from the OS or implement a custom solution making use of preview windows, which might better reflect the impact of the resize on all windows.

I'm keen to hear your thoughts on this proposal and whether it aligns with your vision for Loop's evolution.

Screenshots

No response

Additional Context

No response

Final Checks
  • My issue title is descriptive
  • This is a single feature request (multiple feature requests should be reported individually)
主要语言
Swift
星标
11.9k
派生
283
平均合并
12 小时 16 分钟
30 天内合并 PR
7

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mrkai77/Loop 的其他 Issue

查看 mrkai77/Loop 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。