URL Namer
approvedby zfei
Retrieve the HTML title of web pages to name external links.
Obsidian URL Namer
This is a plugin for Obsidian (https://obsidian.md), that retrieves the HTML titles to name the raw URL links.
Usage
Select the text that contains the URLs to be named, execute the command Name the URL links in the selected text.
It's recommended to name few URLs at a time. In the case when the URL requests are taking some time, please DO NOT change the text selection or the content itself, before the command is done. Otherwise, the eventual result will be out of order.
Easier with the command binded to a keyboard shortcut.

Compilation
- Clone this repo.
npm ioryarnto install dependenciesnpm run buildto compile, ornpm run devto start compilation in watch mode.
Installation
- After compiled, rename the
distdirectory toobsidian-url-namerand move it into the vault's plugin directoryVaultFolder/.obsidian/plugins/.
Customization
Currently the regex for URL matching is hard coded in main.ts/UrlTagger.rawUrlPattern. The built-in URL regex pattern can be tested here: https://regexr.com/6rr0c.
By default, the title is got from the <title> tag from the HTML source of the URL. However, often times, the content of a page is lazy-loaded, and the title will have to be inferred from the page-load parameters. In such cases, there needs to be site-specific title regex to deal with this.
Future Development
- Parametrize the URL regex pattern into the plugin settings.
- Parametrize site-specific title regex into the plugin settings.
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.