Skip to content

"Import settings" does not clear out shortcut keys that doesn't exist in the imported config. #1346

Closed

Description

@wolf0403
  • This is a new bug that hasn't been documented in a closed issue or in the Readme.

macOS version: 14.4
Rectangle version: 0.76(82)
Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

steps:

  1. Config shortcut keys, clear out a few (e.g. i left "Almost Maximize" to "Record Shortcut" in Settings)
  2. Export and save the settings JSON file.
  3. Add shortcut for e.g. "Almost Maximize"
  4. Import the JSON settings file previously exported

I was hoping this would set the shortcut keys to exactly the state I exported it, but seem at least the shortcut keys that were not in the JSON settings were kept untouched rather than cleared.

Activity

  1. added
    bug
    on Mar 13, 2024
  2. rxhanson commented on Mar 13, 2024

    @rxhanson
    Owner

    Thanks for reporting. I'll slate this one for the next release.

  3. wolf0403 commented on Mar 13, 2024

    @wolf0403
    Author

    Also, probably should be a separate issue - this may cause conflict shortcut keys to co-exist.

    On my machine 2 with default (?) shortcut keys ctl-opt-g is mapped to "Last Third" (by default?)
    On my machine 1 I cleared "Last Third" and assigned ctl-opt-g to "Maximize".
    I exported config from machine 1, imported in machine 2, which sets "Maximize" to ctl-opt-g but "Last Third" is also ctl-alt-g and seems to be taking precedent. It also seems I'll need to remove all conflicting shortcut keys and re-assign it to the one I want for it to take effect, which defeats the purpose of importing config entirely :)

    Also this isn't super obvious as the "thirds" are by default hidden in the setting panel.

    While trying to work out the behaviour here I'm surprised that I can actually assign the same shortcut keys to different functionality and UI would silently accept it (the previously assigned functionality will never be activated even if I clear out the shortcut key on the newly assigned slot - need to clear both and re-assign).

    Detecting and warning about conflicting shortcut keys in Settings UI and importing config could probably be a separate FR.

  4. wolf0403 commented on Aug 28, 2026

    @wolf0403
    Author

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions