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

Template Hotkey cannot be deleted #1495

Open ifulou opened 3 weeks ago

ifulou commented 3 weeks ago

Plugin information

Bug Description

Template Hotkey cannot be deleted.

The delete buttons doesn't work.

See the picture below.

Templater settings

Zachatoo commented 2 weeks ago

I cannot reproduce. Are there any errors in the dev tools console when you try to delete a template hotkey?

To access the developer console to look for console errors, you can use the following keyboard combinations:

Windows: CTRL + SHIFT + i
MacOS: CMD + OPTION + i
Linux: CTRL + SHIFT + i

ifulou commented 2 weeks ago

@.***

From: Zach Young Date: 2024-11-07 13:13 To: SilentVoid13/Templater CC: ifulou; Author Subject: Re: [SilentVoid13/Templater] Template Hotkey cannot be deleted (Issue #1495) I cannot reproduce. Are there any errors in the dev tools console when you try to delete a template hotkey? To access the developer console to look for console errors, you can use the following keyboard combinations: Windows: CTRL + SHIFT + i MacOS: CMD + OPTION + i Linux: CTRL + SHIFT + i — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

simsa-st commented 1 week ago

Hi, I have the same problem on Mac. This shows up in the console when clicking on the delete button:

plugin:templater-obsidian:10 Uncaught TypeError: this.plugin.removeCommand is not a function
    at ln.remove_template_hotkey (plugin:templater-obsidian:10:84604)
    at eval (plugin:templater-obsidian:7:31680)
    at HTMLDivElement.<anonymous> (app.js:1:1485546)
remove_template_hotkey  @   plugin:templater-obsidian:10
eval    @   plugin:templater-obsidian:7
(anonymous) @   app.js:1

Zachatoo commented 1 week ago

Try updating to the latest version of Obsidian (1.7.6).