>>! In T55973#2792226, @matmarex wrote:
> Another idea (strawman): If a wikilink's target is identical to label, we could just synchronize the target with the label when the label is changed. In both the link context and the link inspector, there would be a "lock/unlock" button to toggle this behaviour for the currently focused link.

Thanks for the proposal, @matmarex. As pointed out above, the difference is about how much automatic we need the process to be.

Changing the target automatically solves the problem without requiring the users to notice what is going on, which works rally well when it does the right thing. However it creates a stronger inconsistency of expectations when editing a link and has a higher cost for false positives:
- Inconsistency of expectations. Some links will change their target and others won't. Changing "lemon" to "orange" will change the target, but changing "lemons" to "oranges" won't. Conversely, with the proposed approach editing the document will change always the label for all kinds of links, but it will provide a suggestion to change the target too for some of them.
- Cost for false positives. The Tokyo article indicates that it is the "capital" (linking to [[ https://en.wikipedia.org/wiki/Capital_of_Japan | "Capital of Japan" ]], not to [[ https://en.wikipedia.org/wiki/Capital | "Capital" ]]. The user can add a link to "Capital of Japan", change it to just say "capital" and either miss that it now points to a different article or get annoyed by having to recreate the link again on an autocorrect-like situation.


>>! In T55973#2792689, @DLynch wrote:
> * It's hard to change the link text completely. Selecting the entire thing by dragging is prone to accidentally selecting outside the link annotation and thus un-linking it when you start typing. Common case: people who paste in a URL letting it auto-link, and then want to add a descriptive label.

This is an interesting case too, thanks for pointing to this, @DLynch. I wonder if we could facilitate things by selecting the whole label when the link is selected/added (similar to what "add label" does for quick links). This can be applied to either to (a) links with a URL as label, or (b) links that got their label automatically and have not been edited before.
It is hard to anticipate how that may interfere with all the other editing processes, but it may be worth prototyping an example to check how it feels in practice.