Specific rules in the folding/unfolding action (author mode)
Posted: Wed Sep 26, 2012 8:36 pm
Hi,
Concerning folding elements, you provide those actions :
Can we create (with a plugin for example) such actions with specific behavior ?
For example,
I have an XML tree like :
What can I do for creating a button that folds/unfolds all the elements A and D (in author mode).
(The rules concerning the folding/unfolding can be tricky, the key is to be able to control your unfolding action)
Thank you,
Vincent.
Concerning folding elements, you provide those actions :
- Close Other Folds (Ctrl+NumPad+/) - Folds all the elements except the current element.
- Collapse Child Folds (Ctrl+Decimal) - Folds the elements indented with one level inside the current element.
- Expand Child Folds (Ctrl+Equals)- Unfolds all child elements of the currently selected element.
- Expand All (Ctrl+NumPad+*) - Unfolds all elements in the current document.
- Toggle Fold - Toggles the state of the current fold.
Can we create (with a plugin for example) such actions with specific behavior ?
For example,
I have an XML tree like :
Code: Select all
<root>
<part1>
<elementA>text</elementA>
<elementB>text</elementB>
<elementC>text</elementC>
<elementD>text</elementD>
</part1>
<part2>
<elementA>text</elementA>
<elementB>text</elementB>
<elementC>text</elementC>
<elementD>text</elementD>
</part2>
</root>
(The rules concerning the folding/unfolding can be tricky, the key is to be able to control your unfolding action)
Thank you,
Vincent.