Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 3ef0d65

Browse files
committed
use 'edit_settings' sublime command
1 parent 5b37c84 commit 3ef0d65

2 files changed

Lines changed: 36 additions & 77 deletions

File tree

Default.sublime-commands

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,18 @@
5959
},
6060
{
6161
"caption": "ST: Setup Connections",
62-
"command": "open_file",
63-
"args": {"file": "${packages}/User/SQLToolsConnections.sublime-settings"}
64-
},
65-
{
66-
"command": "open_file",
67-
"args": {"file": "${packages}/SQLTools/SQLTools.sublime-settings"},
68-
"caption": "ST: Settings – Default"
69-
},
70-
{
71-
"command": "open_file",
72-
"args": {"file": "${packages}/User/SQLTools.sublime-settings"},
73-
"caption": "ST: Settings – User"
62+
"command": "edit_settings", "args":
63+
{
64+
"base_file": "${packages}/SQLTools/SQLToolsConnections.sublime-settings",
65+
"default": "// List all your connections to DBs here\n{\n\t\"connections\": {\n\t\t$0\n\t},\n\t\"default\": null\n}"
66+
}
67+
},
68+
{
69+
"caption": "ST: Settings",
70+
"command": "edit_settings", "args":
71+
{
72+
"base_file": "${packages}/SQLTools/SQLTools.sublime-settings",
73+
"default": "// Settings in here override those in \"SQLTools/SQLTools.sublime-settings\"\n{\n\t$0\n}\n"
74+
}
7475
}
7576
]

Main.sublime-menu

Lines changed: 23 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -16,71 +16,29 @@
1616
"children":
1717
[
1818
{
19-
"command": "open_file",
20-
"args": {"file": "${packages}/User/SQLToolsConnections.sublime-settings"},
21-
"caption": "Connections – User"
22-
},
23-
{"caption": "-", "id":"separator"},
24-
{
25-
"command": "open_file",
26-
"args": {"file": "${packages}/SQLTools/SQLTools.sublime-settings"},
27-
"caption": "Settings – Default"
28-
},
29-
{
30-
"command": "open_file",
31-
"args": {"file": "${packages}/User/SQLTools.sublime-settings"},
32-
"caption": "Settings – User"
33-
},
34-
{"caption": "-", "id":"separator"},
35-
{
36-
"command": "open_file",
37-
"args": {
38-
"file": "${packages}/SQLTools/Default (Windows).sublime-keymap",
39-
"platform": "Windows"
40-
},
41-
"caption": "Key Bindings – Default"
42-
},
43-
{
44-
"command": "open_file",
45-
"args": {
46-
"file": "${packages}/SQLTools/Default (OSX).sublime-keymap",
47-
"platform": "OSX"
48-
},
49-
"caption": "Key Bindings – Default"
50-
},
51-
{
52-
"command": "open_file",
53-
"args": {
54-
"file": "${packages}/SQLTools/Default (Linux).sublime-keymap",
55-
"platform": "Linux"
56-
},
57-
"caption": "Key Bindings – Default"
58-
},
59-
{
60-
"command": "open_file",
61-
"args": {
62-
"file": "${packages}/User/Default (Windows).sublime-keymap",
63-
"platform": "Windows"
64-
},
65-
"caption": "Key Bindings – User"
66-
},
67-
{
68-
"command": "open_file",
69-
"args": {
70-
"file": "${packages}/User/Default (OSX).sublime-keymap",
71-
"platform": "OSX"
72-
},
73-
"caption": "Key Bindings – User"
74-
},
75-
{
76-
"command": "open_file",
77-
"args": {
78-
"file": "${packages}/User/Default (Linux).sublime-keymap",
79-
"platform": "Linux"
80-
},
81-
"caption": "Key Bindings – User"
82-
},
83-
{ "caption": "-" }
19+
"caption": "Connections",
20+
"command": "edit_settings", "args":
21+
{
22+
"base_file": "${packages}/SQLTools/SQLToolsConnections.sublime-settings",
23+
"default": "// List all your connections to DBs here\n{\n\t\"connections\": {\n\t\t$0\n\t},\n\t\"default\": null\n}"
24+
}
25+
},
26+
{
27+
"caption": "Settings",
28+
"command": "edit_settings", "args":
29+
{
30+
"base_file": "${packages}/SQLTools/SQLTools.sublime-settings",
31+
"default": "// Settings in here override those in \"SQLTools/SQLTools.sublime-settings\"\n{\n\t$0\n}\n"
32+
}
33+
},
34+
{
35+
"caption": "Key Bindings",
36+
"command": "edit_settings", "args":
37+
{
38+
"base_file": "${packages}/SQLTools/Default ($platform).sublime-keymap",
39+
"default": "[\n\t$0\n]\n"
40+
}
41+
}
8442
]
8543
}
8644
]

0 commit comments

Comments
 (0)