Toggle folding multiple items

I would like the ability to toggle fold multiple headings. This maybe difficult and I don’t know how this can be implemented. But at least I think this can be implemented for bullet lists. Currently when I select a whole bullet list with my sub bullets and try to fold, it only folds the first bullet. The better behaviour is to recognize this and close the whole bullet.