generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 264
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- OS: MacOS and Windows 10/11
- Templater version: 2.16.2
- Obsidian version: 1.9.12
- Templater settings:
{
"command_timeout": 5,
"templates_folder": "",
"templates_pairs": [
[
"",
""
]
],
"trigger_on_file_creation": false,
"auto_jump_to_cursor": false,
"enable_system_commands": false,
"shell_path": "",
"user_scripts_folder": "self/scripts",
"enable_folder_templates": true,
"folder_templates": [
{
"folder": "",
"template": ""
}
],
"enable_file_templates": false,
"file_templates": [
{
"regex": ".*",
"template": ""
}
],
"syntax_highlighting": true,
"syntax_highlighting_mobile": false,
"enabled_templates_hotkeys": [
"Templates/SayHi.md",
"Templates/MyTemplate.md"
],
"startup_templates": [
""
],
"intellisense_render": 4
}Describe the bug
When the Templater hotkeys are displayed in the command pallet, the first letter of the command is missing when a template folder is not configured
Expected behavior
The full command name and path should be displayed
Screenshots
Additional context
I've already debugged the issue and have a fix. I plan to make a PR soon. This happens because I dont have a template folder configured and the CommandHandler::add_template_hotkey() method creates the command list by creating a new_template_name from the template folder and slices it off from the new_template string. However, if a template folder isn't set, it will still cut off one character. In my case, it cuts off the first letter of my script name

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working