fix(import): importing a config does not clear shortcuts
还没有人认领这个 Issue。
评估
调研方向
This repository holds bug reports and discussion for Rectangle Pro, so the fix is in the app's source, which the payload does not link. Start from the linked Rectangle issue #1346 and PR #1805, which fixed the same import behaviour in the free app. Done when importing a config with an empty or missing shortcuts entry leaves that action unbound, and a partial file leaves all other actions unset.
由索引模型根据 Issue 内容生成。
描述
[!NOTE]
Written by Cursor Grok 4.6 on behalf of @techneissa.
What happens
Import Config applies shortcuts that have a keyCode in the JSON. Shortcuts that were cleared (the row shows Record Shortcut, and the export either omits the action or writes {}) stay as they were on this Mac.
Empty objects in shortcuts are treated the same as missing keys. After import, those rows still fire the old combination.
What should happen
Import should make the shortcut set match the file. A cleared action in the export should be cleared on this Mac. An action omitted from shortcuts should be cleared too.
How to see it
- Bind Top Left (or First Third) to any combination.
- Export the config.
- In the JSON, set that action to
{}(or delete the action). - Bind Top Left to a different combination in the app.
- Import the edited file.
The row still shows the combination from step 4, not Record Shortcut.
Where to look
The free app had the same bug in Rectangle #1346. That one was later fixed by PR #1805 ("Clear omitted shortcuts when importing config") in Rectangle 0.99. Rectangle Pro still skips those actions on import.
Done when
- Importing a config whose
shortcutsentry is{}, or missing, leaves that action with no shortcut. - Importing a file that only lists the shortcuts you want leaves every other action unset, not at its previous binding.
- 主要语言
- 没有语言数据
- 星标
- 156
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rxhanson/RectanglePro-Community 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
rxhanson/RectanglePro-Community#943 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
rxhanson/RectanglePro-Community#939 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
rxhanson/RectanglePro-Community#937 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
rxhanson/RectanglePro-Community#936 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 43/100
rxhanson/RectanglePro-Community#935 · 1 条评论 ·
查看 rxhanson/RectanglePro-Community 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
dotnet/wpf#12108 · 3 个 reaction ·
维护者通常 1 天内回复
-
0.kind: enhancement 9.needs: package (update)
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
manaflow-ai/cmux#38864 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
Yu-tao-Li/dsh-computer-use-win#76 ·
维护者通常 1 天内回复