ttscoff / KeyBindings

DefaultKeybindings.dict for Mac OS X
733 stars 99 forks source link

Is there a way read and export macOS default keybinding before put files to `~/Library/KeyBindings/`? #17

Closed suliveevil closed 2 years ago

suliveevil commented 2 years ago

https://forum.keyboardmaestro.com/t/os-x-text-system-keybindings/4929

plutil -convert xml1 \
/System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict -o - | \
pl | grep -v noop: | ruby -pe'$_.gsub!(/[^ -~\n]/){"\\U%04x"%$&.ord}'
hym3242 commented 8 months ago

Don't forget those symbols in AppKit, and those default key bindings not listed in StandardKeyBinding.dict like ctrl+q (quoted-insert, insert special symbols and literal bytes)