diff --git a/src/clipboard.js b/src/clipboard.js index db4cc4db2..9fe7938a0 100644 --- a/src/clipboard.js +++ b/src/clipboard.js @@ -54,6 +54,18 @@ module.exports = class Clipboard { return clipboard.readText(); } + // Public: Write the given text to the macOS find pasteboard + writeFindText(text) { + clipboard.writeFindText(text); + } + + // Public: Read the text from the macOS find pasteboard. + // + // Returns a {String}. + readFindText() { + return clipboard.readFindText(); + } + // Public: Read the text from the clipboard and return both the text and the // associated metadata. //