Itsme wrote:
> Are there any convenient ways to do this? 

I'm not sure to understand your question. Do you want to make elements 
other than chapters, sections, etc, collapsible [1]? Do you want to 
collapse/expand elements using the keyboard rather than the mouse [2]?



> If not, is it macro-able? Any 
> suggestion on how I might get started with a macro to do this?
> 

[1] See "Collapsible blocks and tables" 
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/collapsible_blocks.html

[2] See command "toggleCollapsed" 
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/toggleCollapsed.html

Here are the bindings I use (also found in the add-on called "A sample 
customize.xxe "):

---
   <binding>
     <keyPressed code="ESCAPE" />
     <charTyped char="/" />
     <command name="toggleCollapsed" />
   </binding>

   <binding>
     <keyPressed code="ESCAPE" />
     <charTyped char="+" />
     <command name="toggleCollapsed" parameter="expandAll" />
   </binding>

   <binding>
     <keyPressed code="ESCAPE" />
     <charTyped char="-" />
     <command name="toggleCollapsed" parameter="collapseAll" />
   </binding>

   <binding>
     <keyPressed code="ESCAPE" />
     <charTyped char="1" />
     <command name="toggleCollapsed" parameter="collapseAll+expand" />
   </binding>
---


Reply via email to