Comments (8)
Or a separate plugin that can edit the canvas JSON. I have some ideas on how to implement that.
I'm really just asking questions around how canvas templates should work before anyone actually starts working on it.
from templater.
Please make this possible! thanks
from templater.
Were you thinking of a new Templater API like tp.file.create_canvas(...)
? Or using a canvas file as a template? Both? Something else?
There's not a lot of details here so I have no idea what you're looking for.
from templater.
ey @Zachatoo, thanks!
I watn to create new canvas from a template. I have created the template.canvas in the template folder, but when creating a new canvas from the template... It doen'st create a new .canvas but a .md file.
It would be awesome to create new canvas from a template. For example, I use projects, brainstorms, ideas.. from canvas.
Steps:
from templater.
Would creating a canvas from a template create copies of any notes in the canvas, or just reference them?
Right now Templater commands only work in an editor, they'd need to be updated to work in a canvas text card to make this truly useful.
The ordering of command execution may be confusing, we'd probably want to go from top to bottom in the JSON structure, but that'd be annoying to figure out in the canvas UI. Would be easier if there was a "source" mode for canvas where you can edit the JSON directly, but that would be out of scope for Templater to add.
from templater.
I guess that obsidian needs to do some improvements to canvas to extend these functionalities?
from templater.
Well, I think I accidentally got it working, so that's fun! I did a very basic test using a .canvas
file as a template file and it appeared to work for me. Can I get someone else to verify that they can use .canvas
files as templates in Templater 2.2.0+?
from templater.
I'm going to assume this is working for others, and that the feature I added is the feature the OP was looking for. Marking as resolved. Feel free to make a few feature request if you're looking for something else.
from templater.
Related Issues (20)
- Link to a new file will trigger Templater in a specific folder HOT 2
- Feature request: allow for ordering which templater code is excuted first HOT 2
- Templater updates new file's last modified timestamp even if no templater code was run
- SImple syntax not displaying values correctly HOT 2
- Suggestion to Improve New Folder Template Addition Behavior in Templater Settings HOT 1
- Bug | tp.date.now() will incorrectly parse the last week of the year and first week of the next year HOT 2
- Random picture generator inoperable HOT 16
- First character of file path cut off in command palette if no templates folder set HOT 9
- Minify main.js HOT 1
- Add support for vanilla template variables like {{data}} for enhanced compatibility
- Using tp.file.rename doesn't rename current note but creates a new note instead HOT 1
- System Prompt in file order HOT 3
- First letter of every file cut off in search modal HOT 1
- template mis-applied when a note is created but not opened HOT 1
- generate_folder() has incorrect `relative` logic vs generate_path() HOT 1
- Syntax highlight on desktop causes the leading part of unordered list in table cell to disappear HOT 1
- Request: Zipped release for manual install
- Duplication bug when using Multiple Cursors
- Templater web requests not working on Obsidian mobile HOT 2
- Unable to create my own quote callout using tp.web.request - 400 error HOT 1
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.