From 775cec32daa5fc88c026d68bc23183196cc90dd8 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Thu, 6 Apr 2017 21:22:25 -0700 Subject: [PATCH] Remove finder-menu it's no longer required --- lib/finder-menu.js | 81 ---------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 lib/finder-menu.js diff --git a/lib/finder-menu.js b/lib/finder-menu.js deleted file mode 100644 index 2e0f8d42..00000000 --- a/lib/finder-menu.js +++ /dev/null @@ -1,81 +0,0 @@ -const electron = require('electron') -const BrowserWindow = electron.BrowserWindow - -const OSX = process.platform === 'darwin' -// const WIN = process.platform === 'win32' - -var edit = { - label: 'Edit', - submenu: [ - { - label: 'Undo', - accelerator: 'Command+Z', - selector: 'undo:' - }, - { - label: 'Redo', - accelerator: 'Shift+Command+Z', - selector: 'redo:' - }, - { - type: 'separator' - }, - { - label: 'Cut', - accelerator: 'Command+X', - selector: 'cut:' - }, - { - label: 'Copy', - accelerator: 'Command+C', - selector: 'copy:' - }, - { - label: 'Paste', - accelerator: 'Command+V', - selector: 'paste:' - }, - { - label: 'Select All', - accelerator: 'Command+A', - selector: 'selectAll:' - } - ] -} - -var view = { - label: 'View', - submenu: [ - { - label: 'Focus Search', - accelerator: 'Control+Alt+F', - click: function () { - console.log('focus find') - } - }, - { - type: 'separator' - }, - { - label: 'Toggle Markdown Preview', - accelerator: OSX ? 'Command+P' : 'Control+P', - click: function () { - console.log('markdown') - } - }, - { - type: 'separator' - }, - { - label: 'Reload', - accelerator: OSX ? 'Command+R' : 'Control+R', - click: function () { - BrowserWindow.getFocusedWindow().reload() - } - } - ] -} - -module.exports = process.platform === 'darwin' - ? [edit, view] - : [view]