From 19360ee07557925fe8ad499830dfe04bba9cd6d7 Mon Sep 17 00:00:00 2001 From: Alexandr Subbotin Date: Mon, 30 Jan 2017 16:05:36 +0100 Subject: [PATCH] Use cmd+c to path path to found application --- app/main/plugins/core/apps/index.js | 1 + test/plugins/apps/index.spec.js | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/app/main/plugins/core/apps/index.js b/app/main/plugins/core/apps/index.js index 94883860..1a439751 100644 --- a/app/main/plugins/core/apps/index.js +++ b/app/main/plugins/core/apps/index.js @@ -58,6 +58,7 @@ const appsPlugin = ({ term, actions, display }) => { term: name, icon: path, subtitle: path, + clipboard: path, onKeyDown: (event) => { if (event.metaKey && event.keyCode === 82) { // Show application in Finder by cmd+R shortcut diff --git a/test/plugins/apps/index.spec.js b/test/plugins/apps/index.spec.js index cb250e57..1d7ca9a5 100644 --- a/test/plugins/apps/index.spec.js +++ b/test/plugins/apps/index.spec.js @@ -32,4 +32,13 @@ describe('OSx apps plugin', () => { } apps.fn({ term, display }) }) + + it('result includes clipboard key with full path', (done) => { + const term = 'App' + const display = (results) => { + assert(results[0].clipboard === appsList[0].path) + done() + } + apps.fn({ term, display }) + }) })