I found three preferences files in ~/Library/Preferences for BTT, and I'd like to sync them with Git. However, when I convert them to XML format, BTT switches them back to binary.
Before I write a script that copies the preferences to another folder, convert, push/pull, copy back, I was wonder if there was a better way?
(There were twoother posts about this, but no replies.)
I don't think you'll be happy syncing BTT with git.
BTT uses sqlite databases, various files and the standard macOS user defaults system (which is what you are referring to). It names its files after the current version (for being able to downgrade), which also makes using git for this pretty hard. The formats of the files can't be changed.
These are the relevant folders/files:
~/Library/Application Support/BetterTouchTool
~/Library/Preferences/com.hegenberg.BetterTouchTool.plist
yep, that should work better.
You can also automatically load & override a preset on launch. By default it's using ~/.btt_autoload_preset.json, this can be overridden via defaults write com.hegenberg.BetterTouchTool BTTAutoLoadPath "~/somepath"