Open denrinm opened 2 months ago
Hi denrinm,
Yes, PinchBar is built with Xcode. But you don't need to recompile as it can be configured via macOS's defaults command.
I've zipped and uploaded a plist file of PinchBar's settings with the changes you asked for. To import those settings into PinchBar:
cd Downloads
)defaults import com.pnoqable.PinchBar PinchBar.plist
➜ Devel defaults import com.pnoqable.PinchBar PinchBar.plist ➜ Devel defaults read com.pnoqable.PinchBar { appPresets = { Cubase = Cubase; }; presets = { Cubase = { 0 = { flags = 1048576; replaceWith = { wheel = { }; }; sensivity = 200; }; 1048576 = { flags = 524288; replaceWith = { keys = { codeA = 5; codeB = 4; }; }; sensivity = 5; }; 524288 = { flags = 131072; replaceWith = { keys = { codeA = 5; codeB = 4; }; }; sensivity = 5; }; }; "Cubase 13" = { 0 = { flags = 1048576; replaceWith = { wheel = { }; }; sensivity = 200; }; 1048576 = { flags = 1572864; replaceWith = { wheel = { }; }; sensivity = 500; }; 524288 = { flags = 1179648; replaceWith = { wheel = { }; }; sensivity = 500; }; }; "Font Size" = { 0 = { flags = 1048576; replaceWith = { keys = { codeA = 44; codeB = 30; }; }; sensivity = 5; }; 1048576 = { flags = 0; sensivity = 1; }; }; "Font Size/cmd" = { 0 = { flags = 0; sensivity = 1; }; 1048576 = { flags = 1048576; replaceWith = { keys = { codeA = 44; codeB = 30; }; }; sensivity = 5; }; }; }; }Note that [modifier flags](https://learn.microsoft.com/en-us/dotnet/api/coregraphics.cgeventflags) (i.e. 0 and 6/7 digit numbers) appear on both sides of equal sign: Left of = means *Filter for pinch events with this or these modifier keys held down* (e.g. 0 means *with no modifier key down*), right of *flags =* means *replace modifier flag(s) with this one(s)*. For multiple simultanious modifier keys simply add their modifier flags, e.g. CMD + ALT = 2^20 + 2^19 = 1048576 + 524288 = 1572864. If you have Xcode installed, editing plist files is straightforward.
Feel free to ask here again if you have trouble importing or editing this plist file. I have added an import/export function for json files on the experimental branch which I could release in a quick patch. This makes changing and testing PinchBar's settings way easier.
Hello,
I would like to request the ability to change the modifier key for vertical zoom from the Command key to the Option key. This would help create consistency with Ableton Live, where vertical zoom is performed using the Option key and pinch gestures.
Additionally, I would like to invert the current behavior:
If adding this feature is not possible, could you please guide me on where in the code I need to change the parameters to achieve this inversion, and how to recompile the code afterward? Additionally, could you confirm if Xcode is used for recompilation?
Thank you for your help.