Do you know if there's a way to access these shortcuts via Finder so I can 1) Create a backup, and 2) Eventually import them if I reinstall macOS?
One of the reasons I rely on KM to create app shortcuts is because it's a pain if you have to do it manually when you reinstall macOS, and worse case scenario, you forget to check which shortcuts you set and you install macOS without taking at least some screenshots...
Not that I reinstall macOS often, if ever, but it's good to know if it's possible to "export / import" those shortcuts?
Hi, @iamdannywyatt. I suspect that the information is retained in some file(s) in ~/Library/Preferences, but I generally don't modify these files because it can be risky.
My approach is somewhat low tech, but very safe. I have an Apple Note that includes the steps I've used to set up a new Mac.
In some cases, I've done the same. One advantage of native Keyboard shortcuts, however, is that the shortcut is displayed in the menu.
If the name checkbox is selected, the search search will include a n: prefix (previously it was name:).
Added a Clear Search dialog button. If selected the Search field will be cleared, the macros will be sorted by Name, and Reveal Parent Group will be selected.
This macro by @griffman is great for summarizing and maintaining your macro library. Thanks also to @ComplexPoint for the underlying JXA that @griffman used within the macro.
On a related note, the app KeyCue ($30) will let you reassign app menu shortcuts for nearly any app, on the fly. Without having tested it, I would presume that it is robust enough to keep those reassignments through an OS reinstallation.
TL;dr: I have found KeyCue particularly useful in my attempts to keep my numerous Desktop hotkeys consistent. All of my Desktop hotkeys are of the form ⌥⌘A or ⌥⇧⌘A, which is also embedded in the Desktop Names (I also have logic to sort out that ⌥⌘$ is actually ⌥⇧⌘4 so I can use "$" in the text name). When I find a collision with an app's hotkey I can change the app's hotkey rather than have to change my Desktops naming pattern and associated macro triggers and processing logic.
This sequence was more difficult to automate than I expected; and it seemed to require some inexplicable pauses to be robust. But this now works well for me and saves lots of mouse gymnastics.
You found a typo, @skillet. The sentence in question should have read...
Conversely, without the ⌥⇧ modifiers, View >Sort Macros by >Disabled to Bottom will be selected deselected if it is checked.
On a technical note, the Keyboard Maestro Editor refers to the marked state of the menu item. I choose to use the words selected and deselected (and checked) thinking that those terms are more commonly understood. (Of course with the typo, all bets are off. )
Moved documentation from a header comment to the Keyboard Maestro forum. This has two advantages: i) reduces the size of the macro, and ii) streamlines maintenance of the macro.
For conditional steps that contain simple conditions, converted If Then Else actions to Switch/Case actions. When it can be used, the latter action has two advantages: i) it occupies less vertical space in the KM editor, and ii) if the logic does not have a false branch, then the action can be configured to have only a true section.
Thanks for your update on this it is very timely. I will play with this today and probably implement this. I went to bed late after playing with and learning from MACRO: Toggle Smart Sort, v1.0
I now have to pay my brother for breaking my bedtime rule, but it was fun and great to learn from you.
I like this and in the last couple months learned about the [Switch/Case] action. I do like it a lot and try to implement it when I can for the simplicity of it and not having to leave a blank [If Then Else] action.
Thanks again for all your work and for sharing these things with everyone!