onlyafly / number-headings-obsidian

Automatically number headings in a document in Obsidian
MIT License
113 stars 11 forks source link

[Feature Request] New Command: `Number all Headings in the document using front matter settings` #15

Closed FelipeRearden closed 2 years ago

FelipeRearden commented 2 years ago

Hello @onlyafly !!!!!

My workflow

I have a note only with tweets that I regularly export from twitter to obsidian

To make my note easy to search I have one header for each tweet:

Screen Shot 2021-10-11 at 07 52 58

After exportation I use your plug-in to create a numbered headings to my note

Screen Shot 2021-10-11 at 07 51 35

Since I import new tweets for this note everyday, I have to apply my front-matter settings Number all Headings in the document once a day to add new numbers to my list

Screen Shot 2021-10-11 at 08 03 37

Every time I got this notification message when I use : Number all Headings in the document

Screen Shot 2021-10-11 at 07 30 05

My Feature Request

I wanna request a new command to be used when you just need to update your note with the parameters previously defined in the front matter:

Number all Headings in the document using front matter settings

In my case, I already now my settings. I just want to update my note because of my new headers.

This way, I don't need to interact with the notification message box, I just need to apply the settings in the front-matter and continue to work :)

Why I don't use Automatic Numbering ?

Since I have a lot of notes from books with huge TOC that uses Humber Headings, I don't want to automatic numbering everything in my vault. I don't want to have a service running in all my notes trying to look for an update. I rather two this manually


Thanks for your help.

Have a great day

onlyafly commented 2 years ago

@FelipeRearden Interesting!

Have you tried using automatic numbering, but just in your doc?

You can do that with something like the following (note the auto part):

---
number headings: auto, max 6, _.1.1.
---
FelipeRearden commented 2 years ago

Have you tried using automatic numbering, but just in your doc?

You can do that with something like the following (note the auto part):

Thanks @onlyafly !!

I didn't know about that ! I'm gonna start using this now for specific notes :)

I still think that an toggle for skip the notification is a good idea and the best option for me.

Just to check with you: if is it a feasible feature ?

Thanks!

ssmmtt commented 2 years ago

skip the notification is a good idea and the best option for me. +1

onlyafly commented 2 years ago

I think you have a great point. I'll make this change shortly.

onlyafly commented 2 years ago

Fixed in version 1.10.0