Comments (6)
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.
Buttons 0.5.1 should fix this issue. It was a shabegom problem.
from templater.
i have same problem, i dont know if its a button issue or templater
from templater.
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.
Looks like Buttons also had a release last week and found this issue reported:
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.
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)
- invalid reference date format, try specifying one with reference format HOT 4
- bug: app.workspace.getLeaf().openFile() replaces content in a note if called without "await"
- app.fileManager.processFrontMatter doesn't work HOT 1
- Templater should parse, merge and write out frontmatter gracefully HOT 6
- Applying Text Color in Obsidian Without Unwanted New Lines HOT 2
- Templater no longer works with console error "Plugin failure: templater-obsidian TypeError: c is not a constructor" HOT 2
- The recent upgrade of this plug-in has broken "Trigger Templater on new file creation" HOT 6
- {{date}} fail to work after updating to 2.3.3 HOT 1
- Target file gets overwritten by processFrontMatter() HOT 1
- Note Creation with Core Plugin "Note Composer" Breaks Templater HOT 1
- Option to add ignored files to Templater settings HOT 2
- Copy existing file with templater HOT 1
- Ability to use {{date}} in Folder Templates HOT 2
- Templater file module does not support the concurrent creation of files HOT 4
- Folder Template overwrites non-empty note HOT 2
- Daily Quote errors HOT 9
- Template folder location should allow subfolders HOT 2
- Obsidian version 1.6.5 installs template. When creating a template, it will prompt that the relevant plug-in is not found. HOT 1
- Support for Folder Templates specific to subfolders
- [Feature Request] Mobile | tp.system.prompt with MULTILINE - Using a Keyboard Hotkey to SUBMIT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templater.