[ // Associate mouse buttons to Sublime Text commands: // - middle button to set a bookmark // - go-left button to go to previous bookmark // - go-right button to go to next bookmark // - ctrl go-left button to go to previous file // - ctrl go-right button to go to next file // - shift go-left button to go to extend selection to the beginning of the line // - shift go-right button to go to extend selection to the end of the line // Idea from https://stackoverflow.com/questions/25085502/sublime-text-modifying-linux-mousemap-to-use-4th-mouse-button#25085503 { "button": "button3", "command": "toggle_bookmark" }, { "button": "button8", "command": "prev_bookmark" }, { "button": "button9", "command": "next_bookmark" }, { "button": "button8", "modifiers": ["ctrl"], "command": "prev_view" }, { "button": "button9", "modifiers": ["ctrl"], "command": "next_view" }, { "button": "button8", "modifiers": ["shift"], "command": "run_macro_file", "args": { "file": "res://Packages/User/copy-to-the-beginning-of-the-line.sublime-macro" } }, { "button": "button9", "modifiers": ["shift"], "command": "run_macro_file", "args": { "file": "res://Packages/User/copy-to-the-end-of-the-line.sublime-macro" } } ]