Hi Edward I don't think this command exists already, and it is useful to me: instead of discrete 'expand node' and 'contract node' commands, this toggles the expand state of the current node.
def toggleExpandState(): """ expand or contract the current node """ # set up the functions to call if p.isExpanded(): fa = p.contract frd = c.redraw_after_contract else: fa = p.expand frd = c.redraw_after_expand # perform the calls fa() if p.isCloned(): # if trace: g.trace('***redraw') c.redraw() else: frd(p,setFocus=True) As an Ecco Pro sort-of refugee, I bind this to Ctrl-E, but others may of course choose different. HTH Jon N -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.