Why the same time? The idea is to click on the [ +/- ] icon of e.g. an except block and then get the context menu to un/fold all except blocks.
+1
Concerning the fold all feature I only don't understand why there is a shortcut for this but no menu entry. I had to google around if and how this is possible and I think it would be nice when users can find this on their own in one of the menu.
<slight sarcasm on>
Well, good question. Unfortunately I do not remember why. It is 12 Years 9 Month and 11 days since it was added.
Based on
https://bugs.freepascal.org/view.php?id=12561https://github.com/User4martin/lazarus/commit/94c21c4c3ebbb024386ac9946ac5dc21d136f8c4https://github.com/User4martin/lazarus/commit/7d80cf42dfbb5dd9658d32076c6bc7703eb24343<slight sarcasm off>
Back then the fold gutter did not have a context menu, nor was there a concept of different context menus depending on where you clicked in the editor.
As for the main menu, I don't recall, maybe I was to lazy, maybe it did not occur to me, or I thought it would be overkill.
I agree its not easy to find. But if I would add it now, I would go with something along your idea. "all procedures" instead of "level x".
The "level x" always had the issue that to fold procedures you need "level n" (depending on your settings), but then in the interface type section, that had to match "class" level, so You need to enable/disable the correct options. Maybe the correct settings are default now, don't know. I haven't used this in a while.
Yes, I guess the only way to find them are searching the keymap... Maybe the wiki could do with a page showcasing all the fold features.
And, oh wait... There is a recent new Package: IdeScout. Which allows you do search for features. Install, open, and search for "fold".
However, I don't insist on anything, just making proposal. I am a happy user of Laz 2.1 and hope to get a final release of it soon. I am an OpenSource developer too in another project (Qt/C++ however) and know that the spare time is limited.
This way thanks for all you great work. I mean I reported the last days several issues and all have al ready been fixed. This is really amazing!
As I said, you can make a feature request.
Though it wont make to much of a difference, if and when I find the time to work on folding again, I might add something anyway... But there are other fish to fry...
Btw, I'm absolutely happy to hear your ideas (and that the feature is useful to you, always nice to know).
Anyway, you've seen I posted where to find the code. So maybe some one finds this, and wants to pick it up.