-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathopen_url.sublime-settings
79 lines (65 loc) · 2.5 KB
/
open_url.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// to specify your own, either edit this file, or copy/paste to open_url.sublime-settings file in your User folder
// if there is an open_url.sublime-settings in the User folder, Sublime Text merges those settings with these
{
// delimiters for expanding selection, these are markdown friendly
"delimiters": " \t\n\r\"'`,*<>[](){}",
// if these delimiting characters are seen at the end of the URL, they are removed, e.g. sublimetext.com.; becomes sublimetext.com
"trailing_delimiters": ";.:",
// the browser that Open URL uses to open new tabs
// it can be an empty string, or a string [from this list](https://docs.python.org/3.3/library/webbrowser.html)
"web_browser": "",
// the path to the executable that Open URL uses to open new tabs; overrides "web_browser"
"web_browser_path": "",
// example: chrome, osx
// "web_browser_path": "open -a /Applications/Google\\ Chrome.app %s"
// example: chrome, windows
// "web_browser_path": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s"
// example: chrome, linux
// "web_browser_path": "/usr/bin/google-chrome %s"
// if URL is neither a local file nor a web URL, pass it to a web searcher
"web_searchers": [
{
"label": "google search",
"url": "http://google.com/search?q=",
"encoding": "utf-8"
}
],
// path transforms
"aliases": {},
"search_paths": ["src"],
"file_prefixes": [],
"file_suffixes": [".js"],
// pass file that matches regex "pattern" to shell commands
"file_custom_commands": [
{ "label": "reveal", "os": "osx", "commands": ["open", "-R"] },
{
"label": "open with default application",
"os": "osx",
"commands": ["open"]
},
{
"label": "reveal",
"os": "windows",
"commands": ["explorer", "/select,"]
},
{
"label": "open with default application",
"os": "windows",
"commands": ["start"],
"kwargs": { "shell": true }
},
{ "label": "reveal", "os": "linux", "commands": ["nautilus", "--browser"] },
{ "label": "open with default application", "os": "linux", "commands": [] }
],
// pass folder that matches regex "pattern" to shell commands
"folder_custom_commands": [
{ "label": "reveal", "os": "osx", "commands": ["open"] },
{ "label": "reveal", "os": "windows", "commands": ["explorer"] },
{ "label": "reveal", "os": "linux", "commands": ["nautilus", "--browser"] },
{
"label": "open in new window",
"os": "osx",
"commands": ["/usr/local/bin/subl"]
}
],
}