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
534 stars 42 forks source link

Allow templater strings in button templates #406

Closed andresatierf closed 2 months ago

andresatierf commented 2 months ago

Please fill out these Check-boxes

Is your Feature Request related to a Problem or Annoyance?

I think there is a lot of potential to button templates, but is hard to make them generic.

Describe the Feature you'd like

I would like for it to be possible to add templater code inside the button templates.

The below example would be a button that allows users of daily notes to navigate to the next day note

label: Tomorrow
hidden: false
id: go-to-tomorrow
style: destructive
actions:
  - type: open
    link: "<% '[[journal/daily/' + moment(tp.file.title).subtract(1, 'day').format('YYYY-MM-DD') + ']]' %>"

Alternatives

I think this is a good alternative to #317

Additional Context

No response

mProjectsCode commented 2 months ago

Thanks for the FR, but some implementation of #317 is simpler and more powerful. Additionally, I don't want this plugin to become very reliant on Templater, which I don't use much and thus don't know much about.