From 9cfb1e0c3c3ac0a8630202d18b27574d38c6423f Mon Sep 17 00:00:00 2001 From: "JLDiaz (m)" Date: Thu, 21 May 2026 20:32:05 +0200 Subject: [PATCH] docs: expand README with hover previews section; style: use 6-digit hex color for Obsidian compliance --- README.md | 8 ++++++++ styles.css | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a87eee6..34edfc9 100644 --- a/README.md +++ b/README.md @@ -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. +## 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 You can install this plugin from the Community Plugins settings of Obsidian, or via [BRAT](https://github.com/TfTHacker/obsidian42-brat): diff --git a/styles.css b/styles.css index 6668a90..ad116e5 100644 --- a/styles.css +++ b/styles.css @@ -114,7 +114,7 @@ a.copy-protocol-link:hover { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); 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; padding: 6px 12px; font-size: 12px;