docs: expand README with hover previews section; style: use 6-digit hex color for Obsidian compliance

This commit is contained in:
JLDiaz (m) 2026-05-21 20:32:05 +02:00
parent 0ba3ace762
commit 9cfb1e0c3c
2 changed files with 9 additions and 1 deletions

View file

@ -54,6 +54,14 @@ The plugin includes a command called **Copy Protocol: Paste clipboard as copy-pr
``` ```
5. Clicking that link copies `git log --oneline` to your clipboard instantly. 5. Clicking that link copies `git log --oneline` to your clipboard instantly.
## Hover Previews
You can preview the text that a copy link contains before actually copying it.
- **To preview**: Hold `Ctrl` (or `Cmd` on macOS) while hovering your mouse over any `obsidian://copy` link or copy icon.
- A custom, theme-aware tooltip will appear showing a snippet of the text to be copied (e.g., `Copy: "your command here"`).
- This allows you to verify exactly what is going to be copied without needing to click it or inspect the markdown source.
## Installation ## Installation
You can install this plugin from the Community Plugins settings of Obsidian, or via [BRAT](https://github.com/TfTHacker/obsidian42-brat): You can install this plugin from the Community Plugins settings of Obsidian, or via [BRAT](https://github.com/TfTHacker/obsidian42-brat):

View file

@ -114,7 +114,7 @@ a.copy-protocol-link:hover {
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
color: var(--text-normal); color: var(--text-normal);
border: 1px solid var(--border-color, var(--background-modifier-border, #444)); border: 1px solid var(--border-color, var(--background-modifier-border, #444444));
border-radius: 6px; border-radius: 6px;
padding: 6px 12px; padding: 6px 12px;
font-size: 12px; font-size: 12px;