bitdowntoc icon indicating copy to clipboard operation
bitdowntoc copied to clipboard

Save the selection options in the header?

Open maurymarkowitz opened this issue 11 months ago • 1 comments

I only use this tool when I'm doing a release, which isn't that often. When I return to update my TOC I often forget which options I used last time and have to experiment to figure it out again.

Would it be possible to save the settings in the !-- TOC start -- header, or perhaps its own !-- TOC options -- and then parse them the next time?

maurymarkowitz avatar Jan 14 '25 23:01 maurymarkowitz

Hello @maurymarkowitz , and thank you for opening a feature request!

I had thought about it a while back, but this makes it more difficult to ship breaking releases and may add issues in the future if the options change. My rationale at the time for not implementing it in the end was:

  1. if you use the website version, you can save your preferences in the local storage to not have to remember every time
  2. if you use it for release, I assume you are using the cli. In this case, either a Makefile command, a script or a CI can be used to save the exact arguments to pass to bitdowntoc for each specific project.

Can you please describe to me your use-case, and how it doesn't fall into those two categories?

derlin avatar Jan 16 '25 13:01 derlin