Skip to content

Enable buttons to insert Obsidian native templates #617

@jshumway

Description

@jshumway

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?

No.

Describe the Feature you'd like

Buttons should be able to insert an Obsidian native template (I.e., the core plugin “templates”) with just a button press.

One option would be to add a new action for built in templates.

Presently, the options are to:

  • setup and learn Templater
  • setup a button to run the “Insert template” command, followed by an input action to enter the name of the template, then manually click on the highlighted template name
  • use and insert text action and put the body of the template into the buttons definition; template variables like {{title}} don’t work.

Alternatives

It would also be possible to enable this behavior by allowing the input action to accept the template from the list brought up by the “insert template” option, instead of the user clicking or hitting “done” (on mobile).

Additional Context

If there is an implementation plan that isn’t too complicated I’d be happy to take a stab at it, of this is a feature that is acceptable for this plugins design.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions