denolehov/obsidian-url-into-selection

Pasting URL into selected text replaces text instead of creating a link

obviousaurus opened this issue · 5 comments

Issue Description
Pasting a URL into selected text suddenly stopped working.

Steps to Reproduce

  1. Copy a URL
  2. Open an Obsidian note
  3. Select some text
  4. Paste the URL

Expected Behavior
Text is is modified in the following format
[original text](pasted-url)

Observed Issue
Text gets replaced with pasted URL

Additional Data
Obsidian v0.13.19
macOS 12.1
Paste URL into selection Version 1.6.0

Tried restarting Obsidian, un/re-installing plugin. Issue persists across all vaults.

Any ideas for a fix?

Hi I'm also having this issue, I think it's related to the new live preview feature added with some recent update, it changed how the editor works.

Using legacy editor fixes it for me. You can activate it by going into Settings > Editor > General and enable "Use legacy editor"
It's explained in this post: https://help.obsidian.md/Live+preview+update#Wait+I'm+not+ready+to+switch

Aha, yes, I'm using the latest editor. I'll keep an eye out for updates on a fix for this.

Thanks for the explanation!

appears to be broken since most recent update with obsidian. Works fine in legacy

would like to see a fix, i set the hotkey to ctrl+shift+v to use it with live preview but would prefer not having that hotkey being taken up

I have the same issue on latest versions (MacOS) but I can workaround it by undo and paste again... annoying but it works