1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00

Merge branch 'master' of github.com:laurent22/joplin

This commit is contained in:
Laurent Cozic 2018-05-16 15:34:09 +01:00
commit 43bab3c1bd

View File

@ -395,6 +395,12 @@ class NoteTextComponent extends React.Component {
if (!filePath) return;
await fs.copy(resourcePath, filePath);
}}));
menu.append(new MenuItem({label: _('Copy path to clipboard'), click: async () => {
const { clipboard } = require('electron');
const { toSystemSlashes } = require('lib/path-utils.js');
clipboard.writeText(toSystemSlashes(resourcePath));
}}));
} else {
reg.logger().error('Unhandled item type: ' + itemType);
return;