-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework with new settings format, and addressing #19 with hanging edit…
…or instances
- Loading branch information
1 parent
5671586
commit 1f7ea59
Showing
8 changed files
with
250 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,43 @@ | ||
[ | ||
{ | ||
"caption": "Tools", | ||
"mnemonic": "T", | ||
"id": "tools", | ||
"children": | ||
[ | ||
{ | ||
"command": "view_in_browser", | ||
"caption": "View in Browser" | ||
} | ||
] | ||
}, | ||
{ | ||
"caption": "Preferences", | ||
"mnemonic": "n", | ||
"id": "preferences", | ||
"children": | ||
[ | ||
{ | ||
"caption": "Package Settings", | ||
"mnemonic": "P", | ||
"id": "package-settings", | ||
"children": | ||
[ | ||
{ | ||
"caption": "View in Browser", | ||
"children": | ||
[ | ||
{ | ||
"command": "open_file", | ||
"args": {"file": "${packages}/View In Browser/View In Browser.sublime-settings"}, | ||
"caption": "Settings – Default" | ||
}, | ||
{ | ||
"command": "open_file", | ||
"args": {"file": "${packages}/User/View In Browser.sublime-settings"}, | ||
"caption": "Settings – User" | ||
}, | ||
{ "caption": "-" }, | ||
{ | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/View in Browser/Default (OSX).sublime-keymap", | ||
"platform": "OSX" | ||
}, | ||
"caption": "Key Bindings – Default" | ||
}, | ||
{ | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/View in Browser/Default (Linux).sublime-keymap", | ||
"platform": "Linux" | ||
}, | ||
"caption": "Key Bindings – Default" | ||
}, | ||
{ | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/View in Browser/Default (Windows).sublime-keymap", | ||
"platform": "Windows" | ||
}, | ||
"caption": "Key Bindings – Default" | ||
}, | ||
{ | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/User/Default (OSX).sublime-keymap", | ||
"platform": "OSX" | ||
}, | ||
"caption": "Key Bindings – User" | ||
}, | ||
{ | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/User/Default (Linux).sublime-keymap", | ||
"platform": "Linux" | ||
}, | ||
"caption": "Key Bindings – User" | ||
}, | ||
{ | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/User/Default (Windows).sublime-keymap", | ||
"platform": "Windows" | ||
}, | ||
"caption": "Key Bindings – User" | ||
}, | ||
{ "caption": "-" } | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
{ | ||
"caption": "Tools", | ||
"mnemonic": "T", | ||
"id": "tools", | ||
"children": [ | ||
{ | ||
"command": "view_in_browser", | ||
"caption": "View in Browser" | ||
} | ||
] | ||
}, | ||
{ | ||
"caption": "Preferences", | ||
"mnemonic": "n", | ||
"id": "preferences", | ||
"children": [ | ||
{ | ||
"caption": "Package Settings", | ||
"mnemonic": "P", | ||
"id": "package-settings", | ||
"children": [ | ||
{ | ||
"caption": "View in Browser", | ||
"children": [ | ||
{ | ||
"command": "open_file", | ||
"args": {"file": "${packages}/View In Browser/View In Browser.sublime-settings"}, | ||
"caption": "Settings – Default" | ||
}, | ||
{ | ||
"command": "open_file", | ||
"args": {"file": "${packages}/User/View In Browser.sublime-settings"}, | ||
"caption": "Settings – User" | ||
}, | ||
{ "caption": "-" } | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,27 @@ | ||
{ | ||
"supportedBrowsers": { | ||
"firefox": [ | ||
{ | ||
"osname": "posix", | ||
"platform": ".*", | ||
"command": "firefox" | ||
}, | ||
{ | ||
"osname": "posix", | ||
"platform": "darwin", | ||
"command": "open -a \"/Applications/Firefox.app\"" | ||
}, | ||
{ | ||
"osname": "nt", | ||
"platform": "win32", | ||
"command": "C:/Program Files (x86)/Mozilla Firefox/firefox.exe" | ||
} | ||
], | ||
"safari": [ | ||
{ | ||
"osname": "posix", | ||
"platform": "darwin", | ||
"command": "open -a \"/Applications/Safari.app\"" | ||
} | ||
], | ||
"iexplore": [ | ||
{ | ||
"osname": "nt", | ||
"platform": "win32", | ||
"command": "C:/Program Files/Internet Explorer/iexplore.exe" | ||
} | ||
], | ||
"chrome": [ | ||
{ | ||
"osname": "posix", | ||
"platform": "darwin", | ||
"command": "open -a \"/Applications/Google Chrome.app\"" | ||
}, | ||
{ | ||
"osname": "posix", | ||
"platform": "linux.*", | ||
"command": "google-chrome" | ||
}, | ||
{ | ||
"osname": "nt", | ||
"platform": "win32", | ||
"command": "%Local AppData%/Google/Chrome/Application/chrome.exe" | ||
} | ||
], | ||
"chromium": [ | ||
{ | ||
"osname": "posix", | ||
"platform": "linux.*", | ||
"command": "chromium" | ||
} | ||
] | ||
"posix": { | ||
"linux": { | ||
"firefox": "firefox -new-tab", | ||
"chrome": "google-chrome", | ||
"chrome64": "google-chrome", | ||
"chromium": "chromium" | ||
}, | ||
|
||
"darwin": { | ||
"firefox": "open -a \"/Applications/Firefox.app\"", | ||
"safari": "open -a \"/Applications/Safari.app\"", | ||
"chrome": "open -a \"/Applications/Google Chrome.app\"", | ||
"chrome64": "open -a \"/Applications/Google Chrome.app\"" | ||
} | ||
}, | ||
"nt": { | ||
"win32": { | ||
"firefox": "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe -new-tab", | ||
"iexplore": "C:\\Program Files\\Internet Explorer\\iexplore.exe", | ||
"chrome": "%Local AppData%\\Google\\Chrome\\Application\\chrome.exe", | ||
"chrome64": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" | ||
} | ||
}, | ||
|
||
"selectedBrowser": "firefox" | ||
"browser": "firefox" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[ | ||
{ "caption": "View In Browser", "command": "view_in_browser" } | ||
{ "caption": "View In Browser", "command": "view_in_browser" } | ||
] |
Oops, something went wrong.