diff --git a/menus/darwin.cson b/menus/darwin.cson index fce617a..36bdb5d 100644 --- a/menus/darwin.cson +++ b/menus/darwin.cson @@ -1,3 +1,2 @@ 'context-menu': - '.platform-darwin .tree-view': - 'Open Terminal at Root' : 'atom-terminal:open-project-root' + '.platform-darwin .tree-view': [{label: 'Open Terminal at Root', command: 'atom-terminal:open-project-root'}] diff --git a/menus/win32.cson b/menus/win32.cson index f40bdc1..60a1d03 100644 --- a/menus/win32.cson +++ b/menus/win32.cson @@ -1,3 +1,2 @@ 'context-menu': - '.platform-win32 .tree-view': - 'Open Terminal at Root' : 'atom-terminal:open-project-root' + '.platform-win32 .tree-view': [{label: 'Open Terminal at Root', command: 'atom-terminal:open-project-root'}] diff --git a/package.json b/package.json index f7281cd..bbfdbae 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,10 @@ "main": "./lib/atom-terminal", "version": "0.7.0", "description": "Open terminal in the current file's directory.", - "activationEvents": [ - "atom-terminal:open", - "atom-terminal:open-project-root" - ], + "activationCommands": { + "atom-workspace": ["atom-terminal:open"], + "atom-workspace": ["open-project-root"] + }, "repository": "https://github.com/karan/atom-terminal", "license": "MIT", "engines": {