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

ClipReplace

pseudopseudo17 downloads

Swap selected text with the clipboard in one command.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

ClipReplace is a tiny Obsidian plugin that swaps the current text selection with the clipboard in one command.

It is designed for revision workflows where you already have a replacement on the clipboard and want to keep the old wording available immediately afterward.

Example

Before running the command:

Clipboard:      The revised sentence.
Selected text:  The old sentence.

Run ClipReplace: Replace selection & copy.

Afterward:

Note:           The revised sentence.
Clipboard:      The old sentence.

No temporary note, second copy operation, or manual delete/paste cycle is needed.

Usage

  1. Copy the replacement text to your clipboard.
  2. Select the text you want to replace in an Obsidian note.
  3. Run ClipReplace: Replace selection & copy from the Command Palette.
  4. Optionally assign the command a hotkey under Settings → Hotkeys.

The command is only available when the editor has a non-empty selection.

Safety behavior

ClipReplace deliberately performs the operation in a defensive order:

  1. Read the existing clipboard.
  2. Copy the selected text to the clipboard.
  3. Replace the selection with the old clipboard contents.

If clipboard access fails, the note is left unchanged. If editor replacement fails after the clipboard was changed, ClipReplace makes a best-effort attempt to restore the original clipboard contents and shows an Obsidian notice.

Privacy

ClipReplace does not send text anywhere, does not use telemetry, and does not make network requests. Clipboard and editor operations stay local to Obsidian and your device.

Installation

Community Plugins

Once ClipReplace is accepted into the Obsidian Community directory:

  1. Open Settings → Community plugins → Browse.
  2. Search for ClipReplace.
  3. Install and enable it.

Manual installation

Download main.js and manifest.json from a GitHub release and place them in:

<your-vault>/.obsidian/plugins/clipreplace/

Reload Obsidian and enable ClipReplace under Community plugins.

Development

Requirements:

  • Node.js
  • npm

Install dependencies:

npm install

Type-check:

npm run check

Development build/watch:

npm run dev

Production build:

npm run build

The production build writes main.js in the repository root.

Release checklist

For each release:

  1. Update the version in manifest.json and package.json.
  2. Update versions.json if minAppVersion changes.
  3. Run npm run check and npm run build.
  4. Commit the generated main.js.
  5. Create a GitHub release whose tag exactly matches the manifest version, for example 0.1.0 (no v prefix).
  6. Attach main.js and manifest.json to the GitHub release. styles.css is not required because ClipReplace has no custom styles.

License

MIT

HealthExcellent
ReviewPassed
About
Swap the current text selection with the clipboard in a single command. Keep the replaced text on the clipboard so the original wording remains immediately available without extra copy/paste steps.
EditingCommandsHotkeys
Details
Current version
0.1.0
Last updated
2 weeks ago
Created
2 weeks ago
Updates
1 release
Downloads
17
Compatible with
Obsidian 1.14.5+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
pseudopseudo
GitHubpseud0naut
  1. Community
  2. Plugins
  3. Editing
  4. ClipReplace

Related plugins

Keyshots

Add classic hotkey/shortcuts commands from popular IDEs like Visual Studio Code or JetBrains Family.

Underline

Add underline with shortcut.

Tab Switcher

Switch your tabs with Ctrl + Tab in recently used order like in a browser.

Heading Shifter

Easily Shift and Change Markdown headings.

Sort and Permute lines

Sort and Permute lines in whole file or selection.

Hotkey Helper

Easily see and access any plugin's settings or hotkey assignments (and conflicts) from the Community Plugins tab.

Emoji Toolbar

Quickly search for and insert emojis into your editor.

Shortcuts extender

Use shortcuts for input special symbols without language switching.

Tray

Run Obsidian from the system tray for customisable window management and global quick notes.

Paste URL into selection

Paste URL "into" selected text.