What I’m trying to do
Since I’ve updated to the newest version of Templater (2.4.2), the order of the templates in the template modal has changed.
- The new sorting algorithm looks at the full filepath as a whole and puts first wherever the search-key appears first, i.e. at a higher order in the folder structure.
- The old sorting algorithm did the same BUT, id preferred the filename over the filepath.
Why is this a problem?
- The ordering differs from standard Obsidian (e.g. for opening a file)
- The change forces everybody to update muscle-memory obtained over years of inserting templates which easily leads to errors.
- The old algorithm has some important advantages, see the example below
Example: Before the update, when I typed “3” the template Snippets/Block Elements/H3
appeared on top, i.e. before all the templates nested inside 03_/.../...
. Now I have to type H3
to get it right… While this is still feasible, if H3
was also appearing in one of the folder-names the H3-template would hardly be accessible anymore… unless…
- … you move
H3.md
to the top level in the folder structure – which isn’t an option if this needs to be done with dozens of files. - … you cycle backwards through the search results – which isn’t an option if there are files named
H3-foo.md
,H3-bar.md
etc.
Question
Is there a way to influence the search order? A simple switch to move back to the old sorting algorithm would be enough!
Things I have tried
- I checked all settings in Templater
- I searched for a changelog but did not find it (is there one?)
EDIT
Reformulated the whole question and changed the example.