mProjectsCode / obsidian-meta-bind-plugin

A plugin for Obsidian to make your notes interactive with inline input fields, metadata displays, and buttons.
https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/
GNU General Public License v3.0
473 stars 38 forks source link

Button doesn't work with multi-column layout(using snippet with multi-column support through callouts) #349

Closed OB0NE closed 3 months ago

OB0NE commented 3 months ago

Please fill out these Check-boxes

This Issue Occurs on

Plugin Version

1.1.1

Describe the Issue

I have read the related #208 #79 #88, which use plugins rather than snippets. I took the tip from #88

my tip is to use a theme or snippet with multi-column support through callouts. All those multi-column plugins that change the document flow seem to break other plugins in all kinds of strange ways.

So I use a snippet that uses callouts to support multi-columns. And the button doesn't work in the sub-callout(which displays as a column): image image But the inline button works: image image

Steps to Reproduce

  1. Install snippet from https://efemkay.github.io/obsidian-modular-css-layout/multi-column/
  2. Create a new note
  3. Using callouts to create a two-column layout
  4. Create a button in one of the column
  5. See the error

Expected Behavior

In the original plugin "Buttons" by Sam Morrison the button works in multi-column layout. So if it works, it should look like this: image image

mProjectsCode commented 3 months ago

What is the error message when you click on the error?

OB0NE commented 3 months ago

What is the error message when you click on the error?

image image

mProjectsCode commented 3 months ago

Surround the command with quotes. You have, as the error message says, invalid YAML.

OB0NE commented 3 months ago

Surround the command with quotes. You have, as the error message says, invalid YAML.

I think you are right! I chose the button which creates a new note, and it works: image image

OB0NE commented 3 months ago

Surround the command with quotes. You have, as the error message says, invalid YAML.

I think you are right! I chose the button which creates a new note, and it works: image image

It turns out that this plugin is Case Sensitive, and when I write the "button" code in callouts, I capitalize the initials. After I change the initials, it works just fine.

Thank you very much for your patience and quick response! @mProjectsCode