snezhig/obsidian-front-matter-title

Renaming a note renames it based on its template title instead of its basename

redactedscribe opened this issue ยท 2 comments

For example:

  1. Common main template value {{icon }}{{title|_basename}} and processor disabled.
  2. Create new file Test and add icon: ๐Ÿ™‚ front matter.
  3. In Files tab, you see "๐Ÿ™‚ Test".
  4. Renaming the file via the sidebar shows "๐Ÿ™‚ Test" as the value which can be edited, instead of "Test".
  5. Just press enter (or click away) and the file's basename is now "๐Ÿ™‚ Test" and displays as "๐Ÿ™‚๐Ÿ™‚ Test" in the file's inline title (but only shows "๐Ÿ™‚ Test" in the Files tab for some reason).

If Settings > Files & Links > Automatically update internal links is enabled then all "[[Test]]" wikilinks are now modified to be "[[๐Ÿ™‚ Test]]" instead.

In 3.7.1 plugin should set basename when file is being renamed.

It works, thank you.