YAMLParseError when copying from button builder to button template
Please fill out these Check-boxes
- [x] I checked for existing similar issues
- [x] I checked that the plugin is up to date
- [x] The issue persists with all other plugins and themes disabled
Plugin Version
1.4.15
This Issue Occurs on
- [x] Windows
- [ ] Linux
- [ ] macOS
- [ ] Android
- [ ] iOS
Debug Info
SYSTEM INFO:
Obsidian version: 1.13.0
Installer version: 1.12.4
Operating system: Windows 11 Enterprise 10.0.26200
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 8
Plugins enabled: 2
1: Meta Bind v1.4.15
2: Templater v2.21.0
RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Describe the Issue
I used the Metabind button maker via the command menu (ctrl + p), Open button builder and after copying the builder results to clipboard and attempting to paste as a button template using the Add Template from Clipboard, I get the error:
YAMLParseError: Implicit keys need to be on a single line at line 1, column 1
The offending code, according to the warning, is:
```meta-bind-button ^
Steps to Reproduce
I do not know what, if any of the provided data in the button fields, could be causing this issue. However, here are steps I know work to create the issue.
- Use ctrl + p to bring up the command palette.
- Type
buttonto get the button builder command to show up and select it. - Add anything as the label, I used
Part Lookup. - Set the style to
primary. - Set the tooltip to anything, I used
Find LEGO parts based on multiple criteria.. - Set the id to whatever, I set mine to
button-part-lookup. - Leave the
hiddentoggle off. - Select the
runTemplaterFileaction and select a template found within your Templater templates folder, mine doesn't do anything currently (just setting this vault up). - Click the button
Copy to clipboard. - Open the Obsidian Settings and go to the plugin settings for Meta Bind.
- Click the
Edit templatesbutton for Button templates. - Choose the
Add Template from Clipboardbutton. - Receive error.
Expected Behavior
The button content used to be pasted into a new button template and show in the Meta Bind Button Templates list.
Bug #666 is a...beast of a bug!
This will be fixed in the next version