Paste Wrapped is an Obsidian plugin that pastes clipboard text as a single line.
It is intended for text copied from PDFs, web pages, or other sources that hard-wrap paragraphs across multiple lines. The plugin reads the clipboard, collapses line breaks and surrounding whitespace into spaces, and inserts the result at the current editor selection.
Paste wrapped: Insert clipboard text into the active editor with embedded line breaks removed.
- Copy text from another app.
- In Obsidian, open the command palette.
- Run
Paste wrapped.
If the clipboard is empty or Obsidian cannot read it, the plugin shows a notice instead of changing the note.
You can assign a hotkey to the command from Obsidian's hotkeys settings:
- Open Settings -> Hotkeys.
- Search for
Paste wrapped. - Select the plus button next to the command.
- Press the keyboard shortcut you want to use.
After that, you can run Paste wrapped directly from the keyboard without opening the command palette.
This plugin uses TypeScript and esbuild.
npm install
npm run devCreate a production build with:
npm run buildRun lint checks with:
npm run lintTo install this plugin directly from the GitHub repository:
- Clone this repository, or download and extract it from GitHub.
- Run
npm installin the project folder. - Run
npm run buildto generate the plugin files. - Copy
main.js,manifest.json, andstyles.cssinto your vault at.obsidian/plugins/paste-wrapped/. - Reload Obsidian and enable Paste Wrapped in Settings -> Community plugins.
Copy these files into your vault at .obsidian/plugins/paste-wrapped/:
main.jsmanifest.jsonstyles.css
Then reload Obsidian and enable Paste Wrapped in Settings -> Community plugins.