Skip to content

Repository files navigation

Extended Paste Mode

An Obsidian plugin to paste and manage text, including block quotes, at any level of indentation.

Paste modes

Paste Mode takes over paste functionality within Obsidian. It has seven paste modes, which determine what happens when pasting text within a file. All modes honor the cursor's current indentation when pasting, except "Passthrough" mode, which uses Obsidian's default paste behavior.

Demonstration of paste modes

  1. Text — Paste clipboard text as-is.
  2. Text (Blockquote) — Paste with blockquote prefix (default > , configurable).
  3. Markdown — Convert HTML to Markdown before pasting.
  4. Markdown (Blockquote) — Convert HTML to Markdown, then wrap in blockquote.
  5. Code Block — Paste within ``` code fences.
  6. Code Block (Blockquote) — Paste within code fences, then wrap in blockquote.
  7. Passthrough — Use Obsidian's default paste behavior.

Status bar

Switching modes

  1. Click the status bar indicator to open a searchable mode picker.
  2. Paste Mode: Cycle Paste Mode in the Command Palette cycles through all modes.
  3. Paste Mode: Set Paste Mode to <mode> commands for direct switching (bindable via, e.g., Quick Add).
  4. Plugin settings tab.

Limitations

  • In Obsidian Mobile, "Markdown" and "Markdown (Blockquote)" one-time paste commands are disabled due to clipboard API restrictions.
  • Similarly, images/screenshots cannot be pasted from the clipboard on mobile.

Additional commands

  • Paste Mode: Toggle blockquote at current indentation — toggles blockquote markers on the selected text.
    Toggle blockquote

Additional features

  • Continue list items — when enabled, if you paste multiple lines into a list item where all lines are at the same indentation level, list markers will be added to each pasted line to continue the list. For bullet lists, the same marker is used. For numbered lists, the numbers are automatically incremented. This setting is enabled by default.
  • Download linked files — when pasting Markdown, files referenced via http:// or file:// URLs can be downloaded locally.
  • Automatic character escaping — escape Markdown-sensitive characters (==, <, etc.) in blockquotes.

Developing

npm install
npm run dev    # watch mode
npm run build  # production build

Releasing

  1. Update manifest.json and versions.json with the new version.
  2. Create a GitHub release tagged with the version number (no v prefix).
  3. Upload main.js, manifest.json, styles.css as binary attachments.

Additional contributor acknowledgements

This plugin is substantially better for the contributions of Jason Shelter, who authored a substantial update in 2026.

About

Obsidian Notes plugin for pasting text and blockquotes to the cursor's current level of indentation.

Resources

Stars

57 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages