Skip to content

Commit

Permalink
Use cmd+c to path path to found application
Browse files Browse the repository at this point in the history
  • Loading branch information
KELiON committed Jan 30, 2017
1 parent 34260ec commit 19360ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/main/plugins/core/apps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions test/plugins/apps/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
})
})

0 comments on commit 19360ee

Please sign in to comment.