Copy Link Button

by ChekTek
5
4
3
2
1
Score: 50/100

Description

A small plugin for obsidian that adds a copy button for links.

Reviews

No reviews yet.

Stats

0
stars
1,134
downloads
0
forks
134
days
126
days
126
days
2
total PRs
0
open PRs
0
closed PRs
2
merged PRs
2
total issues
0
open issues
2
closed issues
9
commits

Latest Version

4 months ago

Changelog

What's Changed

New Contributors

Full Changelog: https://github.com/ChekTek/obsidian-copy-link/compare/1.0.2...1.1.0

README file from

Github

An Obsidian plugin that adds a small copy button next to links and images, so you can copy their target to your clipboard with a single click — much like the copy button next to code blocks.

Copy button next to a link

Features

  • Adds a copy button next to markdown links ([text](https://…)), bare URLs (https://…), and wikilinks ([[Note|Alias]]).
  • Supports internal embeds (![[image.png]]) and markdown images (![alt](https://…)) with a floating copy button for rendered images.
  • Works in both editing / Live Preview and reading view.
  • Clicking the button copies the URL, wikilink, or image target and briefly shows a checkmark.
  • Buttons are always visible by default, with a setting to only show them while holding Ctrl, Cmd, Alt, or Shift.
  • Styled with Obsidian theme variables, so it matches the external-link icon in light and dark themes.

Installation

From the community plugin store

Once approved: Settings → Community plugins → Browse, search for "Copy Link Button", install, and enable.

Manual

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Copy them into your vault at <vault>/.obsidian/plugins/copy-link-button/.
  3. Reload Obsidian and enable the plugin under Settings → Community plugins.

Development

npm install --legacy-peer-deps   # obsidian pins an exact CodeMirror peer dep
npm run dev                       # watch + rebuild main.js

Symlink (or copy) the repo into your vault's plugins folder to test live:

ln -s "$(pwd)" "<vault>/.obsidian/plugins/copy-link-button"

Building

npm run build     # type-check + production build (main.js in repo root)
npm run package   # production build collected into dist/ for distribution

Releasing

Pushing to main runs the release workflow. When the version in manifest.json doesn't yet have a matching git tag, the workflow builds the plugin and publishes a GitHub release (tagged with the bare version, e.g. 1.0.0) with main.js, manifest.json, and styles.css attached.

To cut a release: bump the version in manifest.json (and versions.json / package.json), commit, and push to main.

License

MIT