Skip to content

Allow templater strings in button templates #406

@andresatierf

Description

@andresatierf

Please fill out these Check-boxes

  • I checked for existing similar feature requests
  • I have read the docs and checked that the feature I am requesting is not already implemented
  • My feature request consists of only one feature

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions