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::Clipboard::GetForCurrentThread()->Clear(GetClipboardType(args));
}
void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
                v8::Local<v8::Context> context, void* priv) {
  mate::Dictionary dict(context->GetIsolate(), exports);
  dict.SetMethod("availableFormats", &AvailableFormats);
  dict.SetMethod("has", &Has);
  dict.SetMethod("read", &Read);
  dict.SetMethod("write", &Write);
  dict.SetMethod("readText", &ReadText);
  dict.SetMethod("writeText", &WriteText);
  dict.SetMethod("readRTF", &ReadRtf);
  dict.SetMethod("writeRTF", &WriteRtf);
  dict.SetMethod("readHTML", &ReadHtml);
  dict.SetMethod("writeHTML", &WriteHtml);
  dict.SetMethod("readBookmark", &ReadBookmark);
  dict.SetMethod("writeBookmark", &WriteBookmark);
  dict.SetMethod("readImage", &ReadImage);
  dict.SetMethod("writeImage", &WriteImage);
  dict.SetMethod("clear", &Clear);
  
  dict.SetMethod("readRtf", &ReadRtf);
  dict.SetMethod("writeRtf", &WriteRtf);
  dict.SetMethod("readHtml", &ReadHtml);
  dict.SetMethod("writeHtml", &WriteHtml);
}
}  
NODE_MODULE_CONTEXT_AWARE_BUILTIN(atom_common_clipboard, Initialize)