Updates context-menu to use new api

This commit is contained in:
Anton Wernvik 2015-04-16 12:43:20 +02:00
parent baa58ab5d5
commit 6810805e3e
1 changed files with 10 additions and 7 deletions

View File

@ -1,12 +1,15 @@
# See https://atom.io/docs/latest/creating-a-package#menus for more details
'context-menu':
'atom-workspace atom-text-editor:not(.mini)':
'Beautify editor contents': 'beautify:beautify-editor'
'Debug Atom Beautify': 'beautify:help-debug-editor'
'.tree-view .file > .name':
'Beautify File': 'beautify:beautify-file'
# '.tree-view .directory > .header > .name':
# 'Beautify Directory': 'beautify:beautify-directory'
'atom-workspace atom-text-editor:not(.mini)': [
{label: 'Beautify editor contents', command: 'beautify:beautify-editor'}
{label: 'Debug Atom Beautify', command: 'beautify:help-debug-editor'}
]
'.tree-view .file > .name': [
{label: 'Beautify File', command: 'beautify:beautify-file'}
]
# '.tree-view .directory > .header > .name': [
# {label: 'Beautify Directory', command: 'beautify:beautify-directory'}
# ]
'menu': [
{