Since Apple decided to give us shortcuts for all the text options except strikethrough, how can we do this with one keyboard stroke?
I saw some other solutions, but I want my Cmd+Shift+x shortcut back!!
It doesn't need any 3rd party solution, you can do this natively.
System Prefs > Keyboard > Shortcuts > App Shortcuts.
Click the + sign, select the Notes app [or all apps], the name of the menu command & add the key command of your choice.
BTW, the native functionality doesn't care where in the menu hierarchy it is, it will find it anyway. The only time you ever need to specify is if there are two identically-named functions in different menus in which case you can force a specific menu by menu name->sub menu->function
syntax
Another way, utilizing the DefaultKeyBinding.dict
, is to add a line to your ~/Library/KeyBindings/DefaultKeyBinding.dict
:
{
"^-" = "strikethrough:"; //this would bind ctrl+-
}
For documentation see https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html. Please do a google search for how to specify other keys.
The benefit of this method is obvious. The DefaultKeyBinding.dict is much more customizable, including the possiblity to define multi-keystroke bindings; Not all apps populate their menu bar with the "font" submenu; Also I suspect this is simply faster since it is more direct.
I discovered that I can use the Better Touch Tool app to do this super easily!
I added the Notes app specifically and made a Trigger Menubar Menu-item
shortcut with the text Format;Font;Strikethrough
that works on Mac OS 11.2.1 that I'm on now.
Works like a charm! It's like they never removed it!