CodeblockCustomizer icon indicating copy to clipboard operation
CodeblockCustomizer copied to clipboard

anti-logical: By default, all codeblocks are folded, except that` ` ` cpp unfold

Open calmwaves111 opened this issue 1 year ago • 2 comments

Thank you for your plugin. It's must-have for me in most cases, I hope my codeblocks are folded because they are too long But now I need to add a "fold" to every codeblock, which is troublesome so I hope to use it with an exclusion logic:Default "fold", except that I use the "unfold" tag

calmwaves111 avatar Apr 05 '24 07:04 calmwaves111

I wouldn't say that it is anti-logical. There wasn't a need for the behavior you described until now. Most of the people have smaller code blocks, so it is enough to add fold where it is needed. But I can add a toggle where you can reverse the logic. No problem

mugiwara85 avatar Apr 07 '24 11:04 mugiwara85

Hi @calmwaves111, sorry that it took this long. I just pushed some changes. You can take the main.js and overwrite yours (after backing it up first) with it. After that you'll see a new toggle in the codeblock settings page, where you can inverse the fold behavior. If this is enabled, than it means that all code block is folded by default. If you don't want to fold a code block by default, then you can use the "unfold" parameter. Please test it thoroughly and give me a feedback. Hopefully I didn't forget anything :D

mugiwara85 avatar May 20 '24 21:05 mugiwara85

Please release this new feature to allow more users to test it.

XMB-7 avatar Jun 04 '24 11:06 XMB-7

Please release this new feature to allow more users to test it.

The new version will soon be released. I made some big improvements regarding performance. I just have to finish it, and test everything again.

mugiwara85 avatar Jun 04 '24 11:06 mugiwara85

@XMB-7 @calmwaves111 Finally released. Officially available in version 1.2.7

mugiwara85 avatar Jun 13 '24 21:06 mugiwara85

Thanks for your hard work, everything is working fine

calmwaves111 avatar Jun 14 '24 04:06 calmwaves111