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
ui::ScopedClipboardWriter writer(GetClipboardType(args));
  writer.WriteText(text);
}
base::string16 ReadRtf(mate::Arguments* args) {
  std::string data;
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  clipboard->ReadRTF(GetClipboardType(args), &data);
  return base::UTF8ToUTF16(data);
}
void WriteRtf(const std::string& text, mate::Arguments* args) {
  ui::ScopedClipboardWriter writer(GetClipboardType(args));
  writer.WriteRTF(text);
}
base::string16 ReadHtml(mate::Arguments* args) {
  base::string16 data;
  base::string16 html;
  std::string url;
  uint32_t start;
  uint32_t end;
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  clipboard->ReadHTML(GetClipboardType(args), &html, &url, &start, &end);
  data = html.substr(start, end - start);
  return data;
}
void WriteHtml(const base::string16& html, mate::Arguments* args) {