Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zanodor opened this issue Nov 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@zanodor
Copy link

zanodor commented Nov 4, 2024

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.

@zanodor zanodor added the bug Something isn't working label Nov 4, 2024
@zanodor zanodor changed the title Registered Templater templates come up duplicated on Command Palette on mobile (only) Registered Templater templates come up duplicated on Command Palette on mobile and among Hotkeys on PC Nov 4, 2024
@zanodor zanodor changed the title Registered Templater templates come up duplicated on Command Palette on mobile and among Hotkeys on PC Registered Templater templates come up duplicated with Insert and Create Nov 5, 2024
@zanodor zanodor changed the title Registered Templater templates come up duplicated with Insert and Create Registered Templater templates come up duplicated with Insert and Create on Command Palette Nov 5, 2024
@Zachatoo Zachatoo added enhancement New feature or request and removed bug Something isn't working labels Nov 7, 2024
@Zachatoo
Copy link
Collaborator

Zachatoo commented Nov 7, 2024

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

@zanodor
Copy link
Author

zanodor commented Nov 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants