[Added] Edit Shortcuts: Can now export and import

Want to submit a new feature, an enhancement ? Do it here !
Post Reply
porg
Posts: 554
Joined: Tue Apr 05, 2022 1:04 pm
Country: Austria

[Added] Edit Shortcuts: Can now export and import

Post by porg »

Edit Shortcuts offers:
✅ "Reset to Defaults"
✅ "Export List" which exports all (customized) shortcuts into a simple text file with one line per shortcut in the format: Menu→path→to→command TAB key-combo.
👉 Please also offer the complimentary "Import Shortcuts Backup" command.

~/Library/Application Support/GraphicConverter/Backup/Preferences.xml has:

Code: Select all

<key>GCCustomShortcuts_en-AT</key>
<data>YnBsaXN0MDDUAAE… very long encoded blob</data>
But I do not know how to encode my plain text menu command list into this data blob.

Benefits of this feature
+ Backup and restore
+ Create shortcuts.txt and assign shortcuts in that text file manually which fail assigning in the UI such as Edit Shortcuts: Cannot assign shortcut combo CTRL plus letter and then import the shortcut list.
Last edited by porg on Tue Nov 01, 2022 4:28 pm, edited 2 times in total.
User avatar
forum_adm
Site Admin
Posts: 1814
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Edit Shortcuts: Please offer import as you already offer export

Post by forum_adm »

The export list uses the local language and is not designed for reimport.

I can add an export/import as data - so, it can i.e. used for sharing of shortcut settings.
porg
Posts: 554
Joined: Tue Apr 05, 2022 1:04 pm
Country: Austria

Re: Edit Shortcuts: Please offer import as you already offer export

Post by porg »

Export/Import as data-blob
- Certainly useful for sharing of shortcut settings
- But not useful for export to external config-file, edit config-file per hand (as alternative for assigning per UI), import.

Why is it not possible to import the exported plaintext config file?
porg
Posts: 554
Joined: Tue Apr 05, 2022 1:04 pm
Country: Austria

Re: Edit Shortcuts: Please offer import as you already offer export

Post by porg »

Initial issue (in separate post)

❌ 1) Assigning CTRL + single letter within the dialog "Edit Shortcuts" got marked as [Unfixable upstream bug] as Apple does not provide a keyDown method for the CTRL key.

✅ Closing this issue as [Added] after I tested build 5644

Nevertheless Export/Import is now working and provides a functioning workaround for the need to shortcuts with the CTRL key:

✅ 2) Export list. Works.

✅ 3) You can then insert the needed menu path and your desired shortcut combo (CTRL + single letter, e.g. "⌃Q" ) by help of a text editor.

✅ 4) Import list. Works.

ℹ️ I also do not see any parsing problems on the horizon: Or does any menu label contain a literal arrow-symbol "→" (used to separate menu path items) or TAB character (used to separate the shortcut) ?
Post Reply