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)
- 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
- When using tp.file.cursor inside an internal link, cursor is placed before the link HOT 1
- Embedded image causes Obsidian to lock up for 45 seconds in renderer HOT 1
- 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 14
- First character of file path cut off in command palette if no templates folder set HOT 8
- Minify main.js 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.