Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Prompt Block Copy

Marian KlemmMarian Klemm36 downloads

Copy prompt code blocks with a single click.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Copy prompt code blocks in Obsidian with a single click.

Prompt Block Copy adds a dedicated copy button to fenced prompt-style code blocks so their contents can be copied without selecting the text or activating the editor.

Features

  • Adds a Copy prompt button to supported fenced code blocks.
  • Copies the complete code-block contents to the clipboard with one click.
  • Shows a short Copied ✓ confirmation after a successful copy.
  • Prevents the copy action from switching the code block into edit mode.
  • Uses Obsidian theme variables for light and dark mode.
  • Replaces the existing code-block copy button with a dedicated Copy prompt button for supported prompt blocks.

Supported code blocks

The plugin currently recognizes fenced code blocks with these language identifiers:

```text
Your prompt here
```
```txt
Your prompt here
```
```prompt
Your prompt here
```

Installation

Community Plugins

Once the plugin is available in the Obsidian Community Plugin directory:

  1. Open Settings → Community plugins.
  2. Search for Prompt Block Copy.
  3. Install the plugin.
  4. Enable it.

Beta testing with BRAT

Before the Community Plugin release, the plugin can be installed through BRAT using this repository:

MarianKlemm/obsidian-prompt-block-copy

Manual installation

Copy the following files into:

<vault>/.obsidian/plugins/prompt-block-copy/

Required files:

  • main.js
  • manifest.json
  • styles.css

Restart Obsidian and enable Prompt Block Copy under Community plugins.

Privacy

Prompt Block Copy works entirely inside Obsidian.

It does not:

  • send data to external services,
  • collect telemetry,
  • require an account,
  • store copied prompt contents.

Clipboard access is used only when the user presses the copy button.

License

MIT

Author

Marian Klemm

HealthExcellent
ReviewSatisfactory
About
Add a one-click copy button to prompt-style fenced code blocks (recognizes language identifiers: text, txt, prompt). Copy the full block contents to clipboard without entering edit mode and show a brief "Copied ✓" confirmation while respecting your theme and avoiding duplicate buttons.
CodeInterface
Details
Current version
1.0.1
Last updated
2 weeks ago
Created
2 weeks ago
Updates
2 releases
Downloads
36
Compatible with
Obsidian 1.14.5+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Marian KlemmMarian Klemmmarianklemm
GitHubmarianklemm
  1. Community
  2. Plugins
  3. Code
  4. Prompt Block Copy

Related plugins

Copy Inline Code

Easily copy the contents of an inline code element with a single click.

Inline Encrypter

Encrypt secrets in your notes.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Templater

Create and use dynamic templates.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Note Toolbar

Add customizable toolbars to your notes.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Force note view mode

Force the view mode for a note by using frontmatter: YAML block with 'obsidian_ui_mode' as key.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.