obsidian-url-into-selection icon indicating copy to clipboard operation
obsidian-url-into-selection copied to clipboard

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

Open obviousaurus opened this issue 3 years ago • 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?

obviousaurus avatar Jan 14 '22 17:01 obviousaurus

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

torrudev avatar Jan 16 '22 15:01 torrudev

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!

obviousaurus avatar Jan 18 '22 12:01 obviousaurus

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

hdysec avatar Jan 20 '22 02:01 hdysec

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

wemoveon2 avatar Jan 23 '22 22:01 wemoveon2

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

marcomusso avatar Feb 14 '23 10:02 marcomusso