Nama

unlisted

by Phorcys

Name the URLs of a selection, strip the noise from their titles, copy the URLs out. <>

Updated 13d agoApache-2.0
View on GitHub

Nama

Obsidian TypeScript just Kanon

A simple Obsidian plugin: name the URLs of a selection, strip the noise from their titles, copy the URLs out.

Commands

Each one acts on the selection, or on the current line when nothing is selected; each is also in the editor's context menu.

CommandEffect
Name URLsevery bare URL becomes [title](url)
Replace URLsevery URL not embedded becomes [title](url), named links included: their name is replaced by the page's title
Insert URLthe text becomes [text](url) with the clipboard's URL; without one, the cursor waits in (), in insert mode under vim
Enrich URLsevery URL not yet embedded becomes ![name](url), which Obsidian renders: a YouTube video, a tweet, an image; on a line without one, ![](url) with the clipboard's URL is inserted at the cursor
Copy first URLthe first URL, named or bare, to the clipboard
Copy all URLsevery URL, one per line

Insert URL takes the text of the line past its list, task, quote or heading marker when the whole line is selected, or nothing is.

The strip patterns are regexes, one per line, in the settings.

Network

Name URLs and Replace URLs are the only commands that go online: they download each page they name to read its title, or ask YouTube's oEmbed endpoint for a video's. Nothing else is sent anywhere, and nothing is collected.

Install

From Obsidian: Settings → Community plugins → Browse → Nama.

From the sources, into the vault .env names:

cp .env.example .env    # set NAMA_VAULT
just setup
just install

Make it yours

[!TIP] Built for one vault and one pair of hands. Feel free to clone it and adapt it to your needs with your agents: the rules they follow are already in AGENTS.md ;)

License

Apache 2.0

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.