Templates are a way of creating a note or a todo based on a markdown template based on files that are in your joplin configuration folder.
However, the way things work now, these templates are only available on the device that actually has that template folder with the markdown files, and are not synced. This also means that (as far as I am aware) that mobile devices can't use templates at all
My suggestion is to promote these templates to a first class "item type", which can be just treated as a normal note in everything except the "item type " id, but show up in different spots (such as the 'new note from template' window).
With this change, templates would gain the following benefits:
- will now synchronize across devices
- the ability to use templates on mobile devices
- can be versioned like normal notes can
- can be encrypted along with the rest of the markdown files if an encryption key is provided
- would help simplify code, such as removing the need to have filesystem detection of if the
~/.config/joplin-desktop/templates
folder exists, refreshing to see if new templates have been added, and would prevent bugs such as the one I have reported where the refreshing sometimes doesn't work: https://github.com/laurent22/joplin/issues/3575