Smart Link Formatter

by ccmdi
5
4
3
2
1
Score: 48/100

Description

The Auto Link Formatter plugin streamlines how pasted links appear in your notes by automatically converting them into clean, metadata-rich formats. It supports both regular web pages and YouTube links, with customizable templates using variables like title, URL, and for YouTube - channel, views, duration, upload date, and more. This allows you to instantly create tidy references without needing to manually format each one. You can blacklist specific domains to skip formatting, and toggle the automation on or off as needed.

Reviews

No reviews yet.

Stats

12
stars
1,553
downloads
0
forks
318
days
20
days
20
days
6
total PRs
0
open PRs
0
closed PRs
6
merged PRs
9
total issues
3
open issues
6
closed issues
0
commits

Latest Version

21 days ago

Changelog

  • Add "Format all links" command which defaults to formatting all links in file, or all selected links if anything is selected in that file
  • Instead of discarding pasted links entirely when the placeholder is not found, prefer to paste at the user's cursor

README file from

Github

A plugin for Obsidian that automatically formats pasted links with metadata.

It has explicit support for:

  • YouTube
  • Twitter/X
  • Reddit
  • YouTube Music
  • GitHub
  • Image links

Features

  • Automatically formats pasted links
  • Supports custom formatting for all clients, as well as regular links
  • Blacklist domains to prevent automatic formatting
  • Toggle auto-linking on/off

Formatting

Variables are replaced dynamically by the plugin. The first instance of square brackets [] will be a hyperlink for the clipboard content.

For default links, the following variables are available:

  • {title} - Page title
  • {url} - The URL of the page

Example format: [{title}]

If you need to format a date (e.g. upload_date), you can use moment.js date formats: {upload_date|MMMM Do, YYYY}

Capturing

Clients in the plugin have unique variables you can capture. For instance, when pasting a YouTube link, the following variables are available for formatting:

  • {title} - Video title
  • {channel} - Channel name
  • {uploader} - Uploader name (which can sometimes differ from channel)
  • {duration} - Length of the video
  • {views} - Number of views
  • {upload_date} - When the video was uploaded
  • {description} - Video description
  • {url} - The URL of the video
  • {timestamp} - For timestamped links (formats as @HH:MM:SS or @MM:SS)

Example format: [{title}] by {channel}

Other clients follow similar patterns, and their variables can be found in the plugin settings.

Replacements

Regex replacements are also available to do rules-based replacements on the formatted text. Useful examples:

  • Normalize spaces: \s{2,} -> ' '
  • Remove parenthetical text: \s*\([^)]+\) -> (empty)
  • Truncate after n chars (link only): (?<=(?<!\\)\[)(.{0,n}\S*?)\s.*?(?=(?<!\\)\]) -> $1...
  • Trim whitespaces: ^\s+|\s+$ -> (empty)

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
.url WebView Opener
10 months ago by Kieirra
Obsidian plugin to open .url file in the internal webview of Obsidian
Alias from heading
4 years ago by Chris Basham
Obsidian plugin: Implicitly add an alias matching the first heading in a document.
Broken Links
2 years ago by ipshing
Easy Typing
5 years ago by yaozhuwa
This is a plugin of obsidian for users writing in an easy way.
Edit Link Alias
4 months ago by mnaoumov
Obsidian Plugin that adds edit link alias command.
Enhance YouTube Links
3 years ago by GitSum
Take a YouTube link and get the title and optionally channel name, channel URL, and thumbnailURL.
External Links View
7 months ago by theamritanair
An Obsidian plugin which collates all external links in one view.
FastForwardLink
a year ago by Idan Liberman
FastForwardLink Obsidian.md Plugin
Footlinks
5 years ago by Daha
Obsidian plugin that extracts urls from the main text to footer, offering a better reading/editing experience.
Format Automatically with Prettier
a year ago by Dylan Armstrong
Format with Prettier using built-in settings for Obsidian
Geulo
2 years ago by Junyoung Bang
Extension for pulling and syncing the videos that you liked in Youtube to Obsidian vault.
Link with alias
3 years ago by Pavel Vojtechovsky
Obsidian plugin for handy creation of links and alias in front matter of target document
Note Companion AI
8 months ago by Benjamin Ashgan Shafii
Note Companion: AI assistant for Obsidian that goes beyond just a chat. (prev File Organizer 2000)
RSS Dashboard
4 months ago by Aditya Amatya
A dashboard for organizing and consuming RSS feeds, YouTube channels, and podcasts with smart tagging, media playback, and seamless content flow.
Smart Link Alias
a year ago by Victor Perez-Cano
Thumbnails
4 years ago by Michael Harris
Add youtube thumbnails into your obsidian notes
Timecodes
a year ago by Kirill Gavrilov
Makes timecodes clickable, if there was a video URL mentioned earlier in Obsidian note
YouTube downloader
2 years ago by Blake Chan
download video from youtube
Youtube Iframe Timestamps
2 years ago by Nils Leo
Obsidian plugin to embed YouTube videos with clickable timestamps. Take video notes seamlessly without leaving your vault.
Youtube Summarizer
2 years ago by ozdemir08
YouTube Template
2 years ago by sundevista
📺 A plugin that would help you to fetch YouTube videos data into your vault.
YouTube Video Summarizer
a year ago by mbramani
Generate AI-powered summaries of YouTube videos directly in Obsidian using Google's Gemini AI.
YTranscript
3 years ago by Łukasz Strzępek
YTSummarizer
a year ago by Arda Kalaycı