I’ve been testing other macOS apps and they all have similar behavior in this case. The rule is pretty simple:
On paste if selection isn’t empty, and pasted text is URL, then add link instead of replace selection.
But it can lead to confusion. I was confused a bit earlier today when copying and pasting links. I’m not quite sure what answer is.
On one hand it’s nice feature to paste a url over selection and create a link. On the other hand that’s a special case, and isn’t working the way a text editor normally should.
I could make the rule more complex and do various checking … but in the end that might confuse more then help. I’m open to suggestion here:
That might be better. I think “this case” should be for any paste of text that looks like URL though, not just case where the URL doesn’t match the selected text, but the selected text is URL.