MCPcopy Index your code
hub / github.com/denolehov/obsidian-url-into-selection

github.com/denolehov/obsidian-url-into-selection @1.11.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.11.4 ↗ · + Follow
90 symbols 172 edges 17 files 5 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Paste URL into selection

Insert links (URLs) into a selected text "notion-style" using regular Ctrl/Cmd + V

Also works the other way around, inserts text into a selected link (URL) by command palette/hotkey(need to be set manually)

Demo

example

Compatibility

Custom plugins are only available for Obsidian v0.9.8+.

Installation

In order to install this plugin, go to "Settings > Third Party Plugins > Paste URL into selection".

If you have any kind of feedback or questions, feel free to reach out via GitHub issues or @evrwhr on Obsidian Discord server.


If you like what I do, you could consider buying me a coffee. It is unnecessary, but appreciated :) https://www.buymeacoffee.com/evrwhr

Extension points exported contracts — how you extend this code

PluginSettings (Interface)
(no doc)
src/types.ts
EditorPosition (Interface)
(no doc)
src/test/obsidian-mock.ts
EditorRange (Interface)
(no doc)
src/test/obsidian-mock.ts
EditorSelectionOrCaret (Interface)
(no doc)
src/test/obsidian-mock.ts
EditorSelection (Interface)
(no doc)
src/test/obsidian-mock.ts
EditorChange (Interface)
(no doc)
src/test/obsidian-mock.ts

Core symbols most depended-on inside this repo

getValue
called by 74
src/test/obsidian-mock.ts
UrlIntoSelection
called by 71
src/core.ts
isUrl
called by 55
src/utils/url.ts
setSelection
called by 37
src/test/obsidian-mock.ts
stripSurroundingQuotes
called by 19
src/utils/quotes.ts
testFilePath
called by 13
src/utils/url.ts
isWikilink
called by 13
src/utils/url.ts
checkIfInMarkdownLink
called by 13
src/utils/markdown.ts

Shape

Method 48
Function 19
Class 16
Interface 6
Enum 1

Languages

TypeScript100%

Modules by API surface

src/test/obsidian-mock.ts56 symbols
src/utils/url.ts8 symbols
src/core.ts8 symbols
src/main.ts6 symbols
src/utils/regex-cache.ts5 symbols
src/setting.ts3 symbols
src/types.ts2 symbols
src/utils/quotes.ts1 symbols
src/utils/markdown.ts1 symbols

For agents

$ claude mcp add obsidian-url-into-selection \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page