Sublime Forum

How to set the shortcut for the browser(e.g.Chrome) of mac?

#1

How to set the shortcut for the browser(e.g.Chrome) of mac about Side​Bar​Enhancements in sublime 3???

In the windows , do the following set on “Side​Bar​Enhancements” can make the web page quickly open in the browser.

{ “keys”: “ctrl+shift+c”], “command”: “copy_path” },
//firefox
{ “keys”: “f1”], “command”: “side_bar_files_open_with”,
“args”: {
“paths”: ],
“application”: “C:\software\Browser\Mozilla Firefox\firefox.exe”,
“extensions”:"."
}
},
//chrome
{ “keys”: “f2”], “command”: “side_bar_files_open_with”,
“args”: {
“paths”: ],
“application”: “C:\Users\Mr.DenGo\AppData\Local\Google\Chrome\Application\chrome.exe”,
“extensions”:".
"
}
},
//ie
{ “keys”: “f3”], “command”: “side_bar_files_open_with”,
“args”: {
“paths”: ],
“application”: “C:\Program Files\Internet Explorer\iexplore.exe”,
“extensions”:"."
}
},
//safari
{ “keys”: “f4”], “command”: “side_bar_files_open_with”,
“args”: {
“paths”: ],
“application”: “C:\software\Browser\Safari\safari.exe”,
“extensions”:".
"
}
},
//opera
{ “keys”: “f5”], “command”: “side_bar_files_open_with”,
“args”: {
“paths”: ],
“application”: “C:\software\Browser\opera\opera.exe”,
“extensions”:".*"
}
}
]

But in the Mac ,how to set Side​Bar​Enhancements in sublime3???
e.g.
F1 open chrome .
F2 open sifiri.

I’m not very good at using MAC system (10.10.3).
Best to give a configuration file, thank you very much.

0 Likes

#2

Preferences -> Key bindings - User:


    {
        "keys": "f1"], "command": "side_bar_open_in_browser",
        "args": { "paths": ], "type": "testing", "browser": "firefox" }
    }, {
        "keys": "f2"], "command": "side_bar_open_in_browser",
        "args": { "paths": ], "type": "testing", "browser": "chrome" }
    }, {
        "keys": "f3"], "command": "side_bar_open_in_browser",
        "args": { "paths": ], "type": "testing", "browser": "safari" }
    }, {
        "keys": "f4"], "command": "side_bar_open_in_browser",
        "args": { "paths": ], "type": "testing", "browser": "opera" }
    }
]
0 Likes