Jean-Marc Lasgouttes wrote:
We had a question recently about how to remove all Index insets from
the document. Rather
than building yet another UI for that, the following dirty function
maybe be useful, although
mostly for power user (not the kind of function that I would like to
see advertised prominently
in UserGuide).
Remove all index insets:
inset-forall Index delete-char-forward
Close all Notes (also works for a particular branch, for example)
inset-forall Note inset-toggle close
Close only yellow sticky notes
inset-forall Note:Note inset-toggle close
Put LyX in an infinite loop if there is at least a Note:
inset-forall Note char-backward
This function has several problems:
- can freeze LyX (see above)
Suggestion: Keep track of which insets have been visited and refuse this
kind of recursion.
Richard