A simple and efficient Obsidian plugin that allows you to paste clipboard content with proper formatting in different contexts.
This plugin provides three convenient commands to format your pasted content:
- Paste As Header - Converts clipboard text into a markdown header (# format)
- Paste As Inline Code - Wraps clipboard text in inline code formatting (
code) - Paste As Code Block - Creates a formatted code block with language selection (```language)
- Download the latest release from the releases page
- Extract the files to your vault's plugins directory:
<VaultFolder>/.obsidian/plugins/obsidian-formatted-paster-plugin/ - Reload Obsidian
- Enable the plugin in Settings → Community plugins
Note: Plugin is pending approval for the community plugin store
The plugin adds three commands to your command palette (Ctrl/Cmd + P) until now:
-
Paste As Header
- Pastes clipboard content as a level 1 header
- Example:
Hello Worldbecomes# Hello World
-
Paste As Inline Code
- Wraps clipboard content in backticks for inline code
- Example:
console.log()becomes`console.log()`
-
Paste As Code Block
-
Creates a code block with language selection
-
Opens a modal to select the programming language
-
Example:
console.log('Hello World');
-
- Copy text to your clipboard
- Open the command palette (
Ctrl/Cmd + P) - Search for one of the paste commands
- For code blocks, select the appropriate language from the modal
- The formatted content will be inserted at your cursor position
The plugin includes configurable settings for:
- Default code language for code blocks
- Access settings via Settings → Plugin Options → Formatted Paster
- Obsidian Version: Requires Obsidian 0.15.0 or higher
- Platform: Desktop only (Windows, macOS, Linux)
- Mobile: Not supported
# Install dependencies
npm install
# Development build with watch mode
npm run dev
# Production build
npm run buildsrc/
├── commands/ # Command implementations
├── modals/ # UI modals and dialogs
├── settings/ # Plugin settings and configuration
└── utilities/ # Helper functions and utilities
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have feature requests, please create an issue on GitHub.
Created by Yihoo.Kan