Add default display text when inserting a link to canvas or base

Use case or problem

When inserting an internal link to a canvas or base it should automatically insert default display text to omit the extension of the file. This used to be the case but has been removed.

For example inserting an internal link for [[Test Canvas.canvas]] should automatically update to [[Test Canvas.canvas|Test Canvas]] so that it displays as Test Canvas not Test Canvas.canvas in the document.

This feature previously existed and apparently was removed in 1.11 (despite not appearing in the changelog) according to these bug posts:

* https://forum.obsidian.md/t/when-linking-to-a-base-it-doesnt-set-a-display-name-like-linking-a-canvas-does/106745
* https://forum.obsidian.md/t/links-to-canvases-do-not-remove-the-extension-when-pressing-tab/110787

Perhaps it was accidentally changed in 1.11.5 which states:

Restored default display text when inserting a link with folders in the linktext (e.g. [[a/b/file]] will automatically be inserted as [[a/b/file|file]]).

maybe this change broke it for .canvas and .base files?

Proposed solution

The internal link should autocomplete and set the display text to the name of the canvas without the extension. This used to happen correctly and was removed in a recent version.

[[Test Canvas.canvas]] should automatically update to [[Test Canvas.canvas|Test Canvas]]

Current workaround (optional)

Manually typing the display text (though this is very tedious for long named files, especially when this automatically happened in the past)

Related feature requests (optional)

* https://forum.obsidian.md/t/when-linking-to-a-base-it-doesnt-set-a-display-name-like-linking-a-canvas-does/106745
* https://forum.obsidian.md/t/links-to-canvases-do-not-remove-the-extension-when-pressing-tab/110787

As I stated in the other thread, the change was intentional not accidental.

We’ll keep this FR open to gauge interest in automatically adding an alternative text (alias) when creating a link to .base and .canvas.

interest in automatically adding an alias to .base and .canvas

The ability to add aliases to base/canvas files (or any front matter / tags for that matter) would be amazing!

Just reverting the behaviour change would be great though, would be a good QoL feature. Are you able to share the reason behind the intentional change?