Both Atom and VSCode are not supporting `cmd-e` correctly on macOS. There is a macOS API called NSFindPboard that gives you the content of a special paste shared across all apps. There is a way to shell out to get it but it would be nicer (and likely faster) if electron exposed it as an API in JS.

Issues:
- Atom: https://github.com/atom/atom/issues/4650
- VSCode: https://github.com/Microsoft/vscode/issues/11233

@orta wrote a little specification of what the API could look like which would solve both editor use cases: https://github.com/orta/electron/blob/orta-pasteboard/docs/api/pasteboard.md

Thanks!

atom/common/api/atom_api_clipboard.cc
mate::Arguments* args) {
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  ui::Clipboard::FormatType format(ui::Clipboard::GetFormatType(format_string));
  std::string data;
  clipboard->ReadData(format, &data);
  return data;
}
void Write(const mate::Dictionary& data,
           mate::Arguments* args) {
  ui::ScopedClipboardWriter writer(GetClipboardType(args));
  base::string16 text, html, bookmark;
  gfx::Image image;
  if (data.Get("text", &text)) {
    writer.WriteText(text);
    if (data.Get("bookmark", &bookmark))
      writer.WriteBookmark(bookmark, base::UTF16ToUTF8(text));
  }
  if (data.Get("rtf", &text)) {
    std::string rtf = base::UTF16ToUTF8(text);
    writer.WriteRTF(rtf);
  }
  if (data.Get("html", &html))
    writer.WriteHTML(html, std::string());
  if (data.Get("image", &image))
    writer.WriteImage(image.AsBitmap());
}
base::string16 ReadText(mate::Arguments* args) {