Giter Site home page Giter Site logo

obsidian-note-from-template's People

Contributors

ferdinandsu avatar mo-seph avatar osorojo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

obsidian-note-from-template's Issues

[Feature Request] `Destination`-> Active Note at Caret Position

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 !!!!

My Workflow

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)
0

It's amazing because I can't fill my table just using TAB !!!!

1

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!

[issue] Select Chinese characters and use From template failed to create a note in designated folder

Select Chinese characters and use From template failed to create a note in a designated folder
template file:

template-output: plan
title: {{title}}
template-replacement: "[[{{title}}]]"
template-input: title
template-should-replace: "sometimes"
template-should-create: "create"

Chinese characters
测试

select the Chinese characters and use the template file with from template plugin to reproduce the issue

Can't get the plugin to create a file at all

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!

[FR] Strip MD from title option

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.

Set new filename based on date, default to current date

Great job on the plugin! Here's what I'd like to accomplish:

  1. Create a new file called "Meeting {{date}}" where that variable is automatically set to today's YYYY-MM-DD without me providing it
  2. However, I'd like to have the option to provide a custom date. If not provided, default to today.
  3. Inside the newly created note, replace {{date}} with either provided date or today.
    Excuse me if I overlooked anything in the documentation but I played around with it for a while and could not get it to work.

[Bug] {{title}} will removes Non-English characters

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"

[Feature Request] Dropdowns: support for {{variable}}

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.

Example

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!

Fields not being populated, template-output not working

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:
image

And the output note looks as you would expect from the popup (missing the overview):
image

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.

Is it possible to specify the order of fields in the editor modal?

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:

Képernyőfotó 2022-08-22 - 20 00 34

Would it be possible to specify the order somehow, or at least respect the order of appearance in the template file?

[BUG] Even if nothing is selected, the plugin still links the new note

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 ^^'

[Feature Request] Integration with Dataview for selection fields

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.

Examples using the luxon presets for formatting

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

[Feature Request] template-filename YAML: Support for Date Format Syntax

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}}

My Workflow: Journals

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

  • Folder Path: Journal/Anger_Journal/
  • Filename: AN_{{YYYY-MM-DD}}.md

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!

[Feature Request] Specific Modal div for a Full Screen CSS Snippet

Hello @mo-seph !!!!!

If possible 🙏 I would like to ask for an specific modal name to the modal that From Template uses.

1

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!

Dynamic template-output value

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?


parent: [[[[Project MOC]]]]
type: project-page
project: "{{project-name:choice:ProjectA:ProjectB:ProjectC}}"
template-output: "Projects/{{project-name}}"
template-should-create: "open-pane"

[Feature Request] Option hide `currentDate` from Modal

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

04681660-B5D4-49EE-9C00-9A03EC371D48

I would really appreciate something like {{Date:currentDate:ddHHmm:hide}} to hide this field.


I hope you like my suggestion :)

Have a great day 🌞 !!!!!

Does not read templates

I wanted to test this, so I made the ExampleTemplate in 000 - Landing Page. Inbox. KO. Meta/_Templates/testtemplate and put that in settings
image

but it does not show up in the command palette
image

Cannot add currentDate to template

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?

Default regex in plugin setting does not work

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+

image

Template code

---
template-input: title, body
---
 
# {{title}}
{{body}}

Insert into note?

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!

[Feature Request] Create text that is only visible inside From Template Modal

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

0

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.

My Workflow

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,

My FR

  • Only visible in the modal
  • create this new fields between {{variables}}
  • render markdown. For example: would great to create a field only with <hr> and <br> to divide the content and ==highlight==

Let me know what you think :)

Have a great day!

[Bug] Version 0.1.9 -> readme template example

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!

Dropdowns and other field types

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...

Focus on the newly created note

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.

Create and open

No longer seems to work with a new vault I created. Note is created, it is just not opened.

"From Template: Re-index templates" is only option available

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

Templates folder

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.

Read list selection from a file

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!

[Feature Request] Modal -> Set Focus in the first field

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, aftrt biting the command, I have to type TAB to jump to the first field and start to write.

Today

0

My FR

1


Thanks :)

Have a great day

[Question] Use a standard file name instead of `Title` Text field

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!

Multi-Select Dropdown Field Type

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! ❤️

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.