Well and as you can see in your image, the symbol at the start of that line changes.
provide hiding when a line is selected
As you can see in my screencast, all other procedures are folded and get the + button to unfold it. So why is the + button changed just because I found the procedure of interest by searching and not by just looking with my eyes?Because it is a selection. It does not matter by what action it come to be selected.
Therefore I would be happy if you could consider of adapting the hiding/folding feature a bit.
Ok, so I did (partly) fix the advance mouse....
Ok, so I did (partly) fix the advance mouse....To be honest, I am an IDE beginner. I code with Pascal for years, but never had the time to dive into the IDE.
So maybe before you proceed, here is what I would find very useful:Nice ideas, but I have a large todo list, before this.
- right-click on the + icon in front of a procedure/function and get in the context menu the option to un/fold all procedures/functions (like already implemented for comments)
- same as above but for all except blocks
- either a menu or a context menu option, to unfold everything to level 0"to level 0" is just a fancy way to say: unfold all / remove all folds?
- the advanced mouse actions should be self-explanatory. because at the moment I don't understand what is e.g. the current shortcut to fold everything.The advanced mouse option, is a bit like Firefox "beware dragons" advanced options.
I updated Lazarus trunk via FCPupDeluxe and now I can no longer fold everything using Shit+Alt+0. So what do I have to use now for this?This should still work. Please check your keymap setting, as in the attached image.
I see in the Advanced Mouse options:I assume that is in the section "collapsed". I.e. applies when you click on a [ + ] symbol
Fold Code Left Any Up - - Y 0 All (Nodes)
So I think I have to cleft-click while pressing the Ctrl button and then all nodes will be unfold. But this doesn't work
Quote- either a menu or a context menu option, to unfold everything to level 0"to level 0" is just a fancy way to say: unfold all / remove all folds?
If you have folded lines, then the fold gutter context menu has that entry.
They are explained on the wiki. But they are to complex to be intuitive. (In a way they are a basic programming language);D
QuoteI updated Lazarus trunk via FCPupDeluxe and now I can no longer fold everything using Shit+Alt+0. So what do I have to use now for this?This should still work. Please check your keymap setting, as in the attached image.
All (Nodes)I changed the text for that to "All on line (Nodes)"
It looks like you got the image when you clicked on a [ - ], not on a [ + ] ? Because the first line in the context menu has the [ - ] too.Quote- either a menu or a context menu option, to unfold everything to level 0"to level 0" is just a fancy way to say: unfold all / remove all folds?
If you have folded lines, then the fold gutter context menu has that entry.
Yes, I meant to completely fold, like using Alt+Shift+1.
I don't see this in the context menu. I right-click onto the + icon in front of a procedure and get the attached.
So when I right-click onto the icon in front of a folded procedure I get a content option to unfold all, but when I right-click onto the icon in front of an unfolded procedure I get no context option to fold all.
I run fpcupdeluxe another time to update trunk despite there are no new commits, and now it works again. Strange.Ends well, all's well.
It looks like you got the image when you clicked on a [ - ], not on a [ + ] ?
You need to have at least one folded line in the file, in order to see the entry.
A "fold all" does not exist. It only exists via the keyboard.
A "fold all ..." where ... is in the list of procedures, classes, ..., even except. That I can see appealing.
- right-click on the + icon in front of a procedure/function and get in the context menu the option to un/fold all procedures/functions (like already implemented for comments)
- same as above but for all except blocks
But having them all in the menu at the same time, would be to much.
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>
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!
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".
And, oh wait... There is a recent new Package: IdeScout. Which allows you do search for features. Install, open, and search for "fold".
It has one key shortcut ( I have it on alt-shift-p / but I may have changed it from the original)
Best to add a feature request on Mantis.