{ "title": "Go back/forward with mouse 4/5 buttons", "rules": [ { "description": "Send Ctrl + + - in VS Code", "manipulators": [ { "conditions": [ { "bundle_identifiers": ["com.microsoft.VSCode"], "type": "frontmost_application_if" } ], "from": { "pointing_button": "button4", "modifiers": { "optional": ["any"] } }, "to": [ { "key_code": "hyphen", "modifiers": ["left_control"] } ], "type": "basic" }, { "conditions": [ { "bundle_identifiers": ["com.microsoft.VSCode"], "type": "frontmost_application_if" } ], "from": { "pointing_button": "button5", "modifiers": { "optional": ["any"] } }, "to": [ { "key_code": "hyphen", "modifiers": ["left_control", "left_shift"] } ], "type": "basic" } ] }, { "description": "Send Cmd + Left/Right arrow in non VS Code apps", "manipulators": [ { "conditions": [ { "bundle_identifiers": ["com.microsoft.VSCode"], "type": "frontmost_application_unless" } ], "from": { "pointing_button": "button4", "modifiers": { "optional": ["any"] } }, "to": [ { "key_code": "left_arrow", "modifiers": ["left_command"] } ], "type": "basic" }, { "conditions": [ { "bundle_identifiers": ["com.microsoft.VSCode"], "type": "frontmost_application_unless" } ], "from": { "pointing_button": "button5", "modifiers": { "optional": ["any"] } }, "to": [ { "key_code": "right_arrow", "modifiers": ["left_command"] } ], "type": "basic" } ] } ] }