HWY1dot020 downloadsCapture the currently selected content as a PNG and copy it to the clipboard.
Capture the currently selected content in an Obsidian note as a PNG and copy it to the system clipboard. Useful for sharing a snippet of a rendered note to WeChat, Xiaohongshu, Slack, or anywhere else that accepts pasted images.
The image inherits your current Obsidian theme (fonts, colors, callouts, code highlighting), so the output looks the way the note looks on screen.
main.js, manifest.json, and styles.css from the latest release<your-vault>/.obsidian/plugins/screenshot-selection/Cmd-P / Ctrl-P) and run Screenshot selection to clipboardCmd-V / Ctrl-V) into any app that accepts imagesAssign a hotkey via Settings → Hotkeys for one-keystroke capture.
git clone https://github.com/HWY1dot0/obsidian-screenshot-selection
cd obsidian-screenshot-selection
npm install
OBSIDIAN_VAULT=~/path/to/your/vault npm run build
The build copies main.js, manifest.json, and styles.css to <OBSIDIAN_VAULT>/.obsidian/plugins/screenshot-selection/. Use npm run dev for watch mode.
This plugin makes no network requests of its own. It uses the modern-screenshot library, which — when rendering a selection that contains externally-hosted images (e.g. <img src="https://...">) — may have your browser fetch those images so they can be embedded in the capture. No data is sent to any third-party server by the plugin.
MIT — see LICENSE.