jldiaz79 downloadsCreate clickable links to instantly copy text snippets, commands, or templates to your clipboard, with live hover previews.

Have you ever wanted to create a note that, when you click a link, automatically copies a snippet of text to your clipboard? This plugin makes that possible.
Some use cases:
The plugin registers a custom obsidian://copy protocol. When you click a link using this protocol, the text embedded in the URL is silently copied to your clipboard and a small confirmation notice appears — no popups, no external apps.
[Click to copy](obsidian://copy?text=Your-text-here)
When clicked, "Your-text-here" is copied to your clipboard.
For text containing spaces, wrap the URL in angle brackets:
[Click to copy](<obsidian://copy?text=Hello world>)
Other special characters need to be encoded, and as you can see it can be tedious to do manually, so a command for that is included.
The plugin includes a command called Copy Protocol: Paste clipboard as copy-protocol link that automates the process. It reads your current clipboard content and inserts a ready-to-use markdown link at the cursor. If you have text selected in the editor, that selection becomes the link label; otherwise, the clipboard text itself is used as a label.
+ button and press your preferred key combination.git log --oneline).Show git log and select it.[Show git log](<obsidian://copy?text=git%20log%20--oneline>)
git log --oneline to your clipboard instantly.You can preview the text that a copy link contains before actually copying it.
Ctrl (or Cmd on macOS) while hovering your mouse over any obsidian://copy link or copy icon.Copy: "your command here").You can install this plugin from the Community Plugins settings of Obsidian, or via BRAT:
jldiaz/copy-protocol-plugin.