From f3298b8ea3b44b6a2796dcc13dd04ef7874eb400 Mon Sep 17 00:00:00 2001 From: William Barath Date: Tue, 15 Aug 2017 12:47:29 -0700 Subject: [PATCH] update rules to work with Atom 1.19.1 yay the menus appear in tree-view again! --- menus/atom-sync.cson | 56 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/menus/atom-sync.cson b/menus/atom-sync.cson index 391826b..b3ad5e4 100644 --- a/menus/atom-sync.cson +++ b/menus/atom-sync.cson @@ -1,33 +1,33 @@ # See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details 'context-menu': - '.tree-view .header.list-item': [ - 'label': 'Sync' - 'submenu': [ - { - 'label': 'Edit Sync Config' - 'command': 'atom-sync:configure' - } - { - 'label': 'Sync Remote -> Local' - 'command': 'atom-sync:download-directory' - } - { - 'label': 'Sync Local -> Remote' - 'command': 'atom-sync:upload-directory' - } + '.tool-panel.tree-view .header.list-item': [ + 'label': 'Sync' + 'submenu': [ + { + 'label': 'Edit Sync Config' + 'command': 'atom-sync:configure' + } + { + 'label': 'Sync Remote -> Local' + 'command': 'atom-sync:download-directory' + } + { + 'label': 'Sync Local -> Remote' + 'command': 'atom-sync:upload-directory' + } + ] ] - ] - '.tree-view .file.list-item': [ - 'label': 'Sync' - 'submenu': [ - { - 'label': 'Download File' - 'command': 'atom-sync:download-file' - } - { - 'label': 'Upload File' - 'command': 'atom-sync:upload-file' - } + 'atom-text-editor, .tool-panel.tree-view .file': [ + 'label': 'Sync' + 'submenu': [ + { + 'label': 'Download File' + 'command': 'atom-sync:download-file' + } + { + 'label': 'Upload File' + 'command': 'atom-sync:upload-file' + } + ] ] - ]