recent-files-obsidian icon indicating copy to clipboard operation
recent-files-obsidian copied to clipboard

Add support for the Front Matter Title plugin

Open Trikzon opened this issue 11 months ago • 1 comments

This PR adds support to the Front Matter Title Obsidian plugin. When setting the title of a note in the Recent Files List View, the plugin will check to see if the Front Matter Title plugin is enabled and if it is it will use Front Matter Title's title for the note.

I am using the front-matter-plugin-api-provider that Front Matter Title provides to safely handle inter-plugin communication. If the Front Matter Title plugin is not installed in your vault the Recent Files plugin will not crash.

I hope that this PR finds you well. If you would like any changes to the PR, feel free to let me know :D

Edit: Just amended my commit to 1. add a little more documentation and 2. check if the query returns null or not. It is good to merge now, imo

Trikzon avatar Sep 19 '23 21:09 Trikzon

Also, just to add, this was first brought up as an issue on the Front Matter Title github repository in 2022: https://github.com/snezhig/obsidian-front-matter-title/issues/12

The safe API was seemingly made, in part, so that the Recent Files plugin can work with it.

Trikzon avatar Sep 23 '23 01:09 Trikzon