this post was submitted on 26 Jun 2023
10 points (100.0% liked)

Memmy - An iOS client for Lemmy

2536 readers
1 users here now

Download on the App Store

View on GitHub

Join the Discord

Code of Conduct

founded 2 years ago
MODERATORS
 

When selecting text to add a link, it does the other way around and adds the selected text in the link area, and puts the cursor in the title area.

you are viewing a single comment's thread
view the rest of the comments
[–] AllYourSmurf 3 points 2 years ago (1 children)

Looks like the link creator button expects a URL and adds the place for the anchor text.

Instead, it needs to detect a URL. It should also look at the clipboard and do the right thing with clipboard content.

[–] LazaroFilm 3 points 2 years ago (1 children)

Yes a regex checking for a valid URL would do. If valid, place selection in link, else place as title.

[–] AllYourSmurf 1 points 2 years ago

Yup. Also, look at clipboard. If selection isn’t a URL and clipboard is a URL, put the selection in title and clipboard in link. And vise versa if selection isn’t a URL.