Giter Club home page Giter Club logo

Comments (6)

Zachatoo avatar Zachatoo commented on July 21, 2024 1

Even though this isn't a Templater bug, I'm going to recommend a solution that I'm betting will work from FeralFlora on the Obsidian Discord.

I find that the best way to run Templater via buttons is to assign the template to a hotkey, so it becomes available in the command palette. This way, you can run the template through buttons as a command, like so:

name Update literature note
type command
action Templater: Insert 07 - Bins/Templates/runImport.md
class update-lit-note

The action is written like what you see in the command palette.

https://discord.com/channels/686053708261228577/1175184210609328229/1180515931504525344

Let me know if triggering Templater with a command button instead of an append template button works.

Going to mark this as closed since it isn't a Templater bug.

from templater.

shabegom avatar shabegom commented on July 21, 2024 1

Buttons 0.5.1 should fix this issue. It was a shabegom problem.

from templater.

Whattheblah12 avatar Whattheblah12 commented on July 21, 2024

i have same problem, i dont know if its a button issue or templater

from templater.

rudyolph avatar rudyolph commented on July 21, 2024

I'm hoping the recent bugfix change has something to do with it and that it is an easy fix. I rely on this functionality heavily.

"modifying current file immediately after inserting template causing file content conflicts ([b9112fa]"

from templater.

rudyolph avatar rudyolph commented on July 21, 2024

Looks like Buttons also had a release last week and found this issue reported:

shabegom/buttons#210

I tried reverting to the previous version of Templater and the issue is still there so I'm thinking this may be on the Buttons side of things.

from templater.

Whattheblah12 avatar Whattheblah12 commented on July 21, 2024

Looks like Buttons also had a release last week and found this issue reported:

yes it is a buttons issue, i looked on their github for this issue too, and unless you want to rewrite your buttons you need to go into the previous version of buttons

buttons changed the way it works so that it "activates" the templater code FIRST before running the rest of the button code, i.e it applies all the templater code to the template if you did not code the button around this fact

from templater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.