diff --git a/lib/main.js b/lib/main.js index 24539d9..4baeed1 100644 --- a/lib/main.js +++ b/lib/main.js @@ -24,8 +24,13 @@ export default { // Register Opener for the Terminal URI (`terminal-tab://`) this.disposables.add(atom.workspace.addOpener((uri) => { - if (uri === TERMINAL_TAB_URI) { - return new TerminalSession(); + if (uri.startsWith(TERMINAL_TAB_URI)) { + let config = {}; + const args = uri.substring(TERMINAL_TAB_URI.length); + if(args) { + config = JSON.parse(args); + } + return new TerminalSession(config); } }));