fix(import): importing a config does not clear shortcuts
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
[!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.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 156
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rxhanson/RectanglePro-Community
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
rxhanson/RectanglePro-Community#943 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
rxhanson/RectanglePro-Community#939 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
rxhanson/RectanglePro-Community#937 · 4 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
rxhanson/RectanglePro-Community#936 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
rxhanson/RectanglePro-Community#935 · 1 bình luận ·
Tất cả issue của rxhanson/RectanglePro-Community
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NousResearch/hermes-agent#151154 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: on hover a tab's name in Cra stops ~16 pt short of Arc's, with 24 pt of air before the ✕Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
VictorKildahl/cra#243 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bggRGjQaUbCoE/PiliPlus#3522 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày