SilentVoid13 / Templater

A template plugin for obsidian
https://silentvoid13.github.io/Templater
GNU Affero General Public License v3.0
3.32k stars 199 forks source link

Registered Templater templates come up duplicated with Insert and Create on Command Palette #1496

Open zanodor opened 3 weeks ago

zanodor commented 3 weeks ago

Is there a way to remove Create and only have Insert on the command palette?

Sorry to make a mess here and file it as a bug, should be an FR.

Zachatoo commented 3 weeks ago

Can you explain the use case? Ideally I don't want to add yet another toggle to the massive wall of settings.

zanodor commented 3 weeks ago

First of all, I got confused, so I thought it was a bug and could only see it in certain cases. Then I realized it is not the same command: one is a Create XY command, the other Insert XY command. Templater is often used to modify existing markdown files with existing properties with javascript, often just to replace or add to the main body text. When one is looking for the command in Command Palette, both Create and Insert versions will come up and when the names are already similar, it's hard to distinguish between what I want to fire, let alone look for the one that starts with Insert as I always want to fire the Insert commands.

As you said, you don't want to add yet another toggle in the settings but I think it would be a good idea, as I doubt it that I'm the only one with this issue.

I have 25-30 Js scripts using tp and I thought about moving the non-template types to another plugin but I thought I'd write here first.

Templater has two main uses: templates and plugin for everyday javascript modifications. The latter cases should be separated from the former, meaning Create commands I don't need for these Js snippets.