mo-seph / obsidian-note-from-template

Simple plugin to create Notes from a template, and fill in fields defined there
MIT License
107 stars 9 forks source link

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

Open FelipeRearden opened 2 years ago

FelipeRearden commented 2 years ago

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


Let me know what you think :)

Have a great day!

FelipeRearden commented 2 years ago

@mo-seph I hope you could take a look at this FR in some time in the future :pray:

For complex templates, would be extreme useful to add a help text in the template form :)

Thanks!!!!

mo-seph commented 2 years ago

I've added something that takes the last argument as a description:

image

Example: {fieldname:text:default:description} or {fieldname:area:description}

It's a bit funny - there are different numbers of arguments for text vs area fields, so that might change in the future. It won't work for choice fields etc., but they should generally be self-describing I suspect?

FelipeRearden commented 2 years ago

Hello @mo-seph !!!!

Thank you very much for this new feature !!!! It’s working perfect on version 0.1.11 Obsidian 0.13.23

What I was thinking goes a little bit further from this new feature. If you allow each I wanna share with you my workflow for this new feature.

Than you decide it is something that you think is a good idea :)

My Background

I suffer from depression and anxiety and I’m trying to Journal my mood in Obsidian in a way to try to get better by tracking how I feel when something happen.

I found out this methodology called Feelings Wheel https://blog.calm.com/blog/the-feelings-wheel .

Basic its a wheel of layers of feelings that you chose to represent how you feel. Then you have some questions to journal to help you to identify how you feel.

My Workflow

My idea is to create a workflow in Obsidian to track/organize every felling that I have during each day.

I already know i’m gonna organize and I’m gonna create a different template from each feeling of the second layer if the wheel (Fear -> Anxious, Fear-> Scared and so on). I know its a lot of templates but I’m confident that it’s gonna work :)

My FR

Would help a lot if we have something like this -> NO_TEXT {{fieldname:no_text:description}}

In a way that the text filed would be hidden in the template modal and the fieldname + description will not be inserted in the target note

Here is my template (I highlighted the field just for you to see better):

12

This is a WIP. I’m gonna add more fields and translate to my mother language ... (I’m just getting started)

If Possible 🙏

1- Support for line break \n Or <br> inside fieldname And description Would be great for a long text and complex explanation of text fields

2- Html tags render in fieldname And description This way I could apply highlight bold to make the template modal even more beautiful :)


Let me know what you think :)

And thanks again for the new description field!!!!!!!

Have a great day!!!!

mo-seph commented 2 years ago

I could put in a comment field perhaps? I'm not sure if I can guarantee ordering, but it's maybe worth a look. I don't want to go too far into HTML etc - it's one of those things that is easy to start, but then causes lots of fiddly bugs later...

FelipeRearden commented 2 years ago

I could put in a comment field perhaps? I'm not sure if I can guarantee ordering, but it's maybe worth a look.

Thanks for trying @mo-seph !!!!

Whatever you do to help me with this workflow, I will be happy :)

Use comments field looks a great idea!!!!!!

I don't want to go too far into HTML etc - it's one of those things that is easy to start, but then causes lots of fiddly bugs later...

I understood :) thanks for letting me know.

I'm happy that I shared with my workflow and my view about your plug-in :)

I did some changes in the css that I gonna share with you when I finish. This way you can see how I'm using your amazing plug-in :)

Have a great day!!!