mo-seph / obsidian-note-from-template Goto Github PK
View Code? Open in Web Editor NEWSimple plugin to create Notes from a template, and fill in fields defined there
License: MIT License
Simple plugin to create Notes from a template, and fill in fields defined there
License: MIT License
When creating a new file, underscores are removed and therefore an intended filename such as
ProjectName_20230101_Meeting
will become
ProjectName20230101Meeting.
Hello @mo-seph !!!!!!
My first FR for this amazing plugin is easy to explain: insert the content of an template in the active note in the caret position !!!!
I use a lot of tables in my notes in Obsidian. And its a hard job to fill every cell of a table :(
My idea is to use your plug-in to help me with this
This is my template note with my template table (I will have many of this with different tables layouts 2x2, 3x3, 5x5)
It's amazing because I can't fill my table just using TAB
!!!!
What I miss is the ability to insert this filled table in the current note :( and continue to write in my note
I hope you like my FR! Let me know if you need any information
Have a great day!
Chinese characters
测试
select the Chinese characters and use the template file with from template plugin to reproduce the issue
I've tried for some time to get this working, but whatever I do (have read all the docs etc) when I click the Add button on the 'Create from Template' modal no file is created, and there is no error message. Would you have any advice on what I should check to diagnose this problem? Thanks!
It would be really helpful if there were an option to strip markdown from the title when using the text to create a note.
In my case I am using the Mindmap plugin so all my text is prepended with ## to create the formatting, and that is being added to the note title. I could also imagine it being a bit of a pain with inline styling maybe.
Great job on the plugin! Here's what I'd like to accomplish:
I've entered "中文測試test" as title, the generated file name will be "test.md", but the {{title}} in test.md is correct string.
template-replacement has the same problem for title variable.
title, overview, body
中文測試test - 中文測試test - 中文測試test
file name will be "test.md", not "中文測試test.md"
Hello @mo-seph !!!!
I wanna suggest a new feature for the new dropdowns feature .
My FR is the ability to insert {{variable}} filed inside the dropdown syntax.
Choosing between Pie and Juice for today Menu
---
template-output: "Menus"
template-filename: "Today Menu"
---
Option for Today: {{dish}}
The Special dish is: {{Options:Apple {{dish}}:Mango {{dish}}:Strawberry {{dish}}}}
I think this could be a great option to make the creator modal even more dynamic :)
Thanks foe reading !
Have a great day!
Using the "Joe Blogs" demo from the README:
Joe Blogs - manager at Weissman Heiss - (lots of details)
I get a create from template popup that looks like this, with the Overview field empty:
And the output note looks as you would expect from the popup (missing the overview):
I've tested with some other templates and the result is always the same. If I put in A - B - C - D - E, it will only show A in the title and B in the body. If there is no {{body}} only A will show
Also, no matter the folder I give for template-output, it will only place the note in the root.
I'm just getting started with this plugin, and tried to start with putting together some basics for a personal music catalog with a template like this:
---
template-filename: "{{artist}} - {{title}}"
template-output: music/tracks
template-should-replace: "never"
template-should-create: "open"
artist: "{{artist}}"
title: "{{title}}"
---
# {{artist}} - {{title}}
When the dialog pops up, for some reason, the fields are ordered so that title comes first:
Would it be possible to specify the order somehow, or at least respect the order of appearance in the template file?
It's as the title says, when I have a note open in edit mode, but with nothing selected, then run the plugin, it'll link the newly created note where my cursor was.
From what I understand, it should only do so when I had something selected and wanted to make a new note of it.
I'd like to keep the toggle in the settings on, for cases where I select stuff to be in the new template - maybe make separate options for this? One to decide if there should be a link regardless of the selection, and one if there should be a link when a selection was used.
PS: I've been playing around with your plugin a lot, it really has potential, that's why I'm opening quite a few issues ^^'
I use Note From Template for a lot of my task management and note taking. I have many projects happening at any time. I have a dataview filter which automatically creates a list of projects based on metadata from pages in my Projects folder. When creating a note or task using Note From Template, it would be incredibly convenient for the drop down selector to be able to be populated with a dataviewjs request, such as
dv.pages('"01_Projects"').distinct(p => p.project).where(p => p.project)
Then, as I add or remove projects from the active folder, I don't need to update the template.
Luxon has the capability to use presets for the date/time formatting, but I cannot seem to get the syntax right to make it work with From Template. Do you have any examples?
Thanks!
-Gary
Hello @mo-seph !!!!!
Would be amazing to have a keyboard shortcut to press theAdd
button !
My Suggestion is CRTL/CMD+ENTER
This way we can jump tp fill the fields with TAB
and hit CRTL/CMD+ENTER
and don't have to use the mouse !!!!
Thanks for reading!
Have a great day!
File gets created, but doesn't open. Tried both options.
This is my template file:
---
tags: person, {{tags}}
template-input: title, overview, body
---
# {{title}}
Organisation: {{organisation}}
{{body}}
Hello @mo-seph !!!!!
Would be great to have support for date format syntax the same way that we have with obsidian core plugin Template
{{date}}
{{time}}
{{date:YYYY-MM-DD}}
{{time:HH:mm}}
I have note journals for different purposes: Dream Journal, Gratitude Journal and Anger Journal
Each one of then have is own template, filename and folder.
I have one note for day for these three journals
For example: Anger Journal
If we have a new date format syntax I could create an YAML like this to my daily anger journal template
---
template-output: Anger_Journal
template-filename: AN_{{date}}
tags: [Journal/Anger]
---
{{Question1:area}}
{{Question2:area}}
{{Question3:area}}
Thanks for reading this :)
Have a great day!
Hello @mo-seph !!!!!
If possible 🙏 I would like to ask for an specific modal name to the modal that From Template uses.
My idea is to use a CSS snippet to create a Full Screen mode for the From Template mode !!!!1
I don´t have knowledge to explain the technical terms but this FR is the same that I created for the RSS Reader plugin
joethei/obsidian-rss#51
If I have a specific modal, I can create a snippet to the Full Screen :)
Thanks for reading this !
Have a great day!
I want to prompt for a project in the template (using FromTemplate plugin) and then use that as a part of the template output. My template (as well as the many others I have tried) does not work. Is tis possible? How would I accomplish what I want?
Hello @mo-seph !!!!!
I have been using the currentDate
a lot to add some metadata to my notes. This is amazing because we can store these dates in dataview fields and create dashboards/tables to easy locate information.
This way, I’d like to ask for a smoke option to be able to hide a currentDate
field from the modal. In the case that I described above, since it’s metadata I don’t need to edit this field when I’m typing in my the modal
I would really appreciate something like {{Date:currentDate:ddHHmm:hide}}
to hide this field.
I hope you like my suggestion :)
Have a great day 🌞 !!!!!
Can't Make currentPath in template-output: working...
Could someone be so kind has to help me....
I'd like that when a new page is made with a template, the date is added somewhere on the page.
I can't get it working.
I've tried adding {{date}}, {{now}}, {{currentDate}} and {{now:currentdate}} to YAML and in the note itself.
What am I missing?
template-input
If the command is called with some text selected, split it up using the plugin's split pattern, and put the values into those fields
Default regex in plugin setting does not work - it does not split the input into title and body
\s+-s+
Template code
---
template-input: title, body
---
# {{title}}
{{body}}
I have several templates that will create new notes and your plugin works great! What I am hoping is that there is a way to use this plugin to insert into an exisitng note (bonus if I were able to update fields in the note too!).
For example, I am using an OMDb script that someone else was nice enough to share to retrieve info about movies/series/etc and create a new note. What I am hoping to be able to do is to run another template after adding the movie (for example) so I can add things like notes and my rating. I want to have a selection list similar to my templates to create notes to add a rating (with emoticon) and also select from a list of streaming services showing which service we used to view the movie.
Is any of this possible?
Thanks!
tags: person, {{tags}}
{{tags}} will be inserted into the rightside tags pane and it shouldn't.
Hello @mo-seph !!!!!!!
This FR is related to add a feature that let the user apply some text that is only visible inside the modal
Many times I want to add some text to help to understand/remember how to fill the fields.
This text is only visible inside the modal and will not be inserted in the new note.
I´m creating a template to create a Mood Tracker in Obsidian and the methodology has a lot of different types of emotions that I dont understand very well.
This way I need some text in the modal with the definitions of each one of the emotions to help me to undertand how I´m feeling
BUT I dont need this definitions in my new note,
<hr>
and <br>
to divide the content and ==highlight==
Let me know what you think :)
Have a great day!
Hello @mo-seph !!!!
Just to let you know that I think something is wrong with version 0.1.9 . I started to migrate my workflow from my test vault to my main vault (which has version 0.1.9 installed) and all my templates are broken :(
Then I tried the template from the readme.md and it´s not working as well :(
Sorry for bringing more problems.
Thanks for reading this.
Have a great day!
Hi!
This might already be possible, but since there's nothing about it in the readme, I still need to ask!
Having different field types would be really useful. The main thing I can think about now is dropdowns with predefined values.
It could look something like this:
{{dropdown:'option1', 'option2', 'option3'}}
Then when creating a file from that template, we'd be able to choose between options.
Other field types could be nice too, like date (with a calendar popping up to select the date/time), number with range...
So far, when we run the command, it'll create the new note and fill it perfectly - but then we still need to open it manually which can be annoying.
It would be nice to have toggle in the settings to open the newly created note right after creation. It could work like QuickAdd's template options: whether to open it, if yes whether to open it in a new pane or on active pane, if in a new pane whether open it vertically or horizontally.
This would remove friction of having to manually find the file. It could also be another YAML key, to make it more flexible and decide which templates should open after creation and which ones shouldn't.
created: "{{CreateDateTime:currentDate:yyyy-MM-dd HH:mm:ss}}"
HH:mm:ss separator : (colon) makes problem.
No longer seems to work with a new vault I created. Note is created, it is just not opened.
If the template has some YAML fields that are not used by note-from-template, it could be that they are being removed from the final output
Can re-index but options to add content "From Template" never appear.
Got templates: Templates/Zettelkasten/(Quote).md, Templates/Zettelkasten/Book.md, Templates/Zettelkasten/Company.md, Templates/Zettelkasten/Course.md, Templates/Zettelkasten/Create Anki card.md, Templates/Zettelkasten/ID.md, Templates/Zettelkasten/Iframe.md, Templates/Zettelkasten/Lecture.md, Templates/Zettelkasten/Library.md, Templates/Zettelkasten/Month Tag.md, Templates/Zettelkasten/Note extraction.md, Templates/Zettelkasten/Note.md, Templates/Zettelkasten/Paper.md, Templates/Zettelkasten/People.md, Templates/Zettelkasten/Post.md, Templates/Zettelkasten/Product.md, Templates/Zettelkasten/Question split.md, Templates/Zettelkasten/Question.md, Templates/Zettelkasten/Quote File.md, Templates/Zettelkasten/Reading List.md, Templates/Zettelkasten/Resource.md, Templates/Zettelkasten/TODO.md, Templates/Zettelkasten/Tag.md, Templates/Zettelkasten/Term.md, Templates/Zettelkasten/Thought.md, Templates/Zettelkasten/Yearly Reading list.md
Hi,
I have made a YouTube video (in Chinese but English subtitle provided) that introduced your plugin. Maybe you would be interested:
设定默认值的字段在输入的界面有,但在形成的笔记里没有,filename也无法调用
标签字段呈现 "tag" 形式,但""(引号)是多余的
I would absolutely love it if we could have the feature that this new plugin provides
https://github.com/numeroflip/obsidian-auto-template-prompt
My issue with aforementioned plugin is that it doesn't come with YAML tags. Especially, not having template-filename
means I can't have e.g. date-based file names automatically.
Plugin options isn't available when you first install and enable the plugin. Quitting and relaunching the app, the From Template
option pane shows up in settings. I would expect this to be available immediately like other plugins.
Thanks for this. It looks great. I tried to set the templates folder 00 Meta/Templates
but it wouldn't stick. It kept reverting to templates
.
For the drop downs I have a project tag that lists all the projects available. As additional projects are added I need to update each of my templates that have the projects list. Any chance of making this a file based list that could be read?
Thanks!
Hello @mo-seph !!!!
This is a minor FR . I don’t know if is possible :)
When open the modal would bear amazing if the first field of the modal was already focused with the caret cursor ready to type.
Today
My FR
Thanks :)
Have a great day
Hello @mo-seph !!!!!
Sorry if is a dumb question :)
Is it possible to define a specific file name in the template note in a way that when I’m creating a new note from template I could skip the text field Tilte: [ ]
I was trying to use:
template-name: filename
template-name: filename.md
template-name: ”filename”
template-name: ”filename.md”
But I get nothing :(
Thanks !
Have a great day!
Hi! I'm just getting started with using this plugin and am loving it so far particularly for my creative writing vault. One of the features I use the most is the choice type input but only one option can be picked. Can there be a multi-select input type so i can choose and display multiple options?
My main use of the choice option is for tags [e.g. l/series or l/solo] where I only need to choose one option. But for my genre category I could need to add 2 or more tags [e.g. g/romance, g/comedy, g/drama] in one line. My current solution is just using a regular text input but the tag suggester is not shown.
Hope you can consider this. Great work on the plugin! ❤️
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.