Pasting URL not working as expected

What I did:

Selected text, pasted a link

What happened:

The selected text was replaced by the url which then expanded into the title of the linked page

What I expected:

The link to be added to the text I had selected.

Things that might be helpful to know (Agenda version, OS and model, etc):

Version 22.0 (366) - Mac App Store

We did indeed add the ability to paste a link onto text. The text should all be selected when you paste.

Can you update to Agenda 22.1 or 22.2 to see if that helps?

If not, let me know the circumstances. Eg. Where do you copy the link from? Was it actually a link, or a piece of text with a link in it?

I’ve been struggling with the same thing. The paste link behaviour seems a bit inconsistent.

Notice how pasting a link from Safari works as expected, then pasting a link from TextEdit overwrites the selection with the page title.

That’s probably because it isn’t really pasting a link, when you use TextEdit. It is pasting formatted text, which contains a link.

I can see if I can make it try to see if the whole text is just a link, but it is a bit of a rabbit hole.

Update: Looking closer, I see you aren’t copying a link, you are copying plain text. What happens is that plain text is pasted in, and then our link detection kicks in, finds the link, and goes and fetches the title from the web.

Any time you copy a real clickable link, and paste that, I think it should work. But plain text, even if it is plain text of a link, is a bit questionable. I suppose we could try to accept that too. Will see what I can do.

This also does not work if:

  • In Finder, in a OneDrive folder
  • Select the file and right-click
  • OneDrive action ‘Copy link’
  • Then, in the OneDrive action window that pops up, confirm the displayed link with ‘Copy’
  • Select text, e.g. ‘My link’ in an agenda note
  • Edit > Paste

The result is a link with the name ‘Microsoft OneDrive’.

I would argue that for someone as clueless as me, the link provided by OneDrive is a genuine link.

Knowing Microsoft, it is probably not a standard link, but a piece of RTF text or something, maybe even a piece of HTML.

I don’t have Microsoft Drive, so can’t easily test. If you have some way to check what is on the clipboard, it would help.

I will in any case make sure the plain text URL works.

1 Like

Something like that:
https://1drv.ms/t/c/973159301a28eac1/IQCS.................e=Pfcrte

Tested with v22.2.1 (389)
on macOS, iOS and iPadOS:

  • pasting OneDrive and iCloud link works
  • pasting web link from Safari works
  • pasting plain text, e.g. https://www.agenda.com works
  • pasting plain text, e.g. www.agenda.com creates a link with the displayed text www.agenda.com
1 Like