Feature Request: Close All Folds

Are you missing a feature? Request it's implementation here.
avi4now
Posts: 23
Location: NYC

Feature Request: Close All Folds

Wed May 28, 2008 8:58 pm

I'd like to be able to collapse all the folds in my entire doc all at once.
sorin_ristache
Posts: 4144

Re: Feature Request: Close All Folds

Thu May 29, 2008 11:11 am

Hello,

Run the action Collapse Child Folds on the root element of the document with the shortcut of the action or by right clicking on the root element in the editor panel and selecting the action on the Folding submenu of the popup menu. If you want to collapse the root element too use the folding marker from the left side next to the opening tag of the root element.

You can configure the shortcut of the action Collapse Child Folds from Options -> Preferences -> Menu Shortcut Keys.


Regards,
Sorin
avi4now
Posts: 23
Location: NYC

Re: Feature Request: Close All Folds

Thu May 29, 2008 6:26 pm

Sorin, that action only closes the immediate children of the root element. I want to collapse every single element in the entire document - all descendants of the root elements.
sorin_ristache
Posts: 4144

Re: Feature Request: Close All Folds

Fri May 30, 2008 10:28 am

We will consider adding an action that folds every element of the document in a future version of Oxygen.

Doesn't the action Collapse Child Folds applied on the root element followed by folding the root element have the same effect? The root element and its child elements will be collapsed. I know the elements from lower levels may not be collapsed but it just seemed OK for me to collapse and expand the elements from lower levels later when I need to work with them again.


Regards,
Sorin
avi4now
Posts: 23
Location: NYC

Re: Feature Request: Close All Folds

Fri May 30, 2008 5:27 pm

I've been working lately on a very long/large/complex/involved XML data-document. As I develop it, I've had occasion to present it to groups of people, a few times. My preferred path is to collapse everything, then start walking people through the structure, one level at a time. When I expand a third-level child element, it may have a complex sub-structure inside of it, and I don't want to show that entire thing at that moment - I only want to show its outline.

So, no, Collapse Child Folds does not do what I want.
sorin_ristache
Posts: 4144

Re: Feature Request: Close All Folds

Fri May 30, 2008 5:40 pm

Thank you for the details. We will consider implementing an action Collapse All that collapses all the folds of the current XML document.


Regards,
Sorin
EarlMorton
Posts: 9

Re: Feature Request: Close All Folds

Wed Apr 25, 2018 9:37 pm

What is the status on this request? I have a different use case, but the same need.
adrian
Posts: 2453

Re: Feature Request: Close All Folds

Thu Apr 26, 2018 10:34 am

Hi,

What is your particular use case?

I found the feature request for this (Collapse All Folds), it is from 10 years ago, so against version 9. The feature was never implemented. It was discussed that it is a limited use case and implementing it it can have a significant performance impact on large files. There were no other similar requests, so it remained that way.

For this particular use case, starting from the root and working deep within the structure, we recommend using the Outline view.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
EarlMorton
Posts: 9

Re: Feature Request: Close All Folds

Sat Apr 28, 2018 1:18 am

Honestly, I wasn't aware of Outline View until you mentioned it. I just tinkered with it a bit, and looked at the Help, but I'm not seeing a way to collapse the whole outline and drill down into the hierarchy, one level at a time.

I will soon be starting to refer to some large data files in XML markup. My rough estimate is that they will contain at least 20,000 lines of markup, probably much more. I will need to browse these by starting at the top of the hierarchy and drilling down into successively lower levels to find the information I need. That is what collapsible outlines are good for.

Incidentally, when I started using oXygen XML Editor several years ago, the most annoying part of it was the Preferences. It was presented in a collapsible outline, but when first opened, the outline was completely expanded. To find anything, I had to start by going through all the folds by hand and collapsing them. Then I could start drilling down to find what I needed. I greatly appreciate that in the recent versions of oXygen, the Preferences outline defaults to fully collapsed. I suspect that whatever prompted that change applies to my need in this regard.
adrian
Posts: 2453

Re: Feature Request: Close All Folds

Mon Apr 30, 2018 12:50 pm

Hi,
but I'm not seeing a way to collapse the whole outline and drill down into the hierarchy, one level at a time.

When you first open the document and the cursor is at the beginning, the Outline view is collapsed (except the first level). However, the option "Selection update on cursor move" is enabled by default and that causes the Outline to expand up to the element at the cursor as soon as you navigate in the document. If you don't want it to expand automatically, you can clear this option in the Settings (cogwheel icon on the right side of the toolbar) from the Outline view toolbar.

Furthermore, if at any time you want to collapse the Outline tree and start again, right click on the document root element and pick Collapse All. Note that depending on the number of elements this operation can take a little while.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
EarlMorton
Posts: 9

Re: Feature Request: Close All Folds

Mon Apr 30, 2018 5:51 pm

Ah! OK. Now I'm seeing it--after a lot more tinkering. I couldn't find the Collapse All command for a while, until I figured out that you have to choose Show XML Structure on the Settings menu first. That looks like it will work for me!

I'm sure I've only scratched the surface of what oXygen is capable of doing.

Thanks!

Earl
adrian
Posts: 2453

Re: Feature Request: Close All Folds

Wed May 02, 2018 12:12 pm

Hi,
I figured out that you have to choose Show XML Structure on the Settings menu first.
I see, that means you aren't editing plain XML, but an XML schema, stylesheet or another specialized type of document that has an editor with a specialized Outline. Note that if this is the case, after you switch to Show XML Structure the Outline will treat the document as plain XML, it will no longer be aware of the components specific to that type of document.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
EarlMorton
Posts: 9

Re: Feature Request: Close All Folds

Wed May 02, 2018 5:22 pm

Actually, the files I will be using this for will be plain XML. I was just tinkering with the outline feature in a schema because that was the file I happened to have open at the time. Now that I understand how it treats different types of files, I think I'm good to go!

Thanks!

Earl

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 0 guests