-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Links: Automatically Format a New Hyperlink With Title Text From the Link Destination #20442
Comments
Bear app: Google Docs: Oh — I was wrong about GitHub behavior; it doesn't pull the full title, just the issue number. |
I love this idea. It feels like a small but easy step to improving the experience. My first feelings are that making this as automated as possible is the best path. As you can edit later, just having the best guess feels right.
This feels like worth moving into PR and then seeing if we want to iterate. |
Thanks for the props :) I do believe this made sense for internal links. For external ones I'm not so sure if it would be better. My thoughts:
I'm not opposed the idea if we could make it work in a good way.. but I do believe it should be optional. After inserting the link add option: "attempt to replace this link with title" |
I am not testing this https://www.wpexplorer.com/wp-auto-post-link-title-attributes/ |
This change would immediately improve readability across a third of the web.
How might we encourage more useful and readable link titles instead of bare URLs or "here" or "#"? My suggestion is to adopt a common pattern from other editors such as Bear, GitHub, Asana, and Google Docs.
Automatically format a new hyperlink with title text from the link destination.
Typical workflow has one too many steps. When adding a link into the editor, I often go to the target page and copy/paste the URL first into the editor. Then, as a second step, I copy/paste the title text of the page as a "paste over" action to format the URL.
What if that second step is automated? What if Gutenberg goes to the target, async, and retrieves the title text? It could be the default behavior and create more readable links.
Other editors:
GitHub formats GitHub internal URLs this way, after saving the comment by replacing the bare URL with a full hyperlink.
Asana creates an inline hyperlink to other Asana links immediately after you paste the bare URL, using an async process, which updates in the textarea without a prompt.
Bear (the Mac and iOS app) does it on paste, with any bare URL.
Google Docs prompts you to replace the text automatically for other Google documents when you hover over the bare URL.
CC @mtias and @karmatosed in case this is previously suggested and I missed it.
The text was updated successfully, but these errors were encountered: