URL Formatter
approvedby Thomas Snoeck
Automatically formats specific URLs pasted into your notes into clean Markdown links.
🔗 URL Formatter for Obsidian
Automatically transforms messy URLs into clean, readable Markdown links when you paste them into Obsidian.
📖 Overview
URL Formatter helps you maintain clean and organized notes by automatically converting long, complex URLs into concise Markdown links based on customizable patterns.
💡 The Problem
Constantly pasting long URLs like this into your daily notes:
https://your-company.atlassian.net/browse/PROJ-12345
✨ The Solution
This plugin automatically formats them into clean links:
[PROJ-12345](https://your-company.atlassian.net/browse/PROJ-12345)
Or even:
[Jira: PROJ-12345 (your-company)](https://your-company.atlassian.net/browse/PROJ-12345)
[!TIP] Perfect for anyone who frequently pastes URLs containing meaningful identifiers (like Jira tickets, blog posts, documentation pages) into their vault!
🎯 Usage Examples
Here are practical examples showing how to configure patterns and their outputs:
Example 1: Jira Ticket Formatting
| Setting | Value |
|---|---|
| Pattern Name | My Jira Tickets |
| Regular Expression | https:\/\/yourcompany\.atlassian\.net\/browse\/([A-Z0-9-]+) |
| Output Format | $1 |
Input:
https://yourcompany.atlassian.net/browse/PROJ-4567
Output:
[PROJ-4567](https://yourcompany.atlassian.net/browse/PROJ-4567)
Example 2: Blog Posts with Year & Slug
| Setting | Value |
|---|---|
| Pattern Name | My Blog Posts |
| Regular Expression | https:\/\/www\.example\.com\/blog\/(\d{4})\/([a-zA-Z0-9_-]+) |
| Output Format | Blog ($1): $2 |
Input:
https://www.example.com/blog/2023/my-awesome-article
Output:
[Blog (2023): my-awesome-article](https://www.example.com/blog/2023/my-awesome-article)
Example 3: Documentation Pages
| Setting | Value |
|---|---|
| Pattern Name | Specific Docs Page |
| Regular Expression | https:\/\/docs\.mycompany\.com\/pages\/([a-z0-9-]+) |
| Output Format | Docs: $1 |
Input:
https://docs.mycompany.com/pages/getting-started
Output:
[Docs: getting-started](https://docs.mycompany.com/pages/getting-started)
☕ Support
Coffee is life and it sure helps me keep going!
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.